sudo without password on Ubuntu

OK so I am working with Ubuntu servers (no, I haven’t abandoned CentOS, just broadening the horizons).
Anyway, Ubuntu is different in that, rather than creating a root password during the install, it has you create a user account with sudo permissions.
However, whenever you type sudo ‘this’ or sudo ‘that’, Ubuntu asks for your password. Every time. Gets kind of annoying after a while.
So… search for Sudo without password on Ubuntu and problem solved!

sudo visudo

Add this line at the end (change “jerome” to your username):

jerome ALL=(ALL) NOPASSWD: ALL

Ctrl-X to leave, save your changes, and you’re done!

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *