On Mon, Jan 10, 2011 at 7:48 AM, daemeon271 wrote:
> -----------------------------------------
> libusb couldn't open USB device /dev/bus/usb/003/003: Permission denied.
> libusb requires write access to USB device nodes.
> Unable to set the device configuration
> -----------------------------------------
> A search of some sites suggest releasing the kernel lock on the device,
> using udev to remount the device within the user's privileges or running the
> script with root privileges. However, I was wondering what the preferred
> method for gaining read/write privileges to the device and how to accomplish
> this.
Hi, I would make a .rules file in /etc/udev/rules.d with something like this:
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="413c",
ATTRS{idProduct}=="2005", MODE="660", GROUP="plugdev"
See "man udev" and the rules in /lib/udev/rules.d for more examples,
you can also match on other things than USB ID.
Cheers,
Tormod
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
pyusb-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyusb-users