1 .\" Copyright (c) 2004 Roland Smith <rsmith@xs4all.nl>
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .Nd boot-time devfs configuration information
36 file provides an easy way to set ownership and permissions, or create
37 links for devices available at boot.
39 It does not work for devices plugged in and out after the system is up
40 and running, e.g.\& USB devices.
43 for setting ownership and permissions for all device nodes, and
45 for actions to be taken when devices are attached or detached.
47 Lines starting with a hash sign
49 and empty lines are ignored.
50 The lines that specify
52 rules consist of three parameters separated by whitespace:
53 .Bl -tag -width indent
55 The action to take for the device.
56 The action names are only significant to the first unique character.
58 The name of the device created by
65 The actions currently supported are:
66 .Bl -tag -width indent
68 This action creates a symbolic link named
72 the name of the device created by
75 This action changes the ownership of
79 parameter must be in the form of an
80 .Ar owner Ns : Ns Ar group
81 pair, in the same format used by
84 This action changes the permissions of
95 .It Pa /etc/devfs.conf
96 .It Pa /usr/share/examples/etc/devfs.conf
101 link that points to the first
106 the following may be added to
108 .Bd -literal -offset indent
114 to the first ATAPI CD-ROM device, the following action may be used:
115 .Bd -literal -offset indent
119 To set the owner of a device, the
121 action may be specified:
122 .Bd -literal -offset indent
126 To set the permissions of a device, a
128 action should be used:
129 .Bd -literal -offset indent
139 This manual page was written by
140 .An "Roland Smith" Aq rsmith@xs4all.nl .