Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Sep 2009 19:54:22 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        Manolis Kiagias <sonicy@otenet.gr>
Cc:        herbs <herbert.raimund@gmx.net>, freebsd-questions@freebsd.org
Subject:   Re: /dev files keep no permissions
Message-ID:  <20090923175422.GA22812@slackbox.xs4all.nl>
In-Reply-To: <4AB9C3BC.9000904@otenet.gr>
References:  <20090923063805.GA21788@greencat.langhans.com.pl> <4AB9C3BC.9000904@otenet.gr>

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

--J2SCkAp4GZ/dPZZf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Sep 23, 2009 at 09:44:12AM +0300, Manolis Kiagias wrote:
> herbs wrote:
> > Hi Daemons,
> > I wonder whats wrong there:
> >
> > I need to change the permissions from=20
> > /dev/speaker 600 to /dev/speaker 666
> > --all works ok.
> >
> > Then I reboot the computer and the permissions of the file is back to 6=
00.
> >
> > How to make it permanent? Is is normal that /dev files do what they
> > want?
>=20
> Yes :)
> The /dev filesystem is dynamic, it is recreated at every boot. For your
> setting to persist, enter it in /etc/devfs.conf
>=20
> The examples in there will help you out, although probably this is the
> line you need:
>=20
> perm speaker 0666

One important caveat; /etc/devfs.conf works only for devices that are
available at boot time. For devices that are created during runtime, like
e.g. usb devices, you have to use /etc/devfs.rules instead. The format of b=
oth
files is explained in their respective manual pages.

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)

--J2SCkAp4GZ/dPZZf
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (FreeBSD)

iEYEARECAAYFAkq6YM4ACgkQEnfvsMMhpyV0WQCcC05LggmYloOH10KN34pA1JJv
dTIAn0WLh8eljvKfcFJvMlLaljmiaOnG
=uqKR
-----END PGP SIGNATURE-----

--J2SCkAp4GZ/dPZZf--



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