PolicyKit.conf hack

June 15th, 2008

When I right-click an existing volume in nautilus and try to mount it, I get this error in a dialogue box:

Cannot mount volume.

Error org.freedesktop.Hal.Device.PermissionDeniedByPolicy.

org.freedesktop.hal.storage.mount-fixed
auth_admin_keep_always <— (action, result)

I googled around a bit and created a quick’n’dirty configuration change to /etc/PolicyKit/PolicyKit.conf that gives me feature parity with fl:1.4.1, where I can mount and unmount all volumes:

(inside <config> … <config/> block):

<match user=”ermo”>
<match action=”org.freedesktop.hal.storage.*”>
<return result=”yes”/>
</match>
</match>

While it works for me, this solution is probably not optimal. We should probably think about what operations we want to allow and add them when creating a new user (or perhaps a gui exists for maintaining this?). I’m new to HAL and PolicyKit, so there might exist an obvious solution that I don’t know about yet

Source

This lil tweak worked for me, I had trouble accessing the 160GB SATA disk on the desktop prior to this.


  1. Phil
    August 24th, 2008 at 01:00 | #1

    Thanks – this script also solved my problem (OpenSuse 11.0 – KDE4.1)

  2. February 9th, 2009 at 05:54 | #2

    Me too – on OpenSUSE 11.1. It is kind of annoying that it does not work out of the box.

  1. No trackbacks yet.