Fedora 14设置sudo

来源:互联网 发布:java poi cellstyle 编辑:程序博客网 时间:2024/05/16 10:22
[linus@beauty ~]$ su root密码:[root@beauty linus]# vim /etc/sudoers 在root 下面添加linus   ALL=(ALL)   ALL,linus是我的用户名,把它改成你的用户名。## Allow root to run any commands anywhere root    ALL=(ALL)   ALLlinus   ALL=(ALL)   ALL然后esc进入命令模式,然后 :wq!记得了是 :wq! 不是 :wq ,这是因为/etc/sudoers是只读文件,加上!是强制修改保存。