Linux下is not in the sudoers file解决方法

切换到root用户,运行visudo命令

Linux下is not in the sudoers file解决方法

在打开的配置文件中,找到root ALL=(ALL) ALL,在下面添加一行

xxx ALL=(ALL) ALL 其中xxx是你要加入的用户名称

Linux下is not in the sudoers file解决方法

输入:wq保存并退出配置文件,再次使用sudo命令就不会有上面的提示了。

 

posted on 2016-06-04 22:50  _day_by_day  阅读(156)  评论(0)    收藏  举报