Wednesday, November 15, 2006

sudo without password

You can execute root-level commands with sudo without typing passwords by editing /etc/sudoers file to have a line like this (if your user name is alice):

alice (ALL)=ALL NOPASSWD: ALL

The file is read-only. You edit this file with the following command (which opens the file in vi):

visudo -f /etc/sudoers

No comments: