摘要:
What我用的是CentOS6.3,在一般用户下执行sudo命令提示 “(我的用户名) is not in the sudoers file. This incident will be reported.”How解决方法:一、$whereis sudoers找出文件所在的位置,默认都是/etc/sudoers二、#chmod u+w /etc/sudoers以超级用户登录su ,修改文件权限即添加文件拥有这的写权限,ls -al /etc/sudoers 可以查看原文件的权限。 三、vi /etc/sudoers 编辑文件,在root ALL=(ALL)ALL行下添加XXX ALL=(ALL 阅读全文
posted @ 2012-11-11 09:53
杰倫_
阅读(1295)
评论(0)
推荐(0)

浙公网安备 33010602011771号