使用sudo的时候,提示以下错误:xxx is not in the sudoers file. This incident will be reported。
解决方法如下:
1、切换到root用户,运行visudo命令
或打开/etc/sudoers编辑一下内容。
2、找到root ALL=(ALL) ALL,在下面添加一行 xxx ALL=(ALL) ALL 其中xxx是要加入的用户名称
使用sudo的时候,提示以下错误:xxx is not in the sudoers file. This incident will be reported。
解决方法如下:
1、切换到root用户,运行visudo命令
或打开/etc/sudoers编辑一下内容。
2、找到root ALL=(ALL) ALL,在下面添加一行 xxx ALL=(ALL) ALL 其中xxx是要加入的用户名称