I'm being asked to add a udev rule for a new USB device I purchased. There doesn't seem to be a dirt simple explanation for why this is necessary or valuable to do. To always map a device to the same path? E.g. Always mount a device as /dev/ttyUSB1
or /dev/sda4
?
In /etc/udev/rules.d/99-totalphase.rules
:
# This file causes the mode of all Total Phase usb devices to be made
# writable for any user.
# Aardvark I2C/SPI Host Adapter
ACTION=="add", SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0403", SYSFS{idProduct}=="e0d0", MODE="0666"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="e0d0", MODE="0666"
# Beagle Protocol Analyzers
ACTION=="add", SUBSYSTEM=="usb_device", SYSFS{idVendor}=="1679", SYSFS{idProduct}=="2001", MODE="0666"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1679", ATTR{idProduct}=="2001", MODE="0666"
/dev
entry. Depending on the device, there might be other reasons too. – lcd047 May 22 '15 at 06:00