sudo without password
Troy Piggins
troy at piggo.com
Wed Jun 7 05:49:13 UTC 2006
* Mladen Bestvina <mbestvina at yahoo.com> :
> How does one set up sudo so that it does not ask for a
> password? I've done it before in another distribution
> by adding a line like
>
> username ALL=(ALL) NOPASSWD: ALL
>
> via visudo, but in dapper it's still asking for a
> password.
I just clean installed dapper. The default sudoers file's last
entry is:
%admin ALL=(ALL)
$ cat /etc/group | grep admin
If your username is there, just append NOPASSWD: ALL
%admin ALL=(ALL) NOPASSWD: ALL
Worked for me.
--
Troy Piggins RLU#415538 <http://counter.li.org>
Bash joke:
# gawk; grep; unzip; touch; finger; mount; fsck; gasp; yes; umount; sleep
More information about the ubuntu-users
mailing list