1、报错信息
sudo 报错:workis not in the sudoers file. This incident will be reported
[sudo] password for work:
work is not in the sudoers file. This incident will be reported.
2、解决方法
切换root增加写权限 chmod u-w /etc/sudoersroot ALL=(ALL) ALL 下面添加xxx ALL=(ALL) ALL撤销写权限 chmod u-w /etc/sudoers