DEVFS.CONF(5) | MidnightBSD File Formats Manual | DEVFS.CONF(5) |
devfs.conf
—
boot-time devfs configuration information
The devfs.conf
file provides an easy way
to set ownership and permissions, or create links for devices available at
boot.
It does not work for devices plugged in and out after the system is up and running, e.g. USB devices. See devfs.rules(5) for setting ownership and permissions for all device nodes, and devd.conf(5) for actions to be taken when devices are attached or detached.
Lines starting with a hash sign
(‘#
’) and empty lines are ignored. The
lines that specify devfs.conf
rules consist of three
parameters separated by whitespace:
The actions currently supported are:
link
own
perm
To create a /dev/cdrom link that points to
the first SCSI(4) CD-ROM,
the following may be added to devfs.conf
:
link cd0 cdrom
Similarly, to link /dev/cdrom to the first SCSI CD-ROM device, the following action may be used:
link cd0 cdrom
To set the owner of a device, the own
action may be specified:
own cd0 root:cdrom
To set the permissions of a device, a perm
action should be used:
perm cd0 0660
This manual page was written by Roland Smith <rsmith@xs4all.nl>.
October 13, 2015 | midnightbsd-3.1 |