For years, I've had the following in my sudoers
file:
scott ALL=NOPASSWD: ALL
For those who don't know, this prevents sudo
and friends (gksudo
, etc.) from asking for a password. However, over the years, more and more stuff that once used sudo
has been switched to using PolicyKit.
I'm looking for an equivalent configuration for PolicyKit, such that it'll never ask me for my password.
For those who don't like my request, let me say this: I understand the reasons for the default configuration, and they are sound. I also understand the risks inherent in the configuration I want to make. Nevertheless, it's the way I want to set up my system. Those who don't fully understand the above shouldn't attempt what I'm attempting.
admin
group withwheel
. Thanks! – Kenny Rasschaert Mar 04 '14 at 12:40[Install package file]
. Either you disagree with this and the NOTE requires a similar edit, or your edit is invalid and should be rolled back. – bcbc Jun 25 '15 at 19:40Action=*
field (in this case*
which means any action), but not the title of the text which, afaik is free text. – blueFast Jun 25 '15 at 19:48Identity=unix-user:scott
to only allow the user "scott" to do the action. Also if you want to just allow certain actions, you can grep /var/log/auth.log and polkitd will output the full name of the polkit you were trying when you were prompted for your password.cat /var/log/auth.log | grep polkitd
will give you a pretty quick list of them – Scott Mar 03 '17 at 21:20confirm
:-(. – blaimi Nov 07 '23 at 22:47