您的位置:首页 > 其它

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

2016-01-05 10:57 459 查看
问题描述:

  新建用户执行命令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 命令 是让当前用户有使用某个命令的权限.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: