首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 企业软件 > 行业软件 >

not in the sudoers file. This incident will be reported<转载>

2012-06-28 
not in the sudoers file.This incident will be reported转载这是我在红旗linux6.0下用sudo时遇到的问

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"。
??? 至此,问题解决。

热点排行