文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>sudo xxx is not in the sudoers file rhel5

sudo xxx is not in the sudoers file rhel5

时间:2009-06-10  来源:bellcat2008


转自网络http://fbi329.blog.163.com/blog/static/2176164200831524314425/
xxx is not in the sudoers file
修改方法:

1)进入超级用户模式。也就是输入"su -"。
2)添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。
3) 编辑/etc/sudoers文件。也就是输入命令"vi /etc/sudoers",输入"i"进入编辑模式,找到这一 行:"root ALL=(ALL) ALL"在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存(就是先按一 下Esc键,然后输入":wq")退出。
4)撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"。
相关阅读 更多 +
排行榜 更多 +
飞艇大战

飞艇大战

飞行射击 下载
三维空间战斗机

三维空间战斗机

飞行射击 下载
战斗机教练

战斗机教练

飞行射击 下载