1 # There are a number of modifiers that are allowed to be used in some of the
2 # fields. See the udev man page for a full description of them.
4 # See the udev.rules.examples file for more examples of how to create rules
7 # if this is a ide cdrom, name it the default name, and create a symlink to cdrom
8 # BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", NAME="%k", SYMLINK="cdrom"
10 # create a symlink named after the device map name
11 # note devmap_name comes with extras/multipath
12 KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c"
15 KERNEL="hiddev*", NAME="usb/%k"
16 KERNEL="auer*", NAME="usb/%k"
17 KERNEL="legousbtower*", NAME="usb/%k"
18 KERNEL="dabusb*", NAME="usb/%k"
19 BUS="usb", KERNEL="lp[0-9]*", NAME="usb/%k"
22 KERNEL="capi", NAME="capi20", SYMLINK="isdn/capi20"
23 KERNEL="capi*", NAME="capi/%n"
26 KERNEL="tun", NAME="net/%k"
29 KERNEL="pl2303", NAME="%k", OWNER="500", GROUP="500", MODE="0666"
30 KERNEL="visor", NAME="%k", OWNER="root", GROUP="uucp", MODE="0666"
31 KERNEL="camera*" NAME="%k", OWNER="500", GROUP="500", MODE="0666"
34 KERNEL="console" NAME="%k", OWNER="root", GROUP="tty", MODE="0600"
35 KERNEL="tty", NAME="%k", OWNER="root", GROUP="tty", MODE="0666"
36 KERNEL="tty[0-9]*", NAME="%k", OWNER="root", GROUP="tty", MODE="0660"
37 KERNEL="vcs*", NAME="%k", OWNER="root", GROUP="tty", MODE="0620"
38 KERNEL="tty[CIS]*", NAME="%k", OWNER="root", GROUP="uucp", MODE="0660"
39 KERNEL="ttyUB[0-9]", NAME="%k", OWNER="root", GROUP="uucp", MODE="0660"
40 KERNEL="ttyUSB0", NAME="%k", OWNER="root", GROUP="uucp", MODE="0660"
41 KERNEL="ttyUSB1", NAME="%k", OWNER="root" GROUP="uucp", MODE="0666"
44 KERNEL="ptmx" NAME="%k", OWNER="root", GROUP="tty", MODE="0666"
45 KERNEL="pty[p-za-e][0-9a-f]*" NAME="%k", OWNER="root", GROUP="tty", MODE="0666"
46 KERNEL="tty[p-za-e][0-9a-f]*" NAME="%k", OWNER="root", GROUP="tty", MODE="0666"
47 KERNEL="cu[abiu]*" NAME="%k", OWNER="root", GROUP="uucp", MODE="0660"
50 KERNEL="audio*" NAME="%k", OWNER="root", GROUP="sys", MODE="0666"
51 KERNEL="beep" NAME="%k", OWNER="root", GROUP="root", MODE="0644"
52 KERNEL="dsp*" NAME="%k", OWNER="root", GROUP="sys", MODE="0666"
53 KERNEL="midi*" NAME="%k", OWNER="root", GROUP="sys", MODE="0666"
54 KERNEL="mixer*" NAME="%k", OWNER="root", GROUP="sys", MODE="0666"
55 KERNEL="music" NAME="%k", OWNER="root", GROUP="sys", MODE="0666"
56 KERNEL="sequencer*" NAME="%k", OWNER="root", GROUP="sys", MODE="0666"
57 KERNEL="controlC[0-9]*", NAME="snd/%k", OWNER="root", GROUP="sys", MODE="0666"
58 KERNEL="hw[CD0-9]*", NAME="snd/%k", OWNER="root", GROUP="sys", MODE="0666"
59 KERNEL="pcm[CD0-9cp]*", NAME="snd/%k", OWNER="root", GROUP="sys", MODE="0666"
60 KERNEL="midiC[D0-9]*", NAME="snd/%k", OWNER="root", GROUP="sys", MODE="0666"
61 KERNEL="timer", NAME="snd/%k", OWNER="root", GROUP="sys", MODE="0666"
62 KERNEL="seq", NAME="snd/%k", OWNER="root", GROUP="sys", MODE="0666"
63 KERNEL="sndstat" NAME="%k", OWNER="root", GROUP="sys", MODE="0666"
64 KERNEL="speaker" NAME="%k", OWNER="root", GROUP="root", MODE="0644"
65 KERNEL="sound/*" NAME="%k", OWNER="root", GROUP="root", MODE="0666"
66 KERNEL="admmidi*" NAME="%k", OWNER="root", GROUP="root", MODE="0666"
67 KERNEL="adsp*" NAME="%k", OWNER="root", GROUP="root", MODE="0666"
68 KERNEL="aload*" NAME="%k", OWNER="root", GROUP="sys", MODE="0666"
69 KERNEL="amidi*" NAME="%k", OWNER="root", GROUP="root", MODE="0666"
70 KERNEL="amixer*" NAME="%k", OWNER="root", GROUP="root", MODE="0666"
72 # input devices (mouse, joystick, etc)
73 KERNEL="mice", NAME="input/%k", OWNER="root", GROUP="root", MODE="0644"
74 KERNEL="mouse*", NAME="input/%k", OWNER="root", GROUP="root", MODE="0644"
75 KERNEL="event*", NAME="input/%k", OWNER="root", GROUP="root", MODE="0644"
76 KERNEL="js*", NAME="input/%k", OWNER="root", GROUP="root", MODE="0644"
77 KERNEL="ts*", NAME="input/%k", OWNER="root", GROUP="root", MODE="0644"
78 KERNEL="input/js*" NAME="%k", OWNER="root", GROUP="games",0 MODE="0666"
79 KERNEL="djs[0-3]" NAME="%k", OWNER="root", GROUP="games", MODE="0660"
80 KERNEL="psaux" NAME="%k", OWNER="root", GROUP="sys", MODE="0660"
81 KERNEL="crash" NAME="%k", OWNER="root", GROUP="root", MODE="0660"
82 KERNEL="logibm" NAME="%k", OWNER="root", GROUP="sys", MODE="0660"
83 KERNEL="jbm" NAME="%k", OWNER="root", GROUP="sys", MODE="0660"
84 KERNEL="hwtrap" NAME="%k", OWNER="root", GROUP="root", MODE="0644"
85 KERNEL="inportbm" NAME="%k", OWNER="root", GROUP="sys", MODE="0660"
86 KERNEL="sexec" NAME="%k", OWNER="root", GROUP="root", MODE="0660"
87 KERNEL="jsflash" NAME="%k", OWNER="root", GROUP="root", MODE="0660"
89 # power manager device
90 KERNEL="apm_bios" NAME="%k", OWNER="root", GROUP="root", MODE="0644"
93 KERNEL="lp[0-9]" NAME="%k", OWNER="root", GROUP="lp", MODE="0660"
94 KERNEL="parport*" NAME="%k", OWNER="root", GROUP="root", MODE="0660"
97 KERNEL="card*" NAME="dri/card%n", OWNER="root", GROUP="root", MODE="0666"
98 KERNEL="fb[0-9]" NAME="%k", OWNER="root", GROUP="tty", MODE="0660"
99 KERNEL="agpgart" NAME="%k", OWNER="root", GROUP="root", MODE="0660"
100 KERNEL="nvidia*" NAME="%k", OWNER="root", GROUP="root", MODE="0666"
101 KERNEL="video*" NAME="%k", OWNER="root", GROUP="sys", MODE="0660"
104 KERNEL="ed[ab]*" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
105 KERNEL="gscd0" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
106 KERNEL="initrd" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
107 KERNEL="lmscd" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
108 KERNEL="mcd*" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
109 KERNEL="md*" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
110 KERNEL="mtd*" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
111 KERNEL="userdma" NAME="%k", OWNER="root", GROUP="root", MODE="0660"
114 KERNEL="fd[0-3]*" NAME="%k", OWNER="root", GROUP="floppy", MODE="0660"
116 # IDE devices (hd, cdrom)
117 KERNEL="hd*" NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
118 KERNEL="ht0" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
121 KERNEL="ataraid[0-9]*" NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
122 KERNEL="ataraid/*" NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
125 KERNEL="scsi/*/cd" NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
126 KERNEL="scsi/*" NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
127 KERNEL="sd[a-h]*" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
128 KERNEL="s[rt][0-9]*" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
129 KERNEL="scd*" NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
131 # generic scsi devices
132 KERNEL="sg*" NAME="%k", OWNER="root", GROUP="root", MODE="0600"
135 KERNEL="sbpcd*" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
138 KERNEL="loop[0-9]*" NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
140 # network block devices
141 KERNEL="nb[0-7]" NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
142 KERNEL="nht0" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
143 KERNEL="npt[0-3]" NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
144 KERNEL="n[qrs]*" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
146 # memory access devices
147 KERNEL="kmem" NAME="%k", OWNER="root", GROUP="kmem", MODE="0640"
148 KERNEL="mem" NAME="%k", OWNER="root", GROUP="kmem", MODE="0640"
149 KERNEL="null" NAME="%k", OWNER="root", GROUP="sys", MODE="0666"
150 KERNEL="nvram" NAME="%k", OWNER="root", GROUP="root", MODE="0640"
151 KERNEL="port" NAME="%k", OWNER="root", GROUP="kmem", MODE="0640"
152 KERNEL="ram[0-9]*" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
153 KERNEL="random" NAME="%k", OWNER="root", GROUP="root", MODE="0644"
154 KERNEL="rtc" NAME="%k", OWNER="root", GROUP="root", MODE="0444"
155 KERNEL="urandom" NAME="%k", OWNER="root", GROUP="root", MODE="0644"
156 KERNEL="full" NAME="%k", OWNER="root", GROUP="sys", MODE="0666"
157 KERNEL="zero" NAME="%k", OWNER="root", GROUP="root", MODE="0666"
158 KERNEL="raw[0-9]*" NAME="raw/%k", OWNER="root", GROUP="disk", MODE="0660"
159 KERNEL="modreq" NAME="%k", OWNER="root", GROUP="root", MODE="0644"
160 KERNEL="msr" NAME="%k", OWNER="root", GROUP="root", MODE="0660"
161 KERNEL="profile*" NAME="%k", OWNER="root", GROUP="root", MODE="0640"
164 KERNEL="isdn*" NAME="%k", OWNER="root", GROUP="tty", MODE="0660"
167 KERNEL="ippp*" NAME="%k", OWNER="root", GROUP="root", MODE="0644"
168 KERNEL="ipstate*" NAME="%k", OWNER="root", GROUP="root", MODE="0660"
169 KERNEL="spx" NAME="%k", OWNER="root", GROUP="root", MODE="0644"
170 KERNEL="fwmonitor*" NAME="%k", OWNER="root", GROUP="root", MODE="0660"