Setting permissions for various devices using udev

From Rsewiki
Revision as of 10:00, 11 February 2011 by Sh (talk | contribs) (New page: == Udev device naming == Udev is generating the device name residing in the <tt>/dev</tt> folder in modern Linux systems. This is done by the standard rules in /lib/udev/rules.d One ca...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 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"