UDEV and USB

Jan Kandziora writes:

I recently tried again to set up non-root access to the DS2490 adapter.

I failed with the solution showed up at https://owfs.org/index.php?page=udev

It seems the config syntax of udev has changed again. However, I came up with a much simpler solution:

I set up a file /etc/udev/rules.d/46-ds2490.rules with the contents (all on a single line):

SUBSYSTEMS=="usb", ATTRS{idVendor}=="04fa", ATTRS{idProduct}=="2490", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="ow", MODE="0664"


Group ow has permission to use the DS9094 bus master.
No helper script neccessary, this line is enough to make it work. Tested with udev-103-12 of openSuSE 10.2.


--------------------------------------------------------------------------------------------------------------------


Sven Geggus suggests:

I'm using this one on Debian:

File /etc/udev/rules.d/owfs.rules

SUBSYSTEM!="usb_device", ACTION!="add", GOTO="owfs_rules_end"

# DS2490 1-Wire adapter
SYSFS{idVendor}=="04fa", SYSFS{idProduct}=="2490", MODE="660", GROUP="owfs"

LABEL="owfs_rules_end"

Group owfs has permission to use the DS9094 bus master.
This works fine using udev 0.105 on debian etch. This might however be Debian specific.


Previous page: udev
Next page: Distributions