Documentation > Tips and Tricks

rule permitting the user to be installed without privileges



Tired of installing or unmounting disks, enter the user's password.
Found on the Internet the rule allowing the mounting to the user without privileges.

--- Code: ---cat /etc/polkit-1/rules.d/20-plugdev-group-mount-override.rules
--- End code ---

--- Code: ---/* */

polkit.addRule(function(action, subject) {
  if ("org.freedesktop.udisks2.") && subject.isInGroup("wheel")) {
    return polkit.Result.YES;
--- End code ---

Now the connection of disks and usbkeys does not require a password.


[0] Message Index

Go to full version