【linux】xx is not in the sudoers file 解决办法
2014-01-07 20:35
615 查看
原帖地址:http://blog.sina.com.cn/s/blog_4ef045ab0100j59t.html
我用的是redhat5.4,在一般用户下执行sudo命令提示llhtiger is not in the sudoers file. This incident will be reported.解决方法:
一、$whereis sudoers -------找出文件所在的位置,默认都是/etc/sudoers
二、 #chmod u+w /etc/sudoers 以超级用户登录su -root ,修改文件权限即添加文件拥有这的写权限 限,ls -al /etc/sudoers 可以查看原文件的权限。
三、vim /etc/sudoers 编辑文件,在root ALL=(ALL)ALL行下添加XXX ALL=(ALL)ALL,XXX为你的用户名。添加方法:找到root行,按下”i“键进入编辑模式添加即可!编辑好后esc键进入一般模式,“:wq"保存退出!
最后, #chmod u-w /etc/sudoers 回到文件的原权限!
我用的是redhat5.4,在一般用户下执行sudo命令提示llhtiger is not in the sudoers file. This incident will be reported.解决方法:
一、$whereis sudoers -------找出文件所在的位置,默认都是/etc/sudoers
二、 #chmod u+w /etc/sudoers 以超级用户登录su -root ,修改文件权限即添加文件拥有这的写权限 限,ls -al /etc/sudoers 可以查看原文件的权限。
三、vim /etc/sudoers 编辑文件,在root ALL=(ALL)ALL行下添加XXX ALL=(ALL)ALL,XXX为你的用户名。添加方法:找到root行,按下”i“键进入编辑模式添加即可!编辑好后esc键进入一般模式,“:wq"保存退出!
最后, #chmod u-w /etc/sudoers 回到文件的原权限!
相关文章推荐
- Linux配置之解决CentOS中:xx is not in the sudoers file的问题
- Linux配置之解决CentOS中:xx is not in the sudoers file的问题
- Linux sudo 错误:XXX is not in the sudoers file 解决办法
- is not in the sudoers file 的解决办法
- xx is not in the sudoers file 问题解决
- Linux遇到的问题(一)Ubuntu报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- xxx is not in the sudoers file. This incident will be reported (解决办法)
- Linux Sudo xxx is not in the sudoers file 的解决方法
- [转]Linux下is not in the sudoers file解决方法
- xx is not in the sudoers file 问题解决【转载】
- [转]Linux之"xxx is not in the sudoers file"解决方法
- Linux_服务器_03_xxx is not in the sudoers file.This incident will be reported.的解决方法
- 【转】如何在fedora等Linux系统下解决(** is not in the sudoers file)的问题
- xx is not in the sudoers file 问题解决
- 解决linux下sudo更改文件权限报错xxxis not in the sudoers file. This incident will be reported.
- Fedora提示 xxxis not in the sudoers file.this incident will be reported解决办法 [转]
- 解决xx is not in the sudoers file. This incident will be reported.问题
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- xx is not in the sudoers file 问题解决