Dear Ludovic,

I tried to execute "make fix-rights", but it failed with error that group
pcscd is not defined. So, I add this group manually ("addgroup pcscd") and
then the command successfully completed.

After trying to start pcscd manually I have found out that:
1. After reboot  testpcsc fails on SCardEstablishContext
2. testpcsc keeps failing even if I start pcscd manually (as user and not as
root)
3. testpcsc succeeds only if I add the folder /var/run/pcscd and set its
permissions to 777 and  then execute pcscd manually (as user).
4. 3 applies only for my Athena reader with asedriveriii3-usb-3.7
5. CCID reader with CCID driver 1.4.1 fails ( log messages are attached) and
succeeds only if restart pcscd as root.

The bottom line is that I can't work with either of my readers after reboot,
and a workaround is to run pcscd manually. By running pcscd as user it is
possible to work only with Athena readers, and by running it as root it is
possible to access CCID readers as well.

Any idea?

Best Regards,
Amiad


2010/12/9 Ludovic Rousseau <[email protected]>

> 2010/12/7 Amiad Salton <[email protected]>:
> > Hi,
>
> Hello,
>
> > I upgraded pcsc-lite to version 1.6.5 and CCID to 1.4.1 on my Ubuntu
> 10.10
> > and since then I've faced unexpected behavior.
> > I've realized that after startup my Smart Card is not recognized by
> Firefox.
> > Moreover, if I execute testpcsc  after reboot I receive the following
> error:
> > Testing SCardEstablishContext : Service not available.
> > After starting pcscd manually (by running /usr/local/sbin/pcscd as su),
> > everything work as expected.
> > I've read in release notes that from version 1.6.0 pcscd doesn't start as
> > part of boot process, but by the first application which tries to access
> it.
> > Since it doesn't work on my computer, I tried to put it back in boot
> > sequence, by copying it to /etc/init.d and executing the command "sudo
> > update-rc.d pcsc defaults", but still I can't find pcscd in System
> Monitor
> > after restart.
> > How can I continue accessing my Smart Card without starting pcscd
> manually?
> > Best Regards,
>
> You should not install two versions of pcsc-lite at the same time.
> I guess you still have the version provided by Ubuntu and now also
> version 1.6.5 in /usr/local.
> But that should not be the source of your problem.
>
>
> I guess you will see "permission denied" errors if you start pcscd in
> debug mode as a normal user.
> Try to run: "pcscd -fd"
>
> You may have "forgotten" to run "make fix-rights" after installing
> pcsc-lite. This is not documented so I am not surprised by your
> problem.
>
> Bye
>
> --
>  Dr. Ludovic Rousseau
>
> _______________________________________________
> Muscle mailing list
> [email protected]
> http://lists.drizzle.com/mailman/listinfo/muscle
>
ba...@ubuntu:~/dev/Install/pcsc-lite-1.6.5/src$ pcscd -fd
00000000 debuglog.c:277:DebugLogSetLevel() debug level=debug
00000653 configfile.l:245:DBGetReaderListDir() Parsing conf directory: 
/usr/local/etc/reader.conf.d
00000080 pcscdaemon.c:553:main() pcsc-lite 1.6.5 daemon ready.
00002644 hotplug_libusb.c:478:HPAddHotPluggable() Adding USB device: 2:5
00000060 readerfactory.c:931:RFInitializeReader() Attempting startup of Athena 
ASE IIIe 00 00 using 
/usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00000243 readerfactory.c:821:RFBindFunctions() Loading IFD Handler 3.0
00000064 ifdhandler.c:1727:init_driver() Driver version: 1.4.1
00000623 ifdhandler.c:1745:init_driver() LogLevel: 0x0003
00000012 ifdhandler.c:1766:init_driver() DriverOptions: 0x0000
00000106 ifdhandler.c:79:IFDHCreateChannelByName() lun: 0, device: 
usb:0dc3/1004:libusb-1.0:2:5
00000575 ccid_usb.c:266:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau 
([email protected])
00000012 ccid_usb.c:267:OpenUSBByName() ifdProductString: Generic CCID driver
00000008 ccid_usb.c:268:OpenUSBByName() Copyright: This driver is protected by 
terms of the GNU Lesser General Public License version 2.1, or (at your option) 
any later version.
libusb couldn't open USB device /dev/bus/usb/002/005: Permission denied.
libusb requires write access to USB device nodes.
00000868 ccid_usb.c:439:OpenUSBByName() Can't libusb_open(2/5): -3
00000053 ifdhandler.c:101:IFDHCreateChannelByName() failed
00000010 readerfactory.c:962:RFInitializeReader() Open Port 0x200000 Failed 
(usb:0dc3/1004:libusb-1.0:2:5)
00000007 readerfactory.c:273:RFAddReader() Athena ASE IIIe init failed.
00000007 readerfactory.c:982:RFUnInitializeReader() Attempting shutdown of 
Athena ASE IIIe 00 00.
00000006 readerfactory.c:858:RFUnloadReader() Unloading reader driver.
00000212 hotplug_libusb.c:386:HPEstablishUSBNotifications() Driver 
ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling 
instead.
00000011 hotplug_libusb.c:395:HPEstablishUSBNotifications() Polling forced 
every 1 second(s)
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to