代码改变世界

随笔档案-2010年3月5日

user is not in the sudoers file

2010-03-05 13:55 by htc开发, 197 阅读, 收藏,
摘要: Ubuntu8.04版本,在一般用户下执行sudo命令提示user is not in the sudoers file. This incident will be reported.解决方法: 一、$where is sudoers -------找出文件所在的位置,默认都是/etc/sudoers 二、#chmod u+w /etc/sudoers 以超级用户登录su -root ,修改文件权限即添加文件拥有这的写权限 限,ls -al /etc/sudoers 可以查看原文件的权限。 三、vim /etc/sudoers 编辑文件,在root ALL=(ALL)ALL行下添加XXX . 阅读全文