Quote:
Originally Posted by senseproof
The halevt daemon starts itself as the user halevt. So when I put in my removable media I notice it tries to mount them (from /var/log/messages):
XXXXX localhost halevt: Running: halevt-mount -u /org/freedesktop/Hal/devices/XXXXX -o sync -m 002
But no device is mounted. If I make halevt daemon start as root then the devices mount like they should so the problem is that the halevt user does not have the right permission to mount devices. How can I give it that permission? Since these are removable medias I can't add specific permissions for each media, the halevt user must be able to mount/unmount any removable media entered.
|
Hello Senseproof,
To allow the user "halevt" to automount your removables, you should add this to your /etc/PolicyKit/PolicyKit.conf :
Code:
<match action="org.freedesktop.hal.storage.mount-removable">
<match user="halevt">
<return result="yes"/>
</match>
</match>
(in between the <config></config> tags)
Then stop halevt daemon, restart hal, and start halevt.
I had the same problem and this fixed it.
(see
http://hal.freedesktop.org/docs/Poli...it.conf.5.html)