Mounting USB devices from udev with permissions of the user at the console

Jurjen Bokma

November 2007


We assume that a user plugs in their USB device only after having logged in. When they do, we want the device to automatically become mounted, under the ownership of the user that controls the console.

We use Writing udev rules for documentation, and connect the device.

Procedure 33.  Figuring out the device characteristics and writing a matching rule
  1. find /sys/ -type f -exec grep -li nokia {} \; 2>/dev/null shows:

  2. udevinfo -a -p /sys/devices/pci0000:00/0000:00:1d.3/usb4/4-1/ gives:

  3. udevcontrol reload_rules to make the udev subsystem reconsider its position on our device.