# su - 输入root密码! # chmod u+w /etc/sudoers # visudo 在root ALL=(ALL) ALLZ下 添加xxx ALL=(ALL) ALL, 然后按esc键,再输入:wq!保存退出 ## The COMMANDS section may have other options added to it. ## ## Allow root to run any commands anywhere root ALL=(ALL) ALL xxxx(当前用户名) ALL=(ALL) ALL ## Allows members of the 'sys' group to run networking, software, ## service management apps and more. # %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS #chmod u-w /etc/sudoers
Linux 开启sudo权限
原创
©著作权归作者所有:来自51CTO博客作者小小逊的原创作品,请联系作者获取转载授权,否则将追究法律责任

提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
linux sudo用户权限 去掉 linux怎么取消权限
权限这个东西对于初学者来说可能会有点陌生,不过不要紧,看完下面的讲解应该会对你有一定的帮助权限rwxrwxrwxrwx u g o ar:可读 4w:可写 2x:执行 1-:没有权限 0
linux sudo用户权限 去掉 文件服务器 vi/vim 可执行文件