Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Dec 2011 15:22:52 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        Da Rock <freebsd-questions@herveybayaustralia.com.au>
Cc:        questions@freebsd.org
Subject:   Re: PolicyKit confusion
Message-ID:  <20111223142252.GC660@slackbox.erewhon.net>
In-Reply-To: <4EF4010B.5040704@herveybayaustralia.com.au>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Fri, Dec 23, 2011 at 02:18:19PM +1000, Da Rock wrote:
> This is doing my head in.

:-)

> I'm trying to get my head around hal, dbus, 
> and PolicyKit, and I've made some inroads on the basics, but I cannot 
> get a few things happening.
> 
> One: I managed to get network:/// smb shares working in say nautilus 
> (not that I've specifically mounted one- not a windows in sight here 
> thank god!), but I was hoping for NFS shares to show up.

Why not just use mount_nfs from your login shell's rc file?

> I also got the 
> usb disk to show up as a 'place' but when I access it I get permissions 
> issues. This is what I'm hung up on.

I'm not using policykit or hal, but I did make a separate group predictably
called 'usb' to solve permission problems for USB devices. My user-id is a
member of that group. I have to following set in /etc/devfs.rules:

[my_devs=10]
add path 'da*' mode 0660 group usb
add path 'msdosfs/*' mode 0660 group usb
add path 'usb/*' mode 0660 group usb
add path 'ugen*' mode 0660 group usb
add path 'tap*' mode 0660 group wheel
add path 'pass*' mode 0660 group cdrom
add path 'dri/card*' mode 0666

And in /etc/rc.conf I have activated this ruleset:

devfs_system_ruleset="my_devs"

With this I can access the necessary devices.

> 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. 

Is hald running under its own user-id? Try the usb group thing and add the hald
user to that group.

> I've 
> searched high and low and googled my brains out, but anything remotely 
> related is for linux and udev.

I don't think enough people care to make it really work under FreeBSD. I've
certainly never missed it.

You might take a look at devd(8) as a FreeBSD alternative, but I'm not sure if
it notices new da devices popping up.

Roland
-- 
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iEYEARECAAYFAk70jrwACgkQEnfvsMMhpyV9QACdHLsf4Ed0VNd3W29k81apjLLO
JN8AniN/N3s2RLGk0JUn7qjJ6k5mno1e
=ZCLD
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111223142252.GC660>