Thanks, I don't care about the SPEC quality, just want a working RPM!
I'll try them and let you know.
Cheers,
Michel
--On lundi 7 décembre 2009 10:56 -0800 Konstantin Olchanski
<[email protected]> wrote:
On Fri, Dec 04, 2009 at 02:22:03PM -0600, James Battat wrote:
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.
Here is the magic incantation I use to set permissions on USB-serial
devices, it goes into /etc/udev/rules.d/49-usb_chmod_udev.rules
Observe the "RUN+=" entry executes the "chmod" command to change device
permissions, you may need to change it to "chown" to change ownership.
ladd00:~$ more etc_udev_rules.d_49-usb_chmod_udev.rules
ACTION=="add", SUBSYSTEM=="usb_device", \
PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf
bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", RUN+="/bin/chmod a+wr
/proc/%c" \ NAME="%c", MODE="0666"
KERNEL=="ttyUSB*", NAME="%k", GROUP="uucp", MODE="0666",
OPTIONS="last_rule"
--
Konstantin Olchanski
Data Acquisition Systems: The Bytes Must Flow!
Email: olchansk-at-triumf-dot-ca
Snail mail: 4004 Wesbrook Mall, TRIUMF, Vancouver, B.C., V6T 2A3, Canada
*************************************************************
* Michel Jouvin Email : [email protected] *
* LAL / CNRS Tel : +33 1 64468932 *
* B.P. 34 Fax : +33 1 69079404 *
* 91898 Orsay Cedex *
* France *
*************************************************************