PDA

View Full Version : org.freedesktop.Hal.Device.PermissionDeniedByPolic y


Erratus
May 11th, 2009, 15:53
Dolphin in KDE 4.2.3 as root has access to all volumes.

But users in group operators access is denied. Dolphin shows this message:

org.freedesktop.Hal.Device.PermissionDeniedByPolic y: org.freedesktop.hal.storage.mount-fixed no <-- (action, result)

How to change this? Please help.

SirDice
May 11th, 2009, 16:23
Looks like the same issue as with Gnome. Have a look here, especially step 2 & 3:
http://www.freebsd.org/gnome/docs/halfaq.html#q3

Also make sure hald and dbus are running.

neurosis
May 15th, 2009, 01:51
I am having the same problem. :( I read the link above several time and edited my PolicyKit.conf and yet I still get that same error. I hope someone can offer a solution or lead me to help you help me.

Erratus
May 15th, 2009, 03:50
I am having the same problem. :( I read the link above several time and edited my PolicyKit.conf and yet I still get that same error. I hope someone can offer a solution or lead me to help you help me.

I don't know your security requirements, but I can offer you my hack of /usr/local/etc/PolicyKit/PolicyKit.conf

<match user="root|MYNAME">
<return result="yes"/>
</match>
this may be acceptable if MYNAME is same person as root.

If you need to fine grain users and/or volumes have a look in manual page PolicyKit.conf(5)

Regarding Step 1 of HAL-FAQ I found that it works without mounting /proc too.

Maybe someone posts how to configure this for the group operator?

FBSDin20Steps
May 15th, 2009, 20:09
Here is my PolicyKit.conf. It mounts more than I want. :e
Also check your rc.conf, devfs.conf and devfs.rules in "/etc". Add yourself to group "operator".

<config version="0.1">
<define_admin_auth group="operator"/>
<match action="org.freedesktop.hal.storage.mount-removable">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.storage.mount-fixed">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.storage.eject">
<return result="yes"/>
</match>
</config>

If this doesn't work. Then read what was suggested in the first place.

neurosis
May 18th, 2009, 06:41
Ive got it working! Thanks guys.

FBSDin20Steps, Does that setup allow you to mount usb thumb drives as well? I am trying to tackle that issue now.

FBSDin20Steps
May 18th, 2009, 12:44
Yes