Re: Fw: access permissions for udev / usb device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sarah Messer wrote:

> My base problem is that I can access a USB device (Tektronix TDS
> 2014B oscilloscope) only as root.
...
> the device & endpoints are added to GID=1000 w/ permissions 664
> (illustrated below), but this still does not allow non-root users to
> actually control the device.  (I get an "Operation not permitted"
> error

How are you trying to control the device?  What software and what
interface is it using?  If (for example) you're using an older version
of libusb that uses /proc/bus/usb, you'll have problems because udev
only sets permissions on /dev/bus/usb.  You could use a rule similar
to this to set it in both places ($ENV{DEVICE} points to
/proc/bus/usb):

ATTRS{idVendor}=="04d8", MODE="0664", GROUP="plugdev"
ATTRS{idVendor}=="04d8", RUN+="/bin/chmod 664 $ENV{DEVICE}"
ATTRS{idVendor}=="04d8", RUN+="/bin/chgrp plugdev $ENV{DEVICE}"

-jim
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux