I'm trying to figure out how others have addressed the issue that the transient device files /dev/bus/usb/*/* are only writable by root. I've managed to kludge it, but it's unsightly.
In one topic (http://lejos.sourceforge.net/forum/viewtopic.php?t=75#317),
PostPosted: Tue May 01, 2007 12:35 pm
The most likely reason to get this problem on Linux is not having permissions to the usb device from a non-root user. See Readme.html for ways of setting the permissions.
And the README.html contains:
A better solution is to use udev rules or pamcomsole. How to do this varies with different Linux systems. A pamconsole solution that works on Fedora Core 5, is to create a file /etc/security/console.perms.d/60-libusb.perms with the two lines:
<console> 0600 <usbdevices> 0644 root
My fix was an "add" UDEV rule that uses the device name /dev/usbdevXX.YY_* and then sets the permissions and ownership on /dev/bus/usb/0XX/0YY. It works, but isn't especially elegant.
Does anyone else have a better solution?