5

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?

Jonas Czech
  • 3,997
  • 21
  • 40
Jim from Detroit
  • 59
  • 1
  • 1
  • 3
  • 2
    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? – terdon Sep 17 '15 at 22:54
  • 3
    possible duplicate of [Can I set my user account to have no password?](http://askubuntu.com/questions/281074/can-i-set-my-user-account-to-have-no-password) – muru Sep 17 '15 at 22:54
  • 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. – TheWanderer Sep 17 '15 at 22:59
  • 1
    @Zacharee1 see http://askubuntu.com/a/614537/158442 – muru Sep 17 '15 at 23:08

1 Answers1

6

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.

Erez A. Korn
  • 103
  • 3
Marek Bettman
  • 461
  • 3
  • 10