-
-
Save stpr-dev/10a5ef26c75dbf9eca161ca4d0d594b3 to your computer and use it in GitHub Desktop.
Revisions
-
radupotop revised this gist
Nov 5, 2012 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ // /etc/polkit-1/rules.d/10-rules.rules // PolKit rules to allow mounting, rebooting and network management without a password. // User needs to be in storage, power and network groups. polkit.addRule(function(action, subject) { if (action.id.match("org.freedesktop.udisks2.") && subject.isInGroup("storage")) { @@ -21,7 +21,7 @@ polkit.addRule(function(action, subject) { }); polkit.addRule(function(action, subject) { if (action.id.match("org.freedesktop.NetworkManager.") && subject.isInGroup("network")) { return polkit.Result.YES; } }); -
radupotop revised this gist
Nov 4, 2012 . No changes.There are no files selected for viewing
-
radupotop created this gist
Nov 4, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ // /etc/polkit-1/rules.d/10-rules.rules // PolKit rules to allow mounting, rebooting and network management without password. // User needs to be in storage, power and users groups. polkit.addRule(function(action, subject) { if (action.id.match("org.freedesktop.udisks2.") && subject.isInGroup("storage")) { return polkit.Result.YES; } }); polkit.addRule(function(action, subject) { if (action.id.match("org.freedesktop.login1.") && subject.isInGroup("power")) { return polkit.Result.YES; } }); polkit.addRule(function(action, subject) { if (action.id.match("org.freedesktop.upower.") && subject.isInGroup("power")) { return polkit.Result.YES; } }); polkit.addRule(function(action, subject) { if (action.id.match("org.freedesktop.NetworkManager.") && subject.isInGroup("users")) { return polkit.Result.YES; } });