summaryrefslogtreecommitdiffstats
path: root/source/a/eudev/config/rules.d/65-permissions.rules
blob: 6f82b0f36d7200aa3731e84f2a849a3772c55365 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Slackware permission rules
#
# These rules are here instead of 40-slackware.rules because
# many of them need to run after the block section in
# 50-udev.default.rules
#
# Remember, in any upgrade, this file will be overwritten.
# Put your custom rules somewhere else (90-local.rules is 
# a good idea).
#

# all disks with group disk
KERNEL!="fd*", SUBSYSTEM=="block",             GROUP="disk"

# put all removable devices in group "plugdev"
KERNEL=="sd*[!0-9]", ATTR{removable}=="1", GROUP="plugdev"
KERNEL=="sd*[0-9]", ATTRS{removable}=="1", GROUP="plugdev"

# Many hot-pluggable devices (ZIP, Jazz, LS-120, etc...)
# need to be in plugdev, too.
KERNEL=="diskonkey*",	GROUP="plugdev"
KERNEL=="jaz*",		GROUP="plugdev"
KERNEL=="pocketzip*",	GROUP="plugdev"
KERNEL=="zip*",		GROUP="plugdev"
KERNEL=="ls120",	GROUP="plugdev"
KERNEL=="microdrive*",	GROUP="plugdev"

# CD group and permissions 
ENV{ID_CDROM}=="?*", 		GROUP="cdrom", MODE="0660"
KERNEL=="pktcdvd",		GROUP="cdrom", MODE="0660"
KERNEL=="pktcdvd[0-9]*",	GROUP="cdrom", MODE="0660"
# permissions for SCSI sg devices
SUBSYSTEMS=="scsi", KERNEL=="s[gt][0-9]*", ATTRS{type}=="5", \
				GROUP="cdrom", MODE="0660"

# Make DRI video devices usable by anyone in group "video":
KERNEL=="card[0-9]*",GROUP:="video"

# Make the real time clock readable by all, and writable by root:
KERNEL=="rtc|rtc0",             MODE="0644"