All rule files are read in lexical order. The default value is
.IR /etc/udev/rules.d/ .
.TP
-.B udev_permissions
-The name of the udev permission file or directory to look for files with the
-suffix
-.IR .permissions .
-All permission files are read in lexical order. The default value is
-.IR /etc/udev/permissions.d/ .
-.TP
.B udev_log
The switch to enable/disable logging of udev information
The default value is
.IR yes .
-.TP
-.B default_mode
-The default mode for all nodes not explicitly matching in the permissions
-file. The default value is
-.IR 0666 .
-.TP
-.B default_owner
-The default owner for all nodes not explicitly matching in the permissions
-file. The default value is
-.IR root .
-.TP
-.B default_group
-The default group for all nodes not explicitly matching in the permissions
-file. The default value is
-.IR root .
-.br
.P
.RI "A sample " udev.conf " file might look like this:
.sp
for files with the suffix .rules
udev_rules="/etc/udev/rules.d/"
-# udev_permissions - The name of the udev permission file or directory
- to look for files with the suffix .permissions
-udev_permissions="/etc/udev/udev.permissions"
-
# udev_log - set to "yes" if you want logging, else "no"
udev_log="yes"
-
-# default_mode - set the default mode for all nodes not
-# explicitly matching in the permissions file
-default_mode="0666"
-
-# default_owner - set the default owner for all nodes not
-# explicitly matching in the permissions file
-default_owner="root"
-
-# default_group - set the default group for all nodes not
-# explicitly matching in the permissions file
-default_group="root"
.fi
.P
The rules for device naming are read from the files located in the
distribution provided rules file.
.TP
.B OWNER, GROUP, MODE
-The permissions for this device. Every specified value overwrites the value
-given in the permissions file.
+The permissions for the device node. Every specified value overwrites the
+compiled-in default value.
.P
-.RB "The " NAME " ," SYMLINK " and " PROGRAM
+.RB "The " NAME ", " SYMLINK ", " PROGRAM ", " OWNER " and " GROUP
fields support simple printf-like string substitutions:
.TP
.B %n
.B %k
The "kernel name" for the device.
.TP
+.B %p
+The devpath for the device.
+.TP
.B %M
The kernel major number for the device.
.TP
all remaining parts of the result string are substituted:
.BI %c{ N+ }
.TP
+.B %N
+The name of a created temporary device node to provide access to the
+device from a external program.
+.TP
.BI %s{ filename }
The content of a sysfs attribute.
.TP
NAME="%k", SYMLINK="cdrom%e"
.fi
.P
-The permissions and ownership of the created device file are read from
-the files located in the
-.I /etc/udev/permissions.d/
-directory, or at the location specified by the
-.I udev_permission
-value in the
-.I /etc/udev/udev.conf
-file.
-.br
-Every line lists a device name followed by owner, group and permission
-mode. All values are separated by colons. The name field may contain a
-pattern to apply the values to a whole class of devices.
-.sp
-.RI "A sample " udev.permissions " file might look like this:"
-.sp
-.nf
-#name:user:group:mode
-input/*:root:root:644
-ttyUSB1:0:8:0660
-video*:root:video:0660
-dsp1:::0666
-.fi
-.P
A number of different fields in the above configuration files support a simple
form of shell style pattern matching. It supports the following pattern characters:
.TP