sudoer

查找

root ALL=(ALL) ALL

在下面加入

%wheel ALL=(ALL) ALL

如果sudo时不想输入密码,可以把上句改成:

%wheel ALL=(ALL) NOPASSWD: ALL

保存文件,然后执行

#gpasswd -a 用户名 wheel

然后这个用户就可以用sudo了。

linux/sudoer.txt · 最后更改: 2009/08/28 10:52 由 kenvin
到顶部
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0 红麦软件 红麦软件