Remove the Sudo Password

Remove the Sudo Password
Photo by Gabriel Heinzer / Unsplash

If you find yourself running commands with sudo often, you can remove the password prompt for a particular user.

Please note this is a security risk but laziness always wins!

Start by running this command to enter the sudoers file…

sudo visudo

At the bottom of the file paste this in making sure to amend username to your username…

username ALL=(ALL) NOPASSWD: ALL

Do CTRL + X then Y then Enter to save the changes and exit the file.

Done. You should never be asked for your password when running a command with sudo.