Usb rights on FC5 and udev

Hello, maybe this is not new, but I have found how to avoid the sudo on
Fedora Core 5 and run usrp python code as a normal user - the file that
needs to be modified is /etc/udev/rules.d/50-udev.rules, line 308 in my
fedora core 5 dist:

#####################################

Persistent block device stuff - end

#####################################

ACTION==“add”, SUBSYSTEM==“usb_device”,
PROGRAM="/bin/sh -c ‘K=%k; K=$${K#usbdev}; printf
bus/usb/%%03i/%%03i $${K%%%%.} $${K#.}’",
NAME="%c", MODE=“0644”

ACTION==“add”, SUBSYSTEM=="?", ENV{MODALIAS}=="?",
RUN+="/sbin/modprobe
$env{MODALIAS}"

ACTION==“add”, SUBSYSTEM==“pcmcia”, ENV{MODALIAS}=="*",
RUN+="/bin/sh -c ‘echo 1 > /sys/$DEVPATH/allow_func_id_match’"

Simply, change the MODE=“0644” to 0666 or 0664 (if you want to use
groups)
and, upon creation the udev subsystem will use these rigths to create
/dev/bus/usb/xxx/xx.

cheers
Matteo

Matteo C. wrote:

Simply, change the MODE=“0644” to 0666 or 0664 (if you want to use
groups) and, upon creation the udev subsystem will use these rigths to
create /dev/bus/usb/xxx/xx.

On my (Debian-based) Ubuntu system, I added a single line file to the
/etc/udev/rules.d directory.

90-usb.rules:

SYSFS{idVendor}==“fffe”, SYSFS{idProduct}==“0002”, MODE=“0666”

This then only gives the 666 mode to the specific device that gets
created when the USRP is plugged in.

I’m not familiar with FC5 but I’d expect something very similar would
work.

-Johnathan, AE6HO