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.

Share:
11,546

Related videos on Youtube

Jim from Detroit
Author by

Jim from Detroit

Updated on September 18, 2022

Comments

  • Jim from Detroit
    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
      terdon almost 9 years
      Well, 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
      muru almost 9 years
    • TheWanderer
      TheWanderer almost 9 years
      Well 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
      muru almost 9 years
  • TheWanderer
    TheWanderer almost 9 years
    Not a full answer. This only gets rid of the password for sudo.
  • TheWanderer
    TheWanderer almost 9 years
    But then you refer to that in your answer. Don't just answer part of it.
  • Marek Bettman
    Marek Bettman almost 9 years
    Polkit link added.
  • Chang Zhao
    Chang Zhao almost 3 years
    I have done this but it still prompts for password :,(