设置sudoers配制文件

论坛 期权论坛 编程之家     
选择匿名的用户   2021-5-28 18:27   93   0

在root设置sudoers配制文件
chmod +w /etc/sudoers
vim /etc/sudoers
添加一行 username ALL=(ALL) ALL
其中username是你的用户名,保存
更改sudoers文件权限 chmod 0440 /etc/sudoers
退出root

转载于:https://www.cnblogs.com/tosimple/archive/2012/09/15/2686535.html

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP