0

My requirement is that only a certain group of users may mount a particular smb share. Ideally, the mounting would not require superuser privileges.

I have looked at polkit and udisks2.

I found the following rule, which pretty much describes what I want:

polkit.addRule(function(action, subject) {
    if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
         action.id == "org.freedesktop.udisks2.filesystem-mount") &&
        subject.isInGroup("*group*")) {
        return polkit.Result.YES;
    }
});

Does such a module also exist for smb and nfs mounts? Or is there an alternative way to fullfill my requirement?

  • I searched high and low and can find no actions that correspond to mounting other file systems only disk (udisks). This probably explains why you have had no replies. I don't understand why this issue has not been solved. Must come up all the time. – DKebler Jan 17 at 23:06

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.