bmd-tools icon indicating copy to clipboard operation
bmd-tools copied to clipboard

USB device accessible only with sudo privileges

Open ghost opened this issue 7 years ago • 3 comments

If I run bmd-streamer as normal user, I get the following error: [1/11 1edb:bd43]: unable to open device: LIBUSB_ERROR_ACCESS

With sudo (or as root user) everyhting is fine. Do you have any advice how to overcome this issue? Thank you!

ghost avatar Apr 19 '17 07:04 ghost

Depends a little bit on your system, but if using udev or similar, add a rule to grant access for that device to regular user, e.g. something like

/etc/udev/rules.d/50-bmd.rules

SUBSYSTEMS=="usb", ATTRS{idVendor}=="1edb", GROUP="video", MODE="0660"

Use proper group, or even specfic user via USER. For more information, see https://wiki.archlinux.org/index.php/udev or google for "write udev rules". Perhaps we should include an example rule that adds the devices to be owned by 'video' group.

fabled avatar Apr 19 '17 08:04 fabled

Thank you for your fast response. I tried this yesterday, I probably made some mistake. It would be good if you could include some instructions on this.

ghost avatar Apr 19 '17 08:04 ghost

I confirm that this works perfectly.

ghost avatar Apr 19 '17 08:04 ghost