/dev files keep no permissions
rsmith at xs4all.nl
Wed Sep 23 17:54:25 UTC 2009
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
> > /dev/speaker 600 to /dev/speaker 666
> > --all works ok.
> > Then I reboot the computer and the permissions of the file is back to 600.
> > How to make it permanent? Is is normal that /dev files do what they
> > want?
> Yes :)
> The /dev filesystem is dynamic, it is recreated at every boot. For your
> setting to persist, enter it in /etc/devfs.conf
> The examples in there will help you out, although probably this is the
> line you need:
> 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 both
files is explained in their respective manual pages.
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090923/61307301/attachment.pgp
More information about the freebsd-questions