• Skip to main content
  • Skip to primary sidebar
  • Advertise

Computer Tips And Tricks, Gadgets, How-To, Life - 2.0 Style

Get latest technology updates and computer tips and tricks.

PolicyKit.conf hack

June 15, 2008 by Gautam

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.

Filed Under: Computer Tips And Tricks, Linux Tagged With: error, hard disks, mouting, policykit

Reader Interactions

Comments

  1. Chaz6 says

    February 9, 2009 at 5:54 am

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

  2. Phil says

    August 24, 2008 at 1:00 am

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

Primary Sidebar

Copyright © 2023 · Magazine Pro on Genesis Framework · WordPress · Log in