Ownership of usb device with udev.
Guillaume Yziquel
guillaume.yziquel at free.fr
Tue Jul 3 11:30:01 CEST 2007
Werner Koch a écrit :
> On Fri, 29 Jun 2007 11:38, guillaume.yziquel at free.fr said:
>
>> Visibly, purging pcscd does not solve the problem. Concerning
>> permissions, I guess I have some work to do:
>
> Indeed. That is your problem. Use lsusb to figure out where the SCR335
> is attached and the manually update the ownership for testing. The
> HOWTO has hints on how to install the hotplug stuff.
I read the hotplug stuff was deprecated, and that udev should be used
instead. The output of lsusb -v concerning the smart card reader follows.
My main problem is that I do not really understand how udev works. I
understood there was lots of renaming involved. And with all these
renamings, I do not really know how to make ownership changes.
I'd really love to find a good document on how udev works. In particular
with debian.
Thank you.
Guillaume Yziquel.
> Bus 003 Device 003: ID 04e6:5115 SCM Microsystems, Inc. SCR335 SmartCard Reader
> Device Descriptor:
> bLength 18
> bDescriptorType 1
> bcdUSB 2.00
> bDeviceClass 0 (Defined at Interface level)
> bDeviceSubClass 0
> bDeviceProtocol 0
> bMaxPacketSize0 16
> idVendor 0x04e6 SCM Microsystems, Inc.
> idProduct 0x5115 SCR335 SmartCard Reader
> bcdDevice 5.18
> iManufacturer 1 SCM Microsystems Inc.
> iProduct 2 SCR33x USB Smart Card Reader
> iSerial 5 21120706318555
> bNumConfigurations 1
> Configuration Descriptor:
> bLength 9
> bDescriptorType 2
> wTotalLength 93
> bNumInterfaces 1
> bConfigurationValue 1
> iConfiguration 3 CCID Class
> bmAttributes 0xa0
> (Bus Powered)
> Remote Wakeup
> MaxPower 100mA
> Interface Descriptor:
> bLength 9
> bDescriptorType 4
> bInterfaceNumber 0
> bAlternateSetting 0
> bNumEndpoints 3
> bInterfaceClass 11 Chip/SmartCard
> bInterfaceSubClass 0
> bInterfaceProtocol 0
> iInterface 4 CCID Interface
> ChipCard Interface Descriptor:
> bLength 54
> bDescriptorType 33
> bcdCCID 1.00
> nMaxSlotIndex 0
> bVoltageSupport 1 5.0V
> dwProtocols 3 T=0 T=1
> dwDefaultClock 4000
> dwMaxiumumClock 12000
> bNumClockSupported 0
> dwDataRate 9600 bps
> dwMaxDataRate 307200 bps
> bNumDataRatesSupp. 0
> dwMaxIFSD 252
> dwSyncProtocols 00000000
> dwMechanical 00000000
> dwFeatures 000100BA
> Auto configuration based on ATR
> Auto voltage selection
> Auto clock change
> Auto baud rate change
> Auto PPS made by CCID
> TPDU level exchange
> dwMaxCCIDMsgLen 263
> bClassGetResponse echo
> bClassEnvelope echo
> wlcdLayout none
> bPINSupport 0
> bMaxCCIDBusySlots 1
> Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x01 EP 1 OUT
> bmAttributes 2
> Transfer Type Bulk
> Synch Type None
> Usage Type Data
> wMaxPacketSize 0x0040 1x 64 bytes
> bInterval 0
> Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x82 EP 2 IN
> bmAttributes 2
> Transfer Type Bulk
> Synch Type None
> Usage Type Data
> wMaxPacketSize 0x0040 1x 64 bytes
> bInterval 0
> Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x83 EP 3 IN
> bmAttributes 3
> Transfer Type Interrupt
> Synch Type None
> Usage Type Data
> wMaxPacketSize 0x0010 1x 16 bytes
> bInterval 16
> Device Status: 0x0000
> (Bus Powered)
More information about the Gnupg-users
mailing list