On Tue, Oct 30, 2012 at 7:25 PM, David Grant wrote:
> Could someone with write access to the libusbx wiki add this to the
> "Can I run Linux libusbx applications without root privilege?"
> section?
>
> Example udev rules file, call it "10-libusb.rules"
> SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="libusbusers", MODE="0664"

Or, for per-device configuration, example USB ID 0483:df11:
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0483",
ATTRS{idProduct}=="df11", MODE="664", GROUP="plugdev"

where the existing plugdev group is used (covers typical desktop users
on Debian/Ubuntu). I also filter for the "add" action, since this is
pointless on device removal.

> cp $SCRIPT_DIR/10-libusb.rules /etc/udev/rules.d/
> echo "In order for these changes to take effect you must restart your 
> computer"

No, rebooting is not necessary. The rules.d directory is usually
watched by udevd using inotify. In the worst case you must run "sudo
udevadm control --reload-rules".

Tormod

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to