xxx is not in the sudoers file. This incident will be reported的解决方...
2012-03-04 21:02
549 查看
zhichier is not in the sudoers file. This incident will be reported
这是我在红旗linux6.0下用sudo时遇到的问题,解决方法如下:
1>、进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。(当然,你也可以直接用root用户登录,因为红旗安装过后默认的登录用户就是root)
2>、添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。
3>、编辑/etc/sudoers文件。也就是输入命令"vim /etc/sudoers",输入"i"进入编辑模式,找到这一 行:"root ALL=(ALL) ALL"在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存(就是先摁一 下Esc键,然后输入":wq")退出。
4>、撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"。
至此,问题解决。
(百度文库的另一篇文章)http://wenku.baidu.com/view/c28249323968011ca30091b6.html
将一般的用户加入sudo组is not in the sudoers file. This incident will be reported解决方法(学习记录
2010年02月03日星期三 下午 03:33
(原文地址:)http://apps.hi.baidu.com/share/detail/155826
这是我在红旗linux6.0下用sudo时遇到的问题,解决方法如下:
1>、进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。(当然,你也可以直接用root用户登录,因为红旗安装过后默认的登录用户就是root)
2>、添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。
3>、编辑/etc/sudoers文件。也就是输入命令"vim /etc/sudoers",输入"i"进入编辑模式,找到这一 行:"root ALL=(ALL) ALL"在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存(就是先摁一 下Esc键,然后输入":wq")退出。
4>、撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"。
至此,问题解决。
(百度文库的另一篇文章)http://wenku.baidu.com/view/c28249323968011ca30091b6.html
将一般的用户加入sudo组is not in the sudoers file. This incident will be reported解决方法(学习记录
2010年02月03日星期三 下午 03:33
在一般用户下执行sudo命令提示xxx is not in the sudoers file. This incident will be reported.解决方法: $whereis sudoers -------找出文件所在的位置,默认都是/etc/sudoers 有时候我们只需要执行一条root权限的命令也要su到root,是不是有些不方便?这时可以用sudo代替。默认新建的用户不在sudo组,需要编辑/etc/sudoers文件将用户加入,该文件只能使用visudo命令, 1) 首先需要切换到root, su - (注意有- ,这和su是不同的,在用命令"su"的时候只是切换到root,但没有把root的环境变量传过去,还是当前用乎的环境变量,用"su -"命令将环境变量也一起带过去,就象和root登录一样) 2) 然后 visudo 或者 vim /etc/sudoers, visudo 这个和vi的用法一样,由于可能会有人不太熟悉vi,所以简要说一下步骤 移动光标,到一行root ALL=(ALL) ALL的下一行,按i,插入模式,输入 your_user_name ALL=(ALL) ALL 然后按Esc, 输入“:” 再输入:wq 保存退出 这样就把自己加入了sudo组,可以使用sudo命令了。 3) 默认5分钟后刚才输入的sodo密码过期,下次sudo需要重新输入密码,如果觉得在sudo的时候输入密码麻烦,把刚才的输入换成如下内容即可: your_user_name ALL=(ALL) NOPASSWD: ALL |
相关文章推荐
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- 如何解决xxx is not in the sudoers file.This incident will be reported. on Mac
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- xxx is not in the sudoers file. This incident will be reported的解决方法
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- UBuntu sudo 命令 :xxx is not in the sudoers file. This incident will be reported.
- Fedora提示 xxxis not in the sudoers file.this incident will be reported解决办法
- Zox's code life 人生就是不停的战斗! xxx is not in the sudoers file.This incident will be reported.的解决方法
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- xxx is not in the sudoers file. This incident will be reported
- Fedora提示 xxxis not in the sudoers file.this incident will be reported解决办法
- xxx is not in the sudoers file. This incident will be reported的解决方法
- centos下xxx is not in the sudoers file.this incident will be reported
- 解决linux下sudo更改文件权限报错xxxis not in the sudoers file. This incident will be reported.
- 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" 错误解决方法
- xxx is not in the sudoers file. This incident will be reported的解决方法
- sodu时提示:XXX is not in the sudoers file. This incident will be reported
- xxx is not in the sudoers file. This incident will be reported解决方法