您的位置:首页 > 其它

xxx is not in the sudoers file解决方法

2011-05-02 21:40 736 查看
用sudo时提示"xxx is not in the sudoers file. This incident will be reported.其中XXX是当前用户名,也就是当前用户没有权限使用sudo,只要修改一下/etc/sudoers文件就行了。修改方法:

1) su -

2)chmod u+w /etc/sudoers

3)vi /etc/sudoers, 找到这一 行:"root ALL=(ALL) ALL" 在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是用户名),保存退出。

4)chmod u-w /etc/sudoers
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: