Today, I got a Not authorized to perform operation.
message when I tried to mount a drive in Thunar.
# cat /etc/polkit-1/localauthority/50-local.d/10-udiskie.pkla
[Local Users]
Identity=unix-group:storage
Action=org.freedesktop.udisks2.*
ResultAny=yes
ResultInactive=no
ResultActive=yes
I'm in the storage
group.
Best Answer
Rules of this sort, whether
polkit
orudev
are no longer necessary if you have an active session under systemd/logind. Originally, rules of this sort were a workaround for non-consolekit sessions, but now Arch has moved to systemd they are no longer necessary and are more likely to inhibit correct automounting behaviour rather than assist it.You can check that you have an active session with:
which should show amongst its output:
If this doesn't show, and you are not using a display manager, you need to ensure that when you start
X
your session is preserved—soX
must be run on the same TTY where login occurred. See this entry on the Arch Wiki.