How can I create a new user group that will grant the group members access to USB devices connected to the system?
a.) to all connected USB devices?
b.) only to USB devices with VID=0x1234?
c.) only to USB devices with VID=0x1234 and PID=0xABCD?
The OS version is: Raspbian GNU/Linux 10 (buster)
I have a C++ program that connects to an USB acceleration sensor. The program uses libusb
and can communicate with the sensor when started with sudo ./myprogram
. Without sudo
the program has permission problems.
/dev
although you can setsuid
on code. Services get permissions - see raspberrypi.stackexchange.com/a/75681/8697