[libhid-discuss] hid_force_open & non-root access using udev and also other platforms
Xiaofan Chen
xiaofanc at gmail.com
Mon Oct 8 09:36:27 UTC 2007
On 10/8/07, Folkert van Heusden <folkert at vanheusden.com> wrote:
> Hi,
>
> In test_libhid.c I found the following code/text regarding hid_force_open:
>
> > * To open the HID, you need permission to the file in the /proc usbfs
> > * (which must be mounted -- most distros do that by default):
> > * mount -t usbfs none /proc/bus/usb
> > * You can use hotplug to automatically give permissions to the device on
> > * connection. Please see
> > * http://cvs.ailab.ch/cgi-bin/viewcvs.cgi/external/libphidgets/hotplug/
> > * for an example. Try NOT to work as root!
>
> Now I was wondering:
> - is there an udev solution for this?
Of course. Actually udev rules are preferred in newer distros since
they may not support hotplug rules.
Here is a good reference.
http://piklab.sf.net/files/libusb_udev_hotplug.txt
Xiaofan
More information about the libhid-discuss
mailing list