Allow wheel members to manage systemd units without prompts.
Required for passwordless run0 usage.
This commit is contained in:
parent
02e0d34ac3
commit
ae7824edef
1 changed files with 5 additions and 0 deletions
5
etc/polkit-1/rules.d/80-systemd-unit-manage.rules
Normal file
5
etc/polkit-1/rules.d/80-systemd-unit-manage.rules
Normal file
|
@ -0,0 +1,5 @@
|
|||
polkit.addRule(function(action, subject) {
|
||||
if (action.id == "org.freedesktop.systemd1.manage-units" && subject.local && subject.active && subject.isInGroup("wheel")) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue