/* Copy this to /etc/polkit-1/rules.d/allow-mount-internal.rules */ polkit.addRule(function(action, subject) { if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" || action.id == "org.freedesktop.udisks.filesystem-mount-system-internal") && subject.local && subject.active && subject.isInGroup("users")) { return polkit.Result.YES; } });