Au minimum, le répertoire /etc/udev contient:
Les informations contenues dans udev.permissions
devraient ressembler à ceci:
# /etc/udev/udev.permissions: permission/ownership
map for udev
# $Header: /home/cvsroot/gentoo-x86/sys-fs/udev/files/udev.permissions,v 1.3 2004/01/01 03:41:24 azarah Exp $
# console devices console:root:tty:0600 tty:root:tty:0666 tty[0-9]*:root:tty:0660 vc/[0-9]*:root:tty:0660
# pty devices # Set this
to 0660 if you only want users belonging to tty group # to be able
to allocate PTYs ptmx:root:tty:0666 pty[p-za-e][0-9a-f]*:root:tty:0660
tty[p-za-e][0-9a-f]*:root:tty:0660
# scsi devices sg*:root:disk:0660 pg*:root:disk:0660 cdwriter:root:disk:0660
# usb devices usb/dabusb*:root:usb:0660 usb/mdc800*:root:usb:0660 usb/rio500:root:usb:0660 usb/legousbtower*:root:usb:0660
sgi_fetchop:root:root:666
|
Voici un échantillon du ficher udev.rules
(voir la sous-section 19.8.6):
# /etc/udev/udev.rules: device
naming rules for udev
# # Gentoo specific rules, based a bit on devfs rules, but much simpler. # # There are a number of modifiers that are allowed to be used in some of the # fields. See the udev man page for a full description of them. ###################################### # # For devfs similar /dev layout (neater) #
###########################################################
|