on 2011-02-27 at 13:51 Paul Colquhoun wrote:

>Hmmm.  "equery b" for  /etc/PolicyKit/PolicyKit.conf or
>just /etc/PolicyKit doesn't return any packages on my system.

from what i could find on the web, it seems to me
that /etc/PolicyKit/PolicyKit.conf belongs to a deprecated policykit
package, superseded (at least on my system) by polkit, the configuration
files of which are under /etc/polkit-1

now, i found lots of examples on the web how to configure the old
PolicyKit.conf file to allow normal users mount usb devices, but it took
some time to find out how to configure the polkit files. here's what i
found, and it works:


/etc/polkit-1/localauthority.conf.d/50-localauthority.conf :

[Configuration]
AdminIdentities=unix-group:wheel 


/etc/polkit-1/localauthority/50-local.d/11-my-polkit-udisks.pkla

[udisks full access]
Identity=unix-user:<your username>
Action=org.freedesktop.udisks.*
ResultAny=yes

[http://forums.gentoo.org/viewtopic-t-858965-postdays-0-postorder-asc-start-25.html]

i guess that in the second file i could also use unix-group:wheel (or users
or whatever) instead of unix-user, but i'm the only one using this machine,
so it's just as well.

now automounting "just works", without needing anything else, like udev
rules or additional automonting packages. 

PENDING ISSUE: on thunar (and xfce, the other file manager i occasionally
use) i can eject the drive but no umount it (i mean the ability to umount
the file system but not delete the mount point under /media)

a big thank you (und vielen dank) to everybody!

lj



Reply via email to