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 命令 是让当前用户有使用某个命令的权限.
新建用户执行命令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 命令 是让当前用户有使用某个命令的权限.
相关文章推荐
- javascript 继承
- 使用ajax和history.pushState无刷新改变页面URL(转)
- 【C#】使用Windows身份验证连接Sql Server,ListView随窗体大小的变化而调节列宽
- jQuery Validation Engine Ajax验证
- DNS中的MaxCacheEntryTtlLimit和NegativeCacheTime
- android preferences使用
- hibernate注解验证
- 微服务介绍与优缺点分析
- grep 使用杂技
- python安装集成包
- 为什么写Java程序需要接口
- 使用Genymotion调试出现错误INSTALL_FAILED_CPU_ABI_INCOMPATIBLE解决办法
- window下git服务器搭建
- [COPY]LBS的瓶颈和方案
- 【Java并发编程实战】- Synchronized
- 给textView添加url、电话号码、邮箱点击效果
- 时空与预测]星际迷航-暗黑无边
- Java 多线程 并发编程
- Xcode编绎出错问题解决归类
- 深入浅出Comparable接口和Comparator接口