If you’re like me and are tired of having to enter your sudo password each and every time you run a sudo command please find the steps below to ease your frustrations on this matter.
Please note, this is not recommended for public access computers or work computers. This is a nice modification for home uBuntu systems.
$ sudo visudo
visudo is a command used to edit the config for sudo.
Go to the bottom of the config file and add this:
username ALL=NOPASSWD: ALL
‘username’ should be replaced with the username of the user you want to allow a passwordless sudo. So if the user is reuben, you would enter:
reuben ALL=NOPASSWD: ALL
Save and exit – log out and log back in as the user and test out the passwordless sudo access.