Remove the Sudo Password

Remove the Sudo Password

May 24, 2024

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.

Was this post helpful?

Comments

You need to be logged in to comment.

Log In to Comment

No comments yet. Be the first to share your thoughts!