首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

xxx is not in the sudoers file解决办法

2012-07-04 
xxx is not in the sudoers file解决方法xxx is not in the sudoers file解决方法?用sudo时提示xxx is no

xxx is not in the sudoers file解决方法

xxx is not in the sudoers file解决方法?
用sudo时提示"xxx is not in the sudoers file. This incident will be reported.其中XXX是你的用户名,也就是你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。下面是修改方法:

1. 进入超级用户模式。也就是输入"su ",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。
2. 添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。?
3. 编辑/etc/sudoers文件。也就是输入命令"pico /etc/sudoers",找到这一 行:"root ALL=(ALL) ALL"在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存?
4. 撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"

热点排行