How to disable the password prompts?
11,546
To remove password prompts for commands/apps using sudo:
sudo adduser (your user name) sudo
sudo visudo
Change:
%sudo ALL=(ALL:ALL) ALL
to
%sudo ALL=(ALL) NOPASSWD:ALL
Exit visudo
- Ctrl+x, y, Enter
Run:
sudo service sudo restart
To remove password prompts for some graphical applications that use policy kit, not sudo see https://askubuntu.com/a/614537/115816.
Done. Bad idea, but there.
Related videos on Youtube
Author by
Jim from Detroit
Updated on September 18, 2022Comments
-
Jim from Detroit almost 2 years
I've have Ubuntu 15.04 on my laptop and just about everything I do requires me to enter my password.
What do I have to do so I don't have to keep entering my password?
-
terdon almost 9 yearsWell, howdy Jim, pleasure to meetcha! Could you edit your question and show us a specific example of what you're trying to do which requires a password? Is this in the command line? In the pretty windows?
-
muru almost 9 yearspossible duplicate of Can I set my user account to have no password?
-
TheWanderer almost 9 yearsWell you can disable entering a password when using
sudo
, but as far as I know there is no way to get rid of say the Ubuntu Software Center asking you for a password. -
muru almost 9 years@Zacharee1 see askubuntu.com/a/614537/158442
-
-
TheWanderer almost 9 yearsNot a full answer. This only gets rid of the password for
sudo
. -
TheWanderer almost 9 yearsBut then you refer to that in your answer. Don't just answer part of it.
-
Marek Bettman almost 9 yearsPolkit link added.
-
Chang Zhao almost 3 yearsI have done this but it still prompts for password :,(