[PLUG] Permissions setting for USB program

Paul Heinlein heinlein at madboa.com
Tue Sep 20 18:41:25 UTC 2011


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 <> heinlein at madboa.com <> http://www.madboa.com/



More information about the PLUG mailing list