Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I've just installed Debian Sid on my computer but I cannot mount external USB drives as you can see in the image.

enter image description here

Mounting failed
Cannot mount "SENZATITOLO"
Not authorized

What should I do?

share|improve this question
1  
What kind of "external memory" is that ? –  don_crissti Mar 2 '13 at 15:21
    
an usb memory, but also with SD –  AlessioMTX Mar 2 '13 at 15:36
    
Either use sudo or set the users option for that device in /etc/fstab, so you can mount it as ordinary user. –  ott-- Mar 2 '13 at 18:17
2  
@ott-- Probably not, I suspect OP is trying to use udisks to mount under /media. That should work... –  derobert Mar 2 '13 at 18:50
1  
What did you do to try mounting? Do you log in by typing your password in text mode or in graphics mode? –  Gilles Mar 3 '13 at 23:18
show 2 more comments

1 Answer 1

up vote 4 down vote accepted

You are using a lightweight window manager. I've had this problem before in another such window manager. So it sounds like a problem with polkit to me. Does your system have a directory called /etc/polkit-1/localauthority/? If so, create a file (as root)... I use the nano text editor here. Paste into the terminal with CTRL + SHIFT + V.

su root
nano /etc/polkit-1/localauthority/50-local.d/55-storage.pkla

add the following lines:

[Storage Permissions]
Identity=unix-group:plugdev
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=no

now add yourself to the plugdev group:

usermod -a -G plugdev <your username>

logout and log back in. If it is polkit, you should be able to mount media now.

share|improve this answer
    
Thank you !!! I've solved –  AlessioMTX Mar 6 '13 at 15:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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