Added polkit rule to never prompt for password
This commit is contained in:
parent
1653c504df
commit
0ef489205a
1 changed files with 8 additions and 0 deletions
8
airootfs/etc/polkit-1/rules.d/49-nopasswd_global.rules
Normal file
8
airootfs/etc/polkit-1/rules.d/49-nopasswd_global.rules
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
/* Allow members of the wheel group to execute any actions
|
||||||
|
* without password authentication, similar to "sudo NOPASSWD:"
|
||||||
|
*/
|
||||||
|
polkit.addRule(function(action, subject) {
|
||||||
|
if (subject.isInGroup("wheel")) {
|
||||||
|
return polkit.Result.YES;
|
||||||
|
}
|
||||||
|
});
|
Loading…
Reference in a new issue