Try the pcsclite under ubuntu. 
The function SCardConnect executed successful, and the reader's led is light.
But when call SCardDisconnect(mHandle,SCARD_UNPOWER_CARD), the function 
returned error, and the led light isn't extinguished either, changed the 2nd 
parameter to SCARD_EJECT_CARD, the function returned OK, but the light still 
didn't extinguished.

My reader is USB GemPC Twin;

-----邮件原件-----
发件人: [email protected] 
[mailto:[email protected]] 代表 Ludovic Rousseau
发送时间: Monday, August 30, 2010 5:19 PM
收件人: opensc-dev; MUSCLE
主题: [Muscle] pcscd access rights limitation and scard group

Hello,

As listed on the pcsc-lite TODO file [1] I would like to run pcscd as
a normal user instead of root. To do this I need to:
1. select a normal user id or group id to use
2. write a udev (or whatever hotplug mechanism is used) file to set
the access rights of the USB reader device when connected

Point 2 should not be too hard. But after reading "OpenCT, Operating
Systems: General Notes" [2] I am not too sure :-)

For point 1 I would like to reuse the "scard" group already used by OpenCT.
The idea is to:
a. set the smart card reader devices in the group "scard" and give
group read/write access. So a process in the group "scard" can use the
device.
b. run pcscd as a normal user in the group "scard". So pcscd can
access the devices configured in point a.

My problem is that in OpenCT the "scard" group is used to give access
to _users_, not to a system daemon. So a user in group "scard" could
access the reader directly and bypass pcscd.
But since both OpenCT and pcsc-lite should not be installed at the
same time the problem is very limited.

I would like to have comments from users of OpenCT and users of
pcsc-lite about my plans. Maybe I missed something and a better
solution is available.

Thanks,

[1] http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/TODO
[2] http://www.opensc-project.org/openct/wiki/OperatingSystems

-- 
 Dr. Ludovic Rousseau

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle


_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to