首页 > 其他 > 详细

xxx is not in the sudoers file. This incident will be reported

时间:2016-01-05 12:18:26      阅读:269      评论:0      收藏:0      [点我收藏+]

问题描述:

  新建用户执行命令sudo chmod 700 ,提示输入root命令. 输入三次错误. 提示 yourid is not in the sudoers file. This incident will be reported

问题解决

  more /etc/sudoers

  增加用户

  root    ALL=(ALL)     ALL
  liuyuxing  ALL=(ALL)    ALL 这样你的用户就可以使用所有的命令了,但是每次使用之前要输入自己的密码.


****

区别

  sudo -i 是切换到root 用   包含环境变量的

  su root 也是切换到root 用户  临时的

  sudo 命令  是让当前用户有使用某个命令的权限.

xxx is not in the sudoers file. This incident will be reported

原文:http://www.cnblogs.com/liuyuxing/p/5101621.html

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