systemd/udev-permissions.rules

78 lines
2.4 KiB
Plaintext
Raw Permalink Normal View History

2023-12-30 11:35:14 +01:00
# default permissions for block devices
SUBSYSTEM=="block", GROUP="disk", MODE="0660"
SUBSYSTEM=="block", ATTR{removable}=="1", GROUP="floppy"
SUBSYSTEM=="block", KERNEL=="sr[0-9]*", ATTR{removable}=="1", GROUP="cdrecording", MODE="0664"
# IDE devices
SUBSYSTEM=="block", KERNEL=="hd[a-z]", ATTR{removable}=="1", \
PROGRAM="/bin/cat /proc/ide/%k/media", RESULT=="cdrom*", GROUP="cdrecording", MODE="0664"
SUBSYSTEM=="ide", KERNEL=="ht[0-9]*", GROUP="tape"
SUBSYSTEM=="ide", KERNEL=="nht[0-9]*", GROUP="tape"
# SCSI devices
SUBSYSTEM=="scsi", ATTR{type}=="1", GROUP="tape"
SUBSYSTEM=="scsi", ATTR{type}=="5", GROUP="cdrecording", MODE="0660"
SUBSYSTEM=="scsi", ATTR{type}=="6", GROUP="scanner"
# USB devices
SUBSYSTEM=="usb", KERNEL=="legousbtower*", MODE="0666"
# serial devices
SUBSYSTEM=="tty", GROUP="dialout"
SUBSYSTEM=="capi", GROUP="dialout"
# vc devices (all members of the tty subsystem)
KERNEL=="ptmx", MODE="0666", GROUP="root"
KERNEL=="console", MODE="0600", GROUP="root"
KERNEL=="tty", MODE="0666", GROUP="root"
KERNEL=="tty[0-9]*", GROUP="root"
# video devices
SUBSYSTEM=="video4linux", GROUP="video"
SUBSYSTEM=="dvb", GROUP="video"
SUBSYSTEM=="graphics", GROUP="video"
SUBSYSTEM=="nvidia", GROUP="video"
SUBSYSTEM=="drm", GROUP="video"
# misc devices
KERNEL=="random", MODE="0666"
KERNEL=="urandom", MODE="0444"
KERNEL=="mem", MODE="0640", GROUP="kmem"
KERNEL=="kmem", MODE="0640", GROUP="kmem"
KERNEL=="port", MODE="0640", GROUP="kmem"
KERNEL=="full", MODE="0666"
KERNEL=="null", MODE="0666"
KERNEL=="zero", MODE="0666"
KERNEL=="inotify", MODE="0666"
KERNEL=="sgi_fetchop", MODE="0666"
KERNEL=="sonypi", MODE="0666"
KERNEL=="agpgart", GROUP="video"
KERNEL=="nvram", GROUP="nvram"
KERNEL=="rtc", MODE="0660", GROUP="audio"
KERNEL=="hpet", MODE="0660", GROUP="audio"
KERNEL=="cdemu[0-9]*", GROUP="cdrecording", MODE="0660"
KERNEL=="pktcdvd[0-9]*",GROUP="cdrecording", MODE="0660"
KERNEL=="pktcdvd", MODE="0644"
# printers and parallel devices
SUBSYSTEM=="printer", GROUP="lp"
SUBSYSTEM=="ppdev", GROUP="lp"
KERNEL=="pt[0-9]*", GROUP="tape"
KERNEL=="pht[0-9]*", GROUP="tape"
# sound devices
SUBSYSTEM=="sound", GROUP="audio"
# input devices
KERNEL=="event[0-9]*", MODE="0664", GROUP="video"
KERNEL=="js[0-9]*", MODE="0664"
# AOE character devices
SUBSYSTEM=="aoe", MODE="0220", GROUP="disk"
SUBSYSTEM=="aoe", KERNEL=="err",MODE="0440"
# kvm and kqemu devices
KERNEL=="kqemu", MODE="0660", GROUP="kvm"
KERNEL=="kvm" MODE="0660", GROUP="kvm"