From: Jim Paris Date: Wed, 13 Aug 2008 15:51:27 +0000 Subject: Re: Fw: access permissions for udev / usb device Message-Id: <20080813155127.GA23075@psychosis.jim.sh> List-Id: References: <158297.31144.qm@web50709.mail.re2.yahoo.com> In-Reply-To: <158297.31144.qm@web50709.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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 GID00 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