You can trick PolicyKit and suppress ALL password prompts by substituting the action with a wildcard.
DISCLAIMER: The following will suppress ALL password prompts globally for everyone belonging to the admin group, with the exception of the login screen. It is EXTREMELY dangerous and should NEVER be implemented because chances are YOU WILL END UP BREAKING YOUR SYSTEM!!
Don't say you weren't warned!
NOTE: If you are running 12.04 or later, substitute "admin" with "sudo"!
Replace "username" with your actual user name:
usermod -aG admin username
Switch to root:
sudo -i
Create a new policy:
gedit /var/lib/polkit-1/localauthority/50-local.d/disable-passwords.pkla
Add the following:
[Do anything you want]
Identity=unix-group:admin
Action=*
ResultActive=yes
Save and exit. Then go try something that usually requires a password. :)
NOTE: It doesn't matter what you use as your .pkla file name. You can name it anything you want.
And last, this is the ONLY policy you'll need when it comes to suppressing password prompts because again, it does so globally.
Open dash, search for passwords and keys
and open it. You can remove the passwords for the keyring here (in the tab password
). It -should- ask for a new password -once- after that and not ask it again.
Is there anyway to turn off all of this "security" and tell my Ubuntu that it can trust what I'm doing and go take a shower?
You can leave the new password for the keyring blank. It will complain it is unsafe to do so. Accept it and it should never bug you again.
And taking a shower should not depend on Ubuntu passwords!
Best Answer
To remove password prompts for commands/apps using sudo:
Change:
to
Exit
visudo
- Ctrl+x, y, EnterRun:
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.