What is the setup to allow a user in a certain group to mount disks?
AFAIK, a file in /etc/polkit-1/rules.d/, containing the following would do it:
- Code: Select all
// Allow udisks2 to mount devices without authentication
// for users in the "wheel" group.
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
action.id == "org.freedesktop.udisks2.filesystem-mount") &&
subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
But seems to not work.
What is the correct configuration?
Thank you.