linux environment, set the default method permissions automatically loading when hidraw

In linux system, hidraw device will automatically load and set the default permissions, but the default system only allows root access, the average user is not allowed to read and write.

A method is provided to modify the configuration of udev disposed /etc/udev/rules.d/ path, create a new file in this path, such as 99-hid.rules, open the file, write the string to the configuration.

Find a lot of reference, eventually down the most direct and effective test set as follows,

ATTRS{idVendor}=="1234", ATTRS{idProduct}=="5678", MODE="0666"

  

1234 vid is equipment, 5678 is the pid equipment, 0666 is the default device access.

I hope for your active detours!

Guess you like

Origin www.cnblogs.com/cner/p/11161574.html