i encountered a similar problem on Wheezy and finally managed to solve it. if you don't run any desktop environment but just WM with additional apps and you get this error with PCManFM or
udisks --mount, you can try the following:
(1) install
lxpolkit package.
(2) create a file inside the
/etc/polkit-1/localauthority/local.d directory with
*.pkla extension (eg.
50-mount.pkla). other extensions such as
.conf won't work. the contents should be as follows:
Code: Select all
[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;org.freedesktop.udisks.filesystem-mount-system-internal
ResultAny=yes
ResultActive=yes
ResultInactive=yes
(3) add yourself to the
storage group (or whatever you set in the "Identity" line above). the defaut
plugdev group can be used too.
(4) make sure that
lxpolkit and DBus are started along with X server. i use the
.xinitrc file which ends with:
Code: Select all
# dbus
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
eval "$(dbus-launch --sh-syntax --exit-with-session)"
fi
# polkit auth agent
/usr/lib/i386-linux-gnu/lxpolkit &
# window manager
exec openbox
(5) that's probably all.
other auth agents can also be used but lxpolkit is probably much lighter than many and has less dependiences.
this solution is an effect of browsing various forums and experimenting, not studying manpages etc. possibly it's imperfect and any suggestions on how to improve it are welcome.