Setting permissions for various devices using udev
From Rsewiki
Udev device naming
Udev is generating the device name residing in the /dev folder in modern Linux systems. This is done by the standard rules in
/lib/udev/rules.d
One can create custom rules by putting them in
/etc/udev/rules.d
To set the correct permissions for Guppy cameras, URG Laser-scanner, sound and Kinect the following rule file is created. It is named 99-smr_perm.rules.
# Set permissions on Firewire cam devices: KERNEL=="raw1394", SUBSYSTEM=="ieee1394_protocol", MODE="0666" KERNEL=="video1394-*", SUBSYSTEM=="ieee1394_protocol", MODE="0666" # Set permissions on Hokuyo URG scanner (using ACM): KERNEL=="ttyACM*", SUBSYSTEM=="tty", MODE="0666"
# set permission to joystick devices KERNEL=="event*", NAME="input/%k", MODE:="666", GROUP="input" KERNEL=="js*", NAME="input/%k", MODE:="666", GROUP="input"
# Set permissions for audio: SUBSYSTEM=="sound", MODE="0666" # Set permissions for USB bus folders (used by Kinect): SUBSYSTEM=="usb", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02ae", MODE="0666" SUBSYSTEM=="usb", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02ad", MODE="0666" SUBSYSTEM=="usb", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02b0", MODE="0666"