Centos下报“is not in the sudoers file”错误
来源:互联网 发布:小米手机自动更新软件 编辑:程序博客网 时间:2024/05/29 13:50
最近虚拟机装了个centos6.5,当在终端执行sudo命令时,系统提示“cuser is not in the sudoers file”:
其实就是没有权限进行sudo,解决方法如下(这里假设用户名是lin):
1.切换到超级用户:$ su
2.打开/etc/sudoers文件:$vim /etc/sudoers
3.修改文件内容:
找到“root ALL=(ALL) ALL”一行,在下面插入新的一行,内容是“lin ALL=(ALL) ALL”,然后键入命令“wq!”保存并退出。
注:这个文件是只读的,不加“!”保存会失败。
4.退出超级用户,可以使用sudo了。
0 0
- Centos下报“is not in the sudoers file”错误
- CentOS──xxx is not in the sudoers file
- Linux报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- Ubuntu报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- Ubuntu报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- Linux报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- linux报"xxx is not in the sudoers file.This incident will be reported"错误
- 解决centOS下xxx is not in the sudoers file 问题
- centos下xxx is not in the sudoers file.this incident will be reported
- linux sudo xxx is not in the sudoers file错误
- 怎样解决“XXX is not in the sudoers file”错误
- 怎样解决“XXX is not in the sudoers file”错误
- Linux下is not in the sudoers file解决方法
- Ubuntu下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解决方法
- ubuntu下is not in the sudoers file 解决方案
- HDU 1027 Ignatius and the Princess II 【next_permutation(a,a+n)的应用】
- JAVA字符串格式化-String.format()的使用
- Oracle数字处理函数
- 恶意抢注商标事件层出 国内知识产权保护堪忧
- 极速购吧---天天九块九包邮
- Centos下报“is not in the sudoers file”错误
- top命令
- zoj2770
- 一种利用js实现的仿淘宝商品评价功能的方法
- 为什么读研
- IOS8 alertView 和 actionSheet 使用方法
- 【Boost】boost库asio详解5——resolver与endpoint使用说明
- 贪心算法介绍
- 数据库多表连接,返回结果集