首页 > 其他 > 详细

用sudo时提示"xxx is not in the sudoers file. This incident will be reported.

时间:2017-09-03 17:29:55      阅读:220      评论:0      收藏:0      [点我收藏+]

现象:

非Root用户在使用sudo命令时,提示:"xxx is not in the sudoers file. This incident will be reported.(xxx为用户名)

解决办法:

使用

su – root 

切换到root用户,编辑sudoers文件

vim /etc/sudoers
找到“root ALL=(ALL)”在此行下面添加一行
"xxx ALL=(ALL) ALL"
//xxx 为用户名
保存即可。

用sudo时提示"xxx is not in the sudoers file. This incident will be reported.

原文:http://www.cnblogs.com/flankershen/p/7470003.html

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