Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1139  / 3 Years ago, sat, august 28, 2021, 5:10:35

I would only like a password prompt at login and lock screen (i.e, to make sure others don't use my computer). However, when I am at my computer, I do not want to be prompted at all for my password, for any reason.



I realize it is a "security risk", but I am a developer and the loss of convenience is more important to me.



Adding "NOPASSWD" to sudoers will stop it from prompting at the shell, but stuff like Update Manager and Ubuntu Software Center will still bother me.



Any help is appreciated. Thanks!


More From » password

 Answers
5

OK, I found the answer to my own question. Turns out this non-sudoers-respecting password prompt application is called PolicyKit.


Fix is simple: in /var/lib/polkit-1/localauthority/50.local.d, create a file called disable.pkla (or whatever you want, as long as it ends with .pkla) with the following contents:


[This name does not matter]
Identity=unix-group:admin
Action=*
ResultActive=yes

Log out and back in, and enjoy!


[#36340] Monday, August 30, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rryble

Total Points: 489
Total Questions: 121
Total Answers: 119

Location: Marshall Islands
Member since Mon, May 31, 2021
3 Years ago
;