Linux下is not in the sudoers file解决方法
2017-03-22 10:44
561 查看
当我们使用sudo命令切换用户的时候可能会遇到提示以下错误:xxx is not in the sudoers file.
This incident will be reported,xxx是你当前的用户名,原因是用户没有加入到sudo的配置文件里
1.切换到root用户,运行visudo命令
2.在打开的配置文件中,找到root
ALL=(ALL) ALL,(文旦中大约100行附件)在下面添加一行
xxx ALL=(ALL) ALL 其中xxx是你要加入的用户名称
注意事项:编辑配置文件的时候最好使用visudo命令,否则可能会出现其他错误
This incident will be reported,xxx是你当前的用户名,原因是用户没有加入到sudo的配置文件里
1.切换到root用户,运行visudo命令
2.在打开的配置文件中,找到root
ALL=(ALL) ALL,(文旦中大约100行附件)在下面添加一行
xxx ALL=(ALL) ALL 其中xxx是你要加入的用户名称
注意事项:编辑配置文件的时候最好使用visudo命令,否则可能会出现其他错误
相关文章推荐
- [转]Linux之"xxx is not in the sudoers file"解决方法
- Linux下is not in the sudoers file解决方法
- Linux中“xxx is not in the sudoers file”解决方法
- Linux下is not in the sudoers file解决方法
- linux系统使用sudo命令报xxx is not in the sudoers file.This incident will be reported.的解决方法
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux中“is not in the sudoers file”解决方法
- [转]Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux中“is not in the sudoers file”解决方法
- Linux中“is not in the sudoers file”解决方法
- Linux下is not in the sudoers file解决方法
- Linux中“is not in the sudoers file”解决方法
- Linux Sudo xxx is not in the sudoers file 的解决方法
- 【Linux学习】Linux报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- Linux_服务器_03_xxx is not in the sudoers file.This incident will be reported.的解决方法
- Linux遇到的问题(一)Ubuntu报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- Linux中“is not in the sudoers file”解决方法