LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (https://www.linuxquestions.org/questions/gentoo-87/)
-   -   root password needed for USB mount using Device Notifier (https://www.linuxquestions.org/questions/gentoo-87/root-password-needed-for-usb-mount-using-device-notifier-4175532193/)

CollieJim 01-27-2015 02:05 AM

root password needed for USB mount using Device Notifier
 
I've recently installed Gentoo, and am having a *very* annoying problem. Until I updated yesterday, all attemts to use the Device Notifier have failed without explanation. Now I get a window requesting the root password. It appears that polkit-1 is involved.

I can mount a USB device as a normal user from the command line without a password, but the gui requires the root password. Not only that, but I have to enter it again to unmount the device.

I have "remember" selected, but to no effect.

How do I tell the system to allow me, as a normal user, to use the gui to mount USB storage, without a password?

Thanks
Jim

ferrari 01-30-2015 02:49 AM

Maybe the following wiki page will be of help:

http://wiki.gentoo.org/wiki/Polkit#Rules

This might do it for any user and who is a member of the 'storage' group (eg /etc/polkit-1/rules.d/10-udisks2.rules
Code:

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



All times are GMT -5. The time now is 12:45 AM.