Change sudo to not ask for your password

On a default Ubuntu system, any task which requires root (or Administrator) privileges runs a program called 'sudo' (or it's graphical equivalent, gksu) to run a helper program in a privileged mode. By default, for security reasons, this program will ask you to input your password. If you make a lot of settings changes on your system (or need to run a lot of programs as root), each password prompt can get rather annoying. This tip shows you how to configure sudo to allow specific users to run commands as root (or any other user) without prompting for a password.

The sudo program stores its configuration information in the file /etc/sudoers. One simply needs to edit this file and add the following line:

##USERNAME## ALL=NOPASSWD:ALL

Replace ##USERNAME## with the username of your user. For example, if your username was joe, add the line:

joe ALL=NOPASSWD:ALL