Linux下is not in the sudoers file解决方法
来源:互联网 发布:mac的相册导出 编辑:程序博客网 时间:2024/06/05 06:06
当我们使用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命令就不会有上面的提示了。
注意:
编辑配置文件的时候最好使用visudo命令,否则可能会出现其他错误
阅读全文
0 0
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux中“is not in the sudoers file”解决方法
- Linux中“is not in the sudoers file”解决方法
- Linux中“is not in the sudoers file”解决方法
- Linux中“xxx is not in the sudoers file”解决方法
- Linux中“is not in the sudoers file”解决方法
- is not in the sudoers file解决方法
- is not in the sudoers file解决方法
- is not in the sudoers file解决方法
- linux下遇到xxx is not in the sudoers file
- 大数据准备-虚拟机系统安装和网络配置(2)
- PHP之数组索引,关联
- MySQL学习过程中遇到的一些语句
- Intent之复杂数据的传递
- CentOS 6.4 忘记root密码怎么办?
- Linux下is not in the sudoers file解决方法
- 问题记录: kafka producer.send(record) topic可以创建, 确无法从kafka-console-consumer中查看到此topic上的内容
- R-笔记1
- 常用正则表达式——包括校验数字、字符、一些特殊的需求等等
- elasticsearch去重计数(distinct、cardinality)
- response和request的setCharacterEncoding区别
- 临时数据
- HDU 6121 Build a tree (递归+特判, 2017 Multi-Univ Training Contest 7)
- dbcontext的使用