Posted 2012-09-03 22:54:00 GMT
Access to my single user account on my personal Ubuntu computers is effectively a passport to root access because I type in my password to sudo in an X terminal and it's pretty easy to sniff all X keystrokes. Therefore, the extra security afforded by having to type a password is minimal. Why not acknowledge this fact and avoid having to type in a password for sudo? Why not indeed?
To set up passwordless sudo perform the following commands
echo %sudo ALL=NOPASSWD: ALL | sudo tee /etc/sudoers.d/sudo-group sudo chmod 0440 /etc/sudoers.d/sudo-group sudo adduser $USER sudo
Post a comment