linux下遇到xxx is not in the sudoers file
2017-09-26 16:13
411 查看
问题:
使用sudo命令时遇到错误,xxx(当前用户名) is not in the sudoers file。This incident will be reported。
是因为用户没有加入到sudo的配置文件里,你的用户没有权限使用sudo。
解决:
1.切换到root用户,如果你用"su -”,"su - root","su",“sudo”,"sudo -i"都不行,报错“su: Authentication
failure”或者别的。一定要试一下“sudo su”,感动到自己,试到想哭。
2.添加文件的写权限。输入命令"chmod
u+w /etc/sudoers"
3.输入命令"gedit
/etc/sudoers",进入编辑模式,找到这一 行:"root ALL=(ALL) ALL"在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存退出。
4.撤销文件的写权限。再次输入命令"chmod
u-w /etc/sudoers"
使用sudo命令时遇到错误,xxx(当前用户名) is not in the sudoers file。This incident will be reported。
是因为用户没有加入到sudo的配置文件里,你的用户没有权限使用sudo。
解决:
1.切换到root用户,如果你用"su -”,"su - root","su",“sudo”,"sudo -i"都不行,报错“su: Authentication
failure”或者别的。一定要试一下“sudo su”,感动到自己,试到想哭。
2.添加文件的写权限。输入命令"chmod
u+w /etc/sudoers"
3.输入命令"gedit
/etc/sudoers",进入编辑模式,找到这一 行:"root ALL=(ALL) ALL"在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存退出。
4.撤销文件的写权限。再次输入命令"chmod
u-w /etc/sudoers"
相关文章推荐
- Linux遇到的问题(一)Ubuntu报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- linux系统使用sudo命令报xxx is not in the sudoers file.This incident will be reported.的解决方法
- Linux sudo 错误:XXX is not in the sudoers file 解决办法
- Linux Sudo xxx is not in the sudoers file 的解决方法
- 【Linux】xxx is not in the sudoers file
- Linux中“xxx is not in the sudoers file”解决方法
- XXX is not in the sudoers file 解决方案:赋予linux普通用户挂载光驱的权限
- 解决linux下sudo更改文件权限报错xxxis not in the sudoers file. This incident will be reported.
- Linux教程:XXX is not in the sudoers file解决
- Linux---XXX is not in the sudoers file. This incident will be reported
- [转]Linux之"xxx is not in the sudoers file"解决方法
- linux学习之xxx is not in the sudoers file.This incident will be reported问题
- 【Linux学习】Linux报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- Linux有问必答:怎样解决“XXX is not in the sudoers file”错误
- 解决Linux中 xxx is not in the sudoers file
- Linux_服务器_03_xxx is not in the sudoers file.This incident will be reported.的解决方法
- Linux有问必答:怎样解决“XXX is not in the sudoers file”错误
- 【转】如何在fedora等Linux系统下解决(** is not in the sudoers file)的问题
- xxx is not in the sudoers file
- xxx is not in the sudoers file.This incident will be reported.的解决方法