你的位置:首页 > 软件开发 > 操作系统 > Linux下is not in the sudoers file解决方法

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

发布时间:2017-01-09 12:00:03
最近在学习linux,在某个用户(xxx)下使用sudo的时候,提示以下错误:xxx is not in the sudoers file. This incident will be reported。百度了下,究其原因是用户没有加入到sudo的配置文件里。 ...

      最近在学习linux,在某个用户(xxx)下使用sudo的时候,提示以下错误:xxx is not in the sudoers file. This incident will be reported。

百度了下,究其原因是用户没有加入到sudo的配置文件里。

     解决方法如下:

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

   2、找到root ALL=(ALL) ALL,在下面添加一行 xxx ALL=(ALL) ALL 其中xxx是要加入的用户名称


原标题:Linux下is not in the sudoers file解决方法

关键词:linux

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录