You are not logged in.

#1 2012-01-06 23:19:34

AleksMK
Member
Registered: 2010-10-03
Posts: 4

Nautilus - Not Authorized error while trying to mount USB Flash Drive

Hi, Nautilus gives me an "Not Authorized" error when I try to access any USB storage device or mount anything. I'm using awesome wm, and lightdm for login. I've found couple of sollutions involving .xinitrc, but I'm not using .xinirc at all, so they will not work for me.

I have loaded the pam_ck_connect.so module in /etc/pam.d/lighdm and login and ck-list-sessions gives me a list of all active consolekit sessions. I'm in the storage and disk groups so I don't think that it's a group issue.

Any help will be greatly appreciated,

Regards

Offline

#2 2012-01-06 23:47:40

AleksMK
Member
Registered: 2010-10-03
Posts: 4

Re: Nautilus - Not Authorized error while trying to mount USB Flash Drive

Ha, after investigating a bit I found that the problem was in polkit. I wasn't alowed to mount filesystems.

This is what I did, I created /etc/polkit-1/localauthority/50-local.d/mount.pkla with this content :

[Storage Permissions]
Identity=unix-group:storage
Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach;org.freedesktop.udisks.luks-unlock;org.freedesktop.udisks.inhibit-polling;org.freedesktop.udisks.drive-set-spindown
ResultAny=yes
ResultActive=yes
ResultInactive=yes

you need to be in the `storage` group in order for this to work.

Regards

Offline

#3 2012-01-11 07:30:00

beej
Member
From: Bend, OR
Registered: 2009-01-27
Posts: 22
Website

Re: Nautilus - Not Authorized error while trying to mount USB Flash Drive

AleksMK wrote:

Ha, after investigating a bit I found that the problem was in polkit. I wasn't alowed to mount filesystems.

This is what I did, I created /etc/polkit-1/localauthority/50-local.d/mount.pkla with this content :

[Storage Permissions]
Identity=unix-group:storage
Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach;org.freedesktop.udisks.luks-unlock;org.freedesktop.udisks.inhibit-polling;org.freedesktop.udisks.drive-set-spindown
ResultAny=yes
ResultActive=yes
ResultInactive=yes

you need to be in the `storage` group in order for this to work.

This is what eventually worked for me with xdm/fvwm, literally bringing tears of joy to my eyes after 2 hours.  I was almost there, but I had to say "yes" for all the Result options.

Also, in my .xinitrc, I've commented out the stuff that runs the files in xinitrc.d, and my launch command is:

exec ck-launch-session dbus-launch --exit-with-session fvwm

I don't know if that's still required, but I'm done messing with it for the night.

Offline

Board footer

Powered by FluxBB