1

In the file manager PCManFM I can access discs in my USB DVD drive but I cannot eject them or access other USB storage devices - I get the error message "Not Authorized". Any clues?

I use Debian 7.7.0 and my window manager is launched by .xinitrc with

exec dbus-launch --exit-with-session blackbox
  • This is usually an issue related to permissions of the specific block device. You might not have the necessary permissions to access the relevant device. Are you a member of the relevant group, probably cdrom or dvd or similar? – Faheem Mitha Oct 26 '14 at 18:51
  • @FaheemMitha I don't think the problem is specific to a device; so far I have tried with an MP3 player, a digital camera and a tablet. I can't access any of them without being root. As far as I understand the relevant group is plugdev and I am a member of it. – August Karlstrom Oct 26 '14 at 18:57
  • Ah, I assume these are all mounted as mass storage devices, is that right? What does the mount command show for the relevant mounted device? Also, how are you mounting them? Maybe you just need to modify your mount permissions. – Faheem Mitha Oct 26 '14 at 19:25
  • @FaheemMitha Well, the problem is that I can't mount the devices in PCManFM. They show up but I can't access them. – August Karlstrom Oct 26 '14 at 20:00
  • Do you have udisks2 installed ? – Costas Oct 26 '14 at 20:47
1

I found a solution. Create a file in /etc/polkit-1/localauthority/50-local.d/, for instance called udisks.pkla, with the following content:

[Allow normal users to access removable media]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject
ResultAny=yes
ResultActive=yes
ResultInactive=yes
| improve this answer | |
0

Run the window manager in a ConsoleKit session:

exec ck-launch-session blackbox
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.