"xxx is not in the sudoers file"解决方法

1.进入root模式

2.添加写权限: chmod u+w /etc/sudoers

3.编辑sudoers文件: vi /etc/sudoers

4.在root ALL=(ALL) ALL这行下面添加一行xxx ALL=(ALL) ALL(xxx是你的用户名)

5.删除写权限: chmod u-w /etc/sudoers

 

posted @ 2012-05-15 14:29  Clotho_Lee  阅读(174)  评论(0)    收藏  举报