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> References: <4EF4010B.5040704@herveybayaustralia.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
--4ZLFUWh1odzi/v6L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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,=20 > and PolicyKit, and I've made some inroads on the basics, but I cannot=20 > get a few things happening. >=20 > One: I managed to get network:/// smb shares working in say nautilus=20 > (not that I've specifically mounted one- not a windows in sight here=20 > 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=20 > usb disk to show up as a 'place' but when I access it I get permissions= =20 > 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=3D10] 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=3D"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.= =20 > How do I change that exactly? I need it showing for operator group.=20 Is hald running under its own user-id? Try the usb group thing and add the = hald user to that group. > I've=20 > searched high and low and googled my brains out, but anything remotely=20 > 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 --=20 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) --4ZLFUWh1odzi/v6L Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk70jrwACgkQEnfvsMMhpyV9QACdHLsf4Ed0VNd3W29k81apjLLO JN8AniN/N3s2RLGk0JUn7qjJ6k5mno1e =ZCLD -----END PGP SIGNATURE----- --4ZLFUWh1odzi/v6L--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111223142252.GC660>