You are not logged in.
Pages: 1
I have the following problem:
When i plug in my Kindle I cannot mount it via GUI with my user (I have cinnamon installed). The error message I get is: "Unable to mount Kindle. Not authorized to perform operation".
Funny thing is, this was not a problem a few weeks ago and all I did system-wise was update my packages.
I have tried
1) mounting manually from command line with sudo and it works - so it is some sort of permission issue.
2) i checked the device owner and group and it is
ls -all /dev/disk/by-label/
lrwxrwxrwx 1 root root 10 Apr 30 19:24 Kindle -> ../../sdj1
ls -all /dev/sdj1
brw-rw---- 1 root disk 8, 145 Apr 30 19:24 /dev/sdj1
Tried to add my user to the disk group but nothing happens after I run the usermog -a -G disk USERNAME command (group disk is not listed when listing them using the groups comand).
How could I resolve this issue?
Last edited by Yoda007 (2018-05-11 18:36:00)
Offline
Finally figured it out. Needed to add a polkit rule to /etc/polkit-1/rules.d/ :
polkit.addRule(function(action, subject) {
var YES = polkit.Result.YES;
// NOTE: there must be a comma at the end of each line except for the last:
var permission = {
// required for udisks1:
"org.freedesktop.udisks.filesystem-mount": YES,
"org.freedesktop.udisks.luks-unlock": YES,
"org.freedesktop.udisks.drive-eject": YES,
"org.freedesktop.udisks.drive-detach": YES,
// required for udisks2:
"org.freedesktop.udisks2.filesystem-mount": YES,
"org.freedesktop.udisks2.encrypted-unlock": YES,
"org.freedesktop.udisks2.eject-media": YES,
"org.freedesktop.udisks2.power-off-drive": YES,
// required for udisks2 if using udiskie from another seat (e.g. systemd):
"org.freedesktop.udisks2.filesystem-mount-other-seat": YES,
"org.freedesktop.udisks2.filesystem-unmount-others": YES,
"org.freedesktop.udisks2.encrypted-unlock-other-seat": YES,
"org.freedesktop.udisks2.eject-media-other-seat": YES,
"org.freedesktop.udisks2.power-off-drive-other-seat": YES
};
if (subject.isInGroup("storage")) {
return permission[action.id];
}
});
Offline
Pages: 1