Deleted Added
full compact
devfs.rules.5 (146329) devfs.rules.5 (147432)
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.

--- 8 unchanged lines hidden (view full) ---

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.\"
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.

--- 8 unchanged lines hidden (view full) ---

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: head/share/man/man5/devfs.rules.5 146329 2005-05-17 17:52:27Z keramida $
25.\" $FreeBSD: head/share/man/man5/devfs.rules.5 147432 2005-06-16 18:46:17Z ru $
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

--- 12 unchanged lines hidden (view full) ---

46are ignored.
47A line between brackets denotes the start of a ruleset.
48In the brackets should be the name of the ruleset and its number,
49separated by an equal sign.
50.Pp
51Other lines are rule specifications as documented in
52.Xr devfs 8 ,
53in the section
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

--- 12 unchanged lines hidden (view full) ---

46are ignored.
47A line between brackets denotes the start of a ruleset.
48In the brackets should be the name of the ruleset and its number,
49separated by an equal sign.
50.Pp
51Other lines are rule specifications as documented in
52.Xr devfs 8 ,
53in the section
54.Dq "Rule Specification" .
54.Sx "Rule Specification" .
55These lines are prepended with
56.Dq Li rule
57and are passed to
58.Xr devfs 8
59by the startup scripts of the system.
60It is important to put path elements that contain
61.Xr glob 3
62special characters between quotes.
55These lines are prepended with
56.Dq Li rule
57and are passed to
58.Xr devfs 8
59by the startup scripts of the system.
60It is important to put path elements that contain
61.Xr glob 3
62special 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
63.Sh EXAMPLES
64To make all the partitions of
65.Xr da 4
66devices readable and writable by their owner and the
67.Dq Li usb
68group, the following rule may be used:
68.Sh EXAMPLES
69To make all the partitions of
70.Xr da 4
71devices readable and writable by their owner and the
72.Dq Li usb
73group, the following rule may be used:
69.Bd -literal -offset indent
70add path 'da*s*' mode 0660 group usb
71.Ed
72.Pp
74.Pp
75.Dl "add path 'da*s*' mode 0660 group usb"
76.Pp
73To make all the
74.Xr uscanner 4
75devices accessible to their owner and the
76.Dq Li usb
77group, a similar rule may be used:
77To make all the
78.Xr uscanner 4
79devices accessible to their owner and the
80.Dq Li usb
81group, a similar rule may be used:
78.Bd -literal -offset indent
79add path 'uscanner*' mode 0660 group usb
80.Ed
81.Sh FILES
82.Bl -tag -compact
83.It Pa /etc/devfs.rules
84.It Pa /etc/defaults/devfs.rules
85.El
82.Pp
83.Dl "add path 'uscanner*' mode 0660 group usb"
86.Sh SEE ALSO
87.Xr glob 3 ,
88.Xr devfs 5 ,
89.Xr devfs.conf 5 ,
90.Xr devfs 8
91.Sh AUTHORS
84.Sh SEE ALSO
85.Xr glob 3 ,
86.Xr devfs 5 ,
87.Xr devfs.conf 5 ,
88.Xr devfs 8
89.Sh AUTHORS
92.An "Roland Smith" Aq rsmith@xs4all.nl
90This manual page was written by
91.An "Roland Smith" Aq rsmith@xs4all.nl .