From owner-freebsd-questions@FreeBSD.ORG Fri Dec 23 14:43:32 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27485106566B for ; Fri, 23 Dec 2011 14:43:32 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr9.xs4all.nl (smtp-vbr9.xs4all.nl [194.109.24.29]) by mx1.freebsd.org (Postfix) with ESMTP id 95AC08FC12 for ; Fri, 23 Dec 2011 14:43:31 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr9.xs4all.nl (8.13.8/8.13.8) with ESMTP id pBNEMqtB072839; Fri, 23 Dec 2011 15:22:52 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id 65817BACE; Fri, 23 Dec 2011 15:22:52 +0100 (CET) Date: Fri, 23 Dec 2011 15:22:52 +0100 From: Roland Smith To: Da Rock Message-ID: <20111223142252.GC660@slackbox.erewhon.net> References: <4EF4010B.5040704@herveybayaustralia.com.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4ZLFUWh1odzi/v6L" Content-Disposition: inline In-Reply-To: <4EF4010B.5040704@herveybayaustralia.com.au> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: questions@freebsd.org Subject: Re: PolicyKit confusion X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2011 14:43:32 -0000 --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--