On Tue, 20 Sep 2011, Richard C. Steffens wrote: > Have a USB foot pedal for use in transcribing. I also have a foot > pedal utility program for using the foot pedal to control various > programs. When I run the program for the first time after the foot > pedal is plugged in to a USB port I get a permissions error message: > > --------------------------------------------------- > Permission lacking > > You need permission to access the device. Try entering > the following command: > sudo chmod a+r /dev/usb/hiddev0 > --------------------------------------------------- > > Is there some place I can configure something so that permission is > given to that device whenever it is plugged in?
udev is what handles that. You can create a custom rules file, which must be named with a ".rules" extension. I *think* the snippet below would work, but you'll want to test it. # /etc/udev/rules.d/footpedal.rules KERNEL=="usb/hiddev[0-9]*", MODE="0644" -- Paul Heinlein <> [email protected] <> http://www.madboa.com/ _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
