Linux下is not in the sudoers file解决方法

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux下is not in the sudoers file解决方法相关的知识,希望对你有一定的参考价值。

  1. 切换到root用户,运行visudo命令

    技术分享
  2. 2

    在打开的配置文件中,找到root ALL=(ALL) ALL,在下面添加一行

    xxx ALL=(ALL) ALL 其中xxx是你要加入的用户名称

    技术分享
  3. 3

    输入:wq保存并退出配置文件,再次使用sudo命令就不会有上面的提示了。

以上是关于Linux下is not in the sudoers file解决方法的主要内容,如果未能解决你的问题,请参考以下文章

Linux中新建用户用不了sudo命令问题:rootr is not in the sudoers file.This incident will be reported解决

Linux下is not in the sudoers file解决方法

Linux下is not in the sudoers file解决方法

Linux中普通用户用sudo执行命令时报”xxx is not in the sudoers file.This incident will be reported”错误

Linux中“is not in the sudoers file”解决方法

[Linux] admin is not in the sudoers file 问题解决办法