Date: Fri, 23 Dec 2011 06:37:44 +0100 From: Polytropon <freebsd@edvax.de> To: Da Rock <freebsd-questions@herveybayaustralia.com.au> Cc: questions@freebsd.org Subject: Re: PolicyKit confusion Message-ID: <20111223063744.1894ceda.freebsd@edvax.de> In-Reply-To: <4EF4010B.5040704@herveybayaustralia.com.au> References: <4EF4010B.5040704@herveybayaustralia.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 23 Dec 2011 14:18:19 +1000, Da Rock wrote:
> I checked out /media/hal-* and I see that the mount occurs only as root.
> How do I change that exactly? I need it showing for operator group. I've
> searched high and low and googled my brains out, but anything remotely
> related is for linux and udev.
I think I remember I got it working some time ago
(on a 7.1 system), relying on the Gnome HAL FAQ
which stated something like this:
File: /usr/local/etc/PolicyKit/PolicyKit.conf
<config version="0.1">
<match action="org.freedesktop.hal.storage.mount-removable">
<match user="marcus">
<return result="NNNNN"/>
</match>
</match>
<match action="org.freedesktop.hal.storage.mount-fixed">
<match user="marcus">
<return result="NNNNN"/>
</match>
</match>
</config>
For "NNNNN", use your user name; I think you can also
use more than one "match" section if you want to allow
access for other users. However, I doubt all this
HAL / DBUS / PolicyKit magic is really intended for
multi-user purposes. :-)
Note that HAL also has an option of "fixed mount points"
to be set at compile time. I think I had set it...
I'm also unsure if NFS mounts are "fixed" or "removable"
in PK terminology.
Regarding your second question, I can't provide any
further information. I just assume it's a means to
turn a safe multi-user system into an insecure
single-user system, which is what users expect. :-)
--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111223063744.1894ceda.freebsd>
