]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/man/man5/devfs.rules.5
This commit was generated by cvs2svn to compensate for changes in r154184,
[FreeBSD/FreeBSD.git] / share / man / man5 / devfs.rules.5
1 .\" Copyright (c) 2004 Roland Smith <rsmith@xs4all.nl>
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
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.
12 .\"
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
23 .\" SUCH DAMAGE.
24 .\"
25 .\" $FreeBSD$
26 .\"
27 .Dd May 17, 2005
28 .Dt DEVFS.RULES 5
29 .Os
30 .Sh NAME
31 .Nm devfs.rules
32 .Nd devfs configuration information
33 .Sh DESCRIPTION
34 The
35 .Nm
36 file provides an easy way to create and apply
37 .Xr devfs 8
38 rules, even for devices that are not available at boot.
39 .Pp
40 For devices available at boot, see
41 .Xr devfs.conf 5 .
42 .Pp
43 The format of this file is simple.
44 Empty lines and lines beginning with a hash sign
45 .Pq Ql #
46 are ignored.
47 A line between brackets denotes the start of a ruleset.
48 In the brackets should be the name of the ruleset and its number,
49 separated by an equal sign.
50 .Pp
51 Other lines are rule specifications as documented in
52 .Xr devfs 8 ,
53 in the section
54 .Sx "Rule Specification" .
55 These lines are prepended with
56 .Dq Li rule
57 and are passed to
58 .Xr devfs 8
59 by the startup scripts of the system.
60 It is important to put path elements that contain
61 .Xr glob 3
62 special characters between quotes.
63 .Sh FILES
64 .Bl -tag -compact
65 .It Pa /etc/devfs.rules
66 .It Pa /etc/defaults/devfs.rules
67 .El
68 .Sh EXAMPLES
69 To make all the partitions of
70 .Xr da 4
71 devices readable and writable by their owner and the
72 .Dq Li usb
73 group, the following rule may be used:
74 .Pp
75 .Dl "add path 'da*s*' mode 0660 group usb"
76 .Pp
77 To make all the
78 .Xr uscanner 4
79 devices accessible to their owner and the
80 .Dq Li usb
81 group, a similar rule may be used:
82 .Pp
83 .Dl "add path 'uscanner*' mode 0660 group usb"
84 .Sh SEE ALSO
85 .Xr glob 3 ,
86 .Xr devfs 5 ,
87 .Xr devfs.conf 5 ,
88 .Xr devfs 8
89 .Sh AUTHORS
90 This manual page was written by
91 .An "Roland Smith" Aq rsmith@xs4all.nl .