出现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 然后按esc键,再输入:wq!保存退出#chmod u-w /etc/sudoers 问题解决!
本文介绍了如何解决Linux系统中出现的'xxx is not in the sudoers file'错误。通过编辑sudoers文件并为特定用户添加sudo权限来解决此问题。
出现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 然后按esc键,再输入:wq!保存退出#chmod u-w /etc/sudoers 问题解决!

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