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