Ubuntu – How to disable the password prompts

passwordpolicykitsudo

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?

Best Answer

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.