sudo without password

Troy Piggins troy at
Wed Jun 7 05:49:13 UTC 2006

* Mladen Bestvina <mbestvina at> :
> 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 


Worked for me.

Troy Piggins                                RLU#415538 <>
Bash joke:
# gawk; grep; unzip; touch; finger; mount; fsck; gasp; yes; umount; sleep

More information about the ubuntu-users mailing list