sudo问题解决 用户名is not in the sudoers file
2011-02-26 09:46
761 查看
用sudo时提示:用户名is not in the sudoers file。This incident will be reported。
原因:你的用户名没有权限使用sudo,需要修改一下 /etc/sudoers 文件。
1.进入root模式。可以进入恢复模式,直接进入root模式
2.chmod u+w /etc/sudoers,增加写权限
3.vi /etc/sudoers
root ALL=(ALL) ALL,下面增加
*** ALL=(ALL) ALL,保存。
4.chmod u-w /etc/sudoers,撤消写权限。
如果使用sudo提示找不到命令时,可以试试在命令前加入 /sbin/ 命令。
原因:你的用户名没有权限使用sudo,需要修改一下 /etc/sudoers 文件。
1.进入root模式。可以进入恢复模式,直接进入root模式
2.chmod u+w /etc/sudoers,增加写权限
3.vi /etc/sudoers
root ALL=(ALL) ALL,下面增加
*** ALL=(ALL) ALL,保存。
4.chmod u-w /etc/sudoers,撤消写权限。
如果使用sudo提示找不到命令时,可以试试在命令前加入 /sbin/ 命令。
相关文章推荐
- 解决"eker is not in the sudoers file"问题
- "[用户名] is not in the sudoers file"(已解决)
- xx is not in the sudoers file 问题解决
- xx is not in the sudoers file 问题解决
- xx is not in the sudoers file 问题解决【转载】
- xx is not in the sudoers file 问题解决【转载】
- is not in the sudoers file 问题解决【转载】
- 解决xx is not in the sudoers file. This incident will be reported.问题
- % is not in the sudoers file 问题解决:非root用户使用sudo报错
- xx is not in the sudoers file 问题解决
- xx is not in the sudoers file 问题解决【转载】
- "[用户名] is not in the sudoers file"(已解决)
- 解决is not in the sudoers file问题
- xx is not in the sudoers file 问题的解决
- 解决centOS下xxx is not in the sudoers file 问题
- 【QA4】【sudoers问题解决】(*** is not in the sudoers file.This incident will be reported)
- Linux配置之解决CentOS中:xx is not in the sudoers file的问题
- *** is not in the sudoers file 问题解决
- Ubuntu下is not in the sudoers file 问题解决
- centos username is not in the sudoers file 问题解决方法