新建規則文件,GROUP表示用戶組.
id 查看用戶
$ id
uid=1000(huanhe) gid=1000(huanhe) 組=1000(huanhe)
$ cat /etc/udev/rules.d/xxx_printer.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="0016", MODE="0666"
SUBSYSTEM=="usb_device", ATTRS{idVendor}=="0016", MODE="0666"
新建規則文件,GROUP表示用戶組.
id 查看用戶
$ id
uid=1000(huanhe) gid=1000(huanhe) 組=1000(huanhe)
$ cat /etc/udev/rules.d/xxx_printer.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="0016", MODE="0666"
SUBSYSTEM=="usb_device", ATTRS{idVendor}=="0016", MODE="0666"