How to make SUDO without a password on Linux Mint

How to make SUDO without a password on Linux Mint

If You are tired of typing the password every time you use sudo, then you can disable the password prompt for your user. There is a way to use sudo without a password, and below I will show how it can be done.

I would not recommend doing this, is for informational purposes only, or if you know What you do and Why You do it)))

Open a terminal and run:

sudo visudo

Find the line
# See sudoers(5) for more information on “#include” directives:
add below:
YourUserName ALL=(ALL) NOPASSWD: ALL

How to make SUDO without a password on Linux MintHow to make SUDO without a password on Linux Mint

Ctrl+X and save it.

Good Luck!!!

Share to friends
Shekin
Rate author
( 2 assessment, average 5 from 5 )
MintGuide.Org
Subscribe
Notify of
guest
4 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Adi
Adi
2021 years ago

This does not work in Linux Mint 18.3 (Sylvia).
I have updated sudoers accordingly but wont work.

XKCD
XKCD
2021 years ago

$ sudo visudo -f /etc/sudoers.d/myOverrides

YourUserName ALL=(ALL) NOPASSWD: ALL

Reg Natarajan
Reg Natarajan
1 year ago

I just did it in Mint 19.3. Works great. I also did it on an Ubuntu 18.04 server I have and it also worked there.

eromana
eromana
1 year ago

~~ Thank You Very Much !!  Somewhere along the upgrade line in my Linux Mint Mate, now at 18.3 , $ sudo stopped working giving me the error: “Sorry, user user is not allowed to execute ‘/usr/bin/…’ as root on …”. Since su would work fine bringing me to the # prompt after entering the password, I literally used my machine this way for years. Now that I wish to upgrade to version 19..then to 20, I needed to fix the $ sudo functionality otherwise I get the same error during the upgrade . I have spent 2 days googling… Read more »

Last edited 1 year ago by eromana