On Tue, Oct 30, 2012 at 6:31 PM, Xiaofan Chen <xiaof...@gmail.com> wrote: > On Wed, Oct 31, 2012 at 9:29 AM, Xiaofan Chen <xiaof...@gmail.com> wrote: >> On Wed, Oct 31, 2012 at 2:25 AM, David Grant <davidgr...@gmail.com> 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" >>> >> >> I am reluctant to add anything like the above even though >> it is quite popular (usually people use plugdev group or >> things like that). >> >> Just take a look at the default udev rules >> whch is /lib/udev/rules.d/50-udev-default.rules, there is >> already provision for libusb device. >> >> # 'libusb' device nodes >> SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664" >> SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", IMPORT{builtin}="usb_id" >> >> It seems to me that udev developers thought about the group based >> method and decided against it. >> > > Of course the problem is that the default rule does not work > well due to the use of MODE="0664". Maybe it is a good idea > to ask in linux-hotplug mailing list to see the recommendation > from udev developers.
I'm not sure if my way of doing it is the recommended method but I copied what I used to have to do when I used VirtualBox with USB devices. Dave ------------------------------------------------------------------------------ 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