From owner-freebsd-questions@FreeBSD.ORG Fri Oct 9 16:03:37 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 698A6106566B for ; Fri, 9 Oct 2009 16:03:37 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr17.xs4all.nl (smtp-vbr17.xs4all.nl [194.109.24.37]) by mx1.freebsd.org (Postfix) with ESMTP id D92A78FC17 for ; Fri, 9 Oct 2009 16:03:36 +0000 (UTC) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr17.xs4all.nl (8.13.8/8.13.8) with ESMTP id n99G3Zex076388; Fri, 9 Oct 2009 18:03:35 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id C6650BA96; Fri, 9 Oct 2009 18:03:34 +0200 (CEST) Date: Fri, 9 Oct 2009 18:03:34 +0200 From: Roland Smith To: freebsd-questions@freebsd.org Message-ID: <20091009160334.GB90880@slackbox.xs4all.nl> References: <4ACED156.1030609@gmail.com> <200910091034.n99AYLwH015037@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lEGEL1/lMxI0MVQ2" Content-Disposition: inline In-Reply-To: <200910091034.n99AYLwH015037@lurza.secnetix.de> 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.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: aryeh.friedman@gmail.com, Oliver Fromme Subject: Re: How to set device permissions at startup 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, 09 Oct 2009 16:03:37 -0000 --lEGEL1/lMxI0MVQ2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 09, 2009 at 12:34:21PM +0200, Oliver Fromme wrote: > Aryeh M. Friedman wrote: > > Herbert J. Skuhra wrote: > > > Den 9. okt. 2009 kl. 05.25 skrev "Aryeh M. Friedman"=20 > > > : > > >=20 > > > > Since certain currently unused devices are not created in /dev=20 > > > > (specifically in my case /dev/fuse*) how do I tell what ever (I ca= n't=20 > > > > tell it is devfs or what) to always make /dev/fuse* (when needed)= =20 > > > > with 777 perms (the security implications are not an issue here) > > >=20 > > > Have you tried devfs.rules(5)? > >=20 > > yes and since the device doesn't exist at the mount time for devfs the= y=20 > > are ignored >=20 > Then you did something wrong, or you're confusing devfs.rules > and devfs.conf. >=20 > Quote from the manpage: > "The devfs.rules file provides an easy way to create and apply > devfs(8) rules, even for devices that are not available at boot." >=20 > The rules take effect whenever a new node (devide) appears, > even after devfs was mounted. But one has to run '/etc/rc.d/devfs restart' for newly added rules to take effect! (or reboot the system, which is overkill). You can try it out by adding a rule to /etc/devfs.rules and running 'devfs rule show' (as root). The new rule won't show up until after one has run 'etc/rc.d/devfs restart'. Maybe I whould add that to the manual page for devfs.rules? I thought this = was obvious, because most if not all rc.d scripts work that way, but mayby it's not clear enough. 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) --lEGEL1/lMxI0MVQ2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEARECAAYFAkrPXtYACgkQEnfvsMMhpyXgCwCgkWtKirIAFB2zOad8POrzIY6a OeAAnRwnIra6zDZU0FLQjGyYtuIU7zcA =+udU -----END PGP SIGNATURE----- --lEGEL1/lMxI0MVQ2--