首页 > 其他 > 详细

is not in the sudoers file解决方案

时间:2015-07-13 13:34:52      阅读:216      评论:0      收藏:0      [点我收藏+]

当我们使用sudo命令切换用户的时候可能会遇到提示以下错误:xxx is not in the sudoers file. This incident will be reported,xxx是你当前的用户名,究其原因是用户没有加入到sudo的配置文件里

解决:

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

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

  xxx ALL=(ALL) ALL 其中xxx是你要加入的用户名称,注,该行一直在文件的后面。

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

来源:http://jingyan.baidu.com/article/2a1383284bb3e8074a134f2d.html

is not in the sudoers file解决方案

原文:http://www.cnblogs.com/vipwtl/p/4642452.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!