Trying to get sudo to work without requring a password. The configuration of sudo is located in the /etc/sudoers file, you should use "visudo" to edit the sudoers file. There are two reasons for this, it prevents two users from editing the file at the same time. Also visudo offers limited syntax checking. Even if you are the only root user syntax checking is handy.
# # This file MUST be edited with the visudo command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults !requiretty # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL # User privilege specification root ALL=(ALL) ALL davro ALL=(ALL) NOPASSWD: ALL
Note, NOPASSWD entries must be the last ones on sudoers file, as the group entries will override your expression. With the example configuration you could alternativly add the user "davro" to the group sudo. Hope helped, davro.