解决xxx is not in the sudoers file. This incident will be reported的错误:
原因:linux默认没有开启sudo权限
解决方法:
#su -
#chmod u+w /etc/sudoers
#visudo
在root ALL=(ALL) ALLZ下 添加xxx ALL=(ALL) ALL
#chmod u-w /etc/sudoers
原因:linux默认没有开启sudo权限
解决方法:
#su -
#chmod u+w /etc/sudoers
#visudo
在root ALL=(ALL) ALLZ下 添加xxx ALL=(ALL) ALL
#chmod u-w /etc/sudoers
本文介绍了解决Linux系统中出现的“xxxisnotinthesudoersfile”错误的方法。通过修改sudoers文件并为用户添加sudo权限来修复该问题。
1989

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



