From owner-freebsd-questions@FreeBSD.ORG Wed Sep 23 17:54:25 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 415B0106568B for ; Wed, 23 Sep 2009 17:54:25 +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 CBD078FC16 for ; Wed, 23 Sep 2009 17:54:24 +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 n8NHsNU0082368; Wed, 23 Sep 2009 19:54:23 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id C821CBAAA; Wed, 23 Sep 2009 19:54:22 +0200 (CEST) Date: Wed, 23 Sep 2009 19:54:22 +0200 From: Roland Smith To: Manolis Kiagias Message-ID: <20090923175422.GA22812@slackbox.xs4all.nl> References: <20090923063805.GA21788@greencat.langhans.com.pl> <4AB9C3BC.9000904@otenet.gr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <4AB9C3BC.9000904@otenet.gr> 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: herbs , freebsd-questions@freebsd.org Subject: Re: /dev files keep no permissions 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: Wed, 23 Sep 2009 17:54:25 -0000 --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--