使用 sudo 命令出现错误

2018-07-12  本文已影响6人  笑叶林

异常信息:

用户名 is not in the sudoers file. This incident will be reported.

解决方案:

1. chmod u+w /etc/sudoers

2. vim /etc/sudoers

root ALL=(ALL) ALL 下添加如下代码:

   用户名 ALL=(ALL)ALL

3. chmod u-w /etc/sudoers

上一篇下一篇

猜你喜欢

热点阅读