1 .\" Copyright (c) 2005 Joerg Anslik <joerg@anslik.de>
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
25 .\" $DragonFly: src/share/man/man5/devices.conf.5,v 1.4 2008/09/06 10:23:39 thomas Exp $
27 .\" Note: The date here should be updated whenever a non-trivial
28 .\" change is made to the manual page.
34 .Nd override ownership and permissions for device nodes
46 file (device node) with reasonable ownership and permissions. To override these default
47 settings, you can put corresponding entries in your
51 will use these when it creates the special file.
53 This feature comes in handy if you're using (e.g.) tape backup software like
55 in conjunction with a tape autochanger device. In this case, the
57 storage daemon needs read/write access to
59 which is not granted by default
66 So, instead of manually changing the permissions of /dev/pass? after each
68 you can simply put a local override entry into
70 so the device node will have the new permissions the next time
76 file is plain ASCII and can be modified with the
77 text editor of your choice.
80 in the first column are comments and are ignored, which also holds true
83 A configuration line consists of up to four fields separated
84 by whitespace. The first three fields are mandatory, and contain the name of the device
85 node to be overridden, the ownership in
87 format and the new file permissions. The fourth field is optional and
88 reserved for comments (or whatever).
90 Due to the huge number of device nodes that
93 the first field (the device node name) may contain the
95 wildcard character, if the new ownership/permissions should apply to an entire
99 .Bl -tag -width ".Pa /etc/devices.conf"
100 .It Pa /etc/devices.conf
101 The local device permissions override file
104 The following is an example of how to set up local overrides for some
107 # Grant read and write permission on /dev/pass0 to the bacula-sd,
108 # which belongs to the operator group.
109 pass0 root:operator 660
111 # Change ownership and permissions for the entire ad0 device family
114 # Grant read and write access to sa* control nodes to everyone
115 sa*.ctl root:wheel 666
117 # Change ownership and permissions for device node "4" in /dev/fd
118 fd/4 ihate:floppies 000
120 # Grant mommy write access to my fridge
121 fridge mommy:supplies 640 # Will be ignored by MAKEDEV(8)...