On Sun, 14 Mar 2021 12:16:27 +0100 "Dr. Nikolaus Klepp" office@klepp.biz wrote:
Yesterday I did a dist-upgrade. Today I'm greeted with an error message from konqueror when I connect a usb flash drive:
Unable to mount this device. Technische Details: org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain: Not authorized to perform operation
Any idea where this comes from and what I can do to resolve that problem? Mounting/unmounting worked prior to the update.
Addon:
$ udisksctl mount -b /dev/sdb ==== AUTHENTICATING FOR org.freedesktop.udisks2.filesystem-mount === Legitimierung ist zum Einhängen von Generic Flash Disk (/dev/sdb) notwendig Authenticating as: ,,, (nik) Password: ==== AUTHENTICATION COMPLETE === Mounted /dev/sdb at /media/8GB nik@t61:~$
Why the heck is it asking me for my password ???
You need to modify org.freedesktop.UDisks2.policy (probably at /usr/share/polkit-1/actions but this could be distro specific)
Search in for org.freedesktop.udisks2.filesystem-mount, then scroll down to <defaults> block and replace whatever auth rule there is with "yes", like this: <allow_any>yes</allow_any> <allow_inactive>yes</allow_inactive> <allow_active>yes</allow_active>