chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bded570
)
make raw USB printer devices world-readable again
author
Martin Pitt
<martin.pitt@ubuntu.com>
Wed, 30 Sep 2009 09:10:24 +0000
(11:10 +0200)
committer
Martin Pitt
<martin.pitt@ubuntu.com>
Wed, 30 Sep 2009 09:10:24 +0000
(11:10 +0200)
Commit
f61e72d8
made raw USB printers accessible for the lp group. However,
chmoding them to 0660 is a bit over-zealous, since by default raw USB devices
are world-readable. Not being so breaks lsusb unnecessarily. Now set
permissions to 0664.
rules/rules.d/50-udev-default.rules
patch
|
blob
|
history
diff --git
a/rules/rules.d/50-udev-default.rules
b/rules/rules.d/50-udev-default.rules
index 79c8e231f42ba8ccdb18e9efefd8c987feac7ce7..03f7836e2fa63d7936c85ec227bfc45fb93fa8d9 100644
(file)
--- a/
rules/rules.d/50-udev-default.rules
+++ b/
rules/rules.d/50-udev-default.rules
@@
-67,7
+67,7
@@
KERNEL=="irlpt[0-9]*", GROUP="lp"
# hplip and cups 1.4+ use raw USB devices, so permissions should be similar to
# the ones from the old usblp kernel module
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="", IMPORT{program}="usb_id --export %p"
-SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}==":0701*:", GROUP="lp", MODE="66
0
"
+SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}==":0701*:", GROUP="lp", MODE="66
4
"
# block
SUBSYSTEM=="block", GROUP="disk"