Hi,
I have read the recent post about how to create a udev rule for a specific usb device in order to change its access rights, however, I have still trouble getting access to it without being root.
This is what I did.
Following the explanation here:
http://www.reactivated.net/writing_udev_rules.html
I plugged the device in and checked dmesg
--> usb 4-2: new high speed USB device using ehci_hcd and address 7
So I called now udevinfo:
> udevinfo -a -p /sys/bus/usb/devices/usb4/4-2/
and got this:
looking at class device '/sys/bus/usb/devices/usb4/4-2':
KERNEL=="4-2"
SUBSYSTEM=="unknown"
SYSFS{bConfigurationValue}=="1"
SYSFS{bDeviceClass}=="00"
SYSFS{bDeviceProtocol}=="00"
SYSFS{bDeviceSubClass}=="00"
SYSFS{bMaxPacketSize0}=="64"
SYSFS{bMaxPower}==" 0mA"
SYSFS{bNumConfigurations}=="1"
SYSFS{bNumInterfaces}==" 1"
SYSFS{bcdDevice}=="0000"
SYSFS{bmAttributes}=="40"
SYSFS{configuration}==""
SYSFS{devnum}=="7"
SYSFS{idProduct}=="0003"
SYSFS{idVendor}=="1443"
SYSFS{manufacturer}=="Digilent"
SYSFS{maxchild}=="0"
SYSFS{product}=="USB Module"
SYSFS{speed}=="480"
SYSFS{version}==" 2.00"
What is strange about this is that the subsystem is set to unknown. Anyway, based on the explanation I should create the rule based on the previous information and this is what I did:
KERNEL=="4-2",SYSFS{idVendor}=="1443",SYSFS{idProduct}=="0003",GROUP="users",MODE="0660"
Added the rule to the 10-local.rules file in the /etc/udev/rules.d folder and called udevstart.
I am still cannot call my PyUsb program to open the device under my user name, who is part of the "users" group.
Am I doing something wrong here?
I am using PyUsb 0.4.0 with libusb 0.1.10a, linux kernel 2.6.13-15.16-default
Thanks for any help.
Cheers,
Guenter
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066
|