Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Oct 2009 18:03:34 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        freebsd-questions@freebsd.org
Cc:        aryeh.friedman@gmail.com, Oliver Fromme <olli@lurza.secnetix.de>
Subject:   Re: How to set device permissions at startup
Message-ID:  <20091009160334.GB90880@slackbox.xs4all.nl>
In-Reply-To: <200910091034.n99AYLwH015037@lurza.secnetix.de>
References:  <4ACED156.1030609@gmail.com> <200910091034.n99AYLwH015037@lurza.secnetix.de>

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

--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
>  > > <aryeh.friedman@gmail.com>:
>  > >=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--



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