新安装的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命令时遇到的“isnotinthesudoersfile.Thisincidentwillbereported”错误的方法。通过修改sudoers文件,将用户添加到具有sudo权限的列表中。
新安装的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
问题解决!
4506
7639
5107
3258

被折叠的 条评论
为什么被折叠?