Setting permissions for various devices using udev

From Rsewiki
(Difference between revisions)
Jump to: navigation, search
(Udev device naming)
(Udev device naming)
Line 16: Line 16:
 
  KERNEL=="ttyACM*", SUBSYSTEM=="tty", MODE="0666"
 
  KERNEL=="ttyACM*", SUBSYSTEM=="tty", MODE="0666"
 
   
 
   
  # set permission to joystick devices
+
  # set permission to joystick devices (to allow rhd to run as non-root)
 
  KERNEL=="event*",      NAME="input/%k", MODE:="666", GROUP="input"
 
  KERNEL=="event*",      NAME="input/%k", MODE:="666", GROUP="input"
 
  KERNEL=="js*",          NAME="input/%k", MODE:="666", GROUP="input"  
 
  KERNEL=="js*",          NAME="input/%k", MODE:="666", GROUP="input"  

Revision as of 17:30, 28 August 2013

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 (to allow rhd to run as non-root)
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"
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox