Can't automount without being root

Dwayne MacKinnon dmk at ncf.ca
Fri Mar 28 13:19:41 PDT 2008



----- Original Message -----
From: George Hartzell <hartzell at alerce.com>
Date: Friday, March 28, 2008 3:11 pm
Subject: Re: Can't automount without being root

> Dwayne MacKinnon writes:
> > Hi folks,
> > 
> > I'm using KDE-3.5.8 on FreeBSD 7.0-RELEASE. Since the HAL 
> upgrade I can't 
> > automount as an "ordinary" user anymore. I get the following 
> error message in 
> > Konqueror:
> > 
> > org.freedesktop.hal.storage.mount-removable no <-- (action, result)
> > 
> > Automounting as root is fine. My user, btw, is set up as a 
> member of both the 
> > wheel and operator groups. 
> > 
> 
> I just posted my experiences with the upgrade to gnome 2.22 and
> mentioned this trick:
> 
> : My usb memory stick to automount would not automagically mount, 
> even : though I'm in the operator group.  Some googling suggested 
> that I
> : should add:
> :   <match action="org.freedesktop.halstorage.mount-removable">
> :    <return result="yes">
> :   </match>
> : to /usr/local/etc/PolicyKit/PolicyKit.conf.  Now my memory stick
> : mounts automagically.  Is this normally required?  Did I miss it in
> : the freebsd gnome FAQ or should it be added?
> 
> I don't know if it should have been necessary, but it seems to have
> helped.
> 
> g.

Thanks for the tip, George.

I looked around at the man page for PolicyKit.conf and found that the
following config allowed the behavior I'd come to expect:

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

Cheers,
Dwayne MacKinnon


More information about the freebsd-gnome mailing list