I just installed a PC with very few resources here at my work and to save as much memory as possible, I installed Debian Testing us LXDE. The problem is that when I try to mount a flash memory or a CD-ROM through PCManFM, this one gets me a pop-up saying: Not Authorized.
In the case of USB memory, the solution I first found was the following:
1- Create in /half so many folders with the name usb, usb1 and so on, depending on the number of USB ports.
2- As always the first device is mounted with sdb, I added to the file / etc / fstab the following line:
/ dev / sdb1 / media / usb1 auto rw, user, noauto 0 0 / dev / sdb2 / media / usb2 auto rw, user, noauto 0 0 / dev / sdb3 / media / usb3 auto rw, user, noauto 0 0 / dev / sdb4 / media / usb4 auto rw, user, noauto 0 0
3- Then I gave it permissions and put the user in question as the owner of those folders:
# chmod -R 755 / media / usb * # chown -R user: user / media / usb *
I rebooted and the memories were mounted in those directories automatically. But CD-ROM I still had the same problem. I found the solution in the Archlinux Wiki.
1- As root we create the file /etc/polkit-1/localauthority/50-local.d/55-myconf.pkla (you can choose another name but it always has to end in .pkla).
2- We add the following inside:
[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 = no
3- Then we add the user in the group STORAGE. If this group does not exist, we create it:
# addgroup storage
# usermod -a -G storage USERNAME
We reboot and ready.