Hi,
I would like to configure my SL5.3 system so that when a USB device (a
LabJack U3-LV) is plugged in, the group is automatically set to "adm" so
that members of that group can read/write the device. Currently, usb
devices are owned as root and to read/write I must run commands as root o
r
via sudo.
The LabJack company suggested the following, which they claim should work
on
non-debian systems, but it does not work for me. Are there any
peculiarities with udev on SL5.3?
Add 10-labjack.rules to /etc/udev/rules.d
> less /etc/udev/rules.d/10-labjack.rules
SUBSYSTEM!="usb_device", ACTION!="add", GOTO="labjack_rules_end"
# U3
SYSFS{idVendor}=="0cd5", SYSFS{idProduct}=="0003", GROUP="adm"
# U6
SYSFS{idVendor}=="0cd5", SYSFS{idProduct}=="0006", GROUP="adm"
# UE9
SYSFS{idVendor}=="0cd5", SYSFS{idProduct}=="0009", GROUP="adm"
LABEL="labjack_rules_end"
Run /etc/init.d/udev-post or reboot (I rebooted since /etc/init.d/udev-po
st
does not exist on my machine). Then USB devices should show up as part o
f
the "adm" group.
On my system, the usb devices all show up as root:
$ ls -la /dev/bus/usb/*/*
crw-r--r-- 1 root root 189, 0 Dec 4 14:46 /dev/bus/usb/001/001
crw-r--r-- 1 root root 189, 128 Dec 4 14:46 /dev/bus/usb/002/001
crw-r--r-- 1 root root 189, 256 Dec 4 14:46 /dev/bus/usb/003/001
crw-r--r-- 1 root root 189, 258 Dec 4 14:46 /dev/bus/usb/003/003
crw-r--r-- 1 root root 189, 384 Dec 4 14:46 /dev/bus/usb/004/001
crw-r--r-- 1 root root 189, 512 Dec 4 14:46 /dev/bus/usb/005/001
Any suggestions?
Thank you,
James
|