On Mon, Jan 10, 2011 at 3:24 PM, Tormod Volden <lists.tor...@gmail.com> wrote:

> 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.



The USB permission questions under Linux also constantly pop
up in the libusb mailing list. It is kind of a moving target. Simple
rules like the above should work as always (make sure your username
belongs to the plugdev group).

Sme more advanced rules can help as well -- eg: using udev-acl
and ConsoleKit. The rule tests the availability of udev-acl
and ConsoleKit and uses them if avaibale. If not, it falls
back to group (plugdev) based access control.
http://libusb.6.n5.nabble.com/Automatic-detach-of-a-HID-device-using-udev-Re-How-to-dump-HID-report-descriptor-under-Linux-tp3330260p3335791.html

Things changes quite often though, last time it was Hotplug,
then comes udev, then there was udev+PAM, HAL+PolicyKit, etc.
Now udev-acl+ConsoleKit seem to be the "State of the Art".

-- 
Xiaofan

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to