SCR3310 reader working for root, but not scard group
Hauke Laging
mailinglisten at hauke-laging.de
Sun Feb 27 02:53:39 CET 2011
Am Sonntag 27 Februar 2011 01:45:26 schrieb Todd A. Jacobs:
> $ cat /usr/local/sbin/gnupg-ccid.sh
> if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
> then
> chmod o-rwx "${DEVICE}"
> chgrp "${GROUP}" "${DEVICE}"
> chmod g+rw "${DEVICE}"
> fi
I had the same problem. My problem was that $DEVICE does not point to /dev but
to /proc. You can easily check that by putting
ls -l "${DEVICE}" >> /root/gnupg-ccid.log
into the script. My script looks like this:
dev_device="${DEVICE//proc/dev}"
chgrp "${GROUP}" "${dev_device}"
chmod g+rw "${dev_device}"
Hauke
--
PGP: D44C 6A5B 71B0 427C CED3 025C BD7D 6D27 ECCB 5814
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 555 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20110227/a546bc63/attachment.pgp>
More information about the Gnupg-users
mailing list