新安装的fedora,使用sudo 命令出现“is not in the sudoers file. This incident will be reported”
解决方法如下:
#su -
#chmod u+w /etc/sudoers
#visudo
在root ALL=(ALL) ALLZ下
添加xxx ALL=(ALL) ALL
然后按esc键,再输入:wq!保存退出
#chmod u-w /etc/sudoers
问题解决!
新安装的fedora,使用sudo 命令出现“is not in the sudoers file. This incident will be reported”
解决方法如下:
#su -
#chmod u+w /etc/sudoers
#visudo
在root ALL=(ALL) ALLZ下
添加xxx ALL=(ALL) ALL
然后按esc键,再输入:wq!保存退出
#chmod u-w /etc/sudoers
问题解决!