Nemo

Nemo 关注TA

路漫漫其修远兮,吾将上下而求索。

Nemo

Nemo

关注TA

路漫漫其修远兮,吾将上下而求索。

  •  普罗旺斯
  • 负责帅就完事了
  • 写了1,495,102字

该文章投稿至Nemo社区   Linux  板块 复制链接


xxx is not in the sudoers file.This incident will be reported

发布于 2017/07/19 16:09 4,304浏览 0回复 192

1、切换到超级用户:

su -

输入超级用户的密码,即可进入。

2、添加/etc/sudoers文件的读写权限:

chmod u+w /etc/sudoers

3、编辑/etc/sudoers文件:找到root ALL=(ALL)ALL这行,在下面添加

xxx ALL=(ALL)ALL

4、最后撤销/etc/sudoers文件的读写权限:

chmod u-w /etc/sudoers

问题即可解决。

点赞(0)
本文标签
 linux
点了个评