[SOLVED] SCR3310 reader working for root, but not scard group

Todd A. Jacobs codegnome.consulting at gmail.com
Sun Feb 27 04:00:25 CET 2011

Here are the steps I needed to take under Ubuntu 10.10 to get this
particular reader working properly as a mortal user.

1. sudo aptitude install --with-recommends libccid

2. sudo addgroup --system pcscd

3. sudo addgroup pcscd <username>

4. cat << EOF | sudo tee /etc/udev/rules.d/gnupg-ccid.rules

SUBSYSTEM!="usb", GOTO="ccid_rules_end"
ACTION!="add", GOTO="ccid_rules_end"

ATTR{idVendor}=="04e6", ATTR{idProduct}=="e003", MODE="0660", GROUP="pcscd"
ATTR{idVendor}=="04e6", ATTR{idProduct}=="5115", MODE="0660", GROUP="pcscd"
ATTR{idVendor}=="04e6", ATTR{idProduct}=="511f", MODE="0660", GROUP="pcscd"


5. cat << EOF | sudo tee /etc/udev/rules.d/pcscd.rules
ACTION!="add", GOTO="pcscd_ccid_rules_end"
SUBSYSTEM!="usb", GOTO="pcscd_ccid_rules_end"
ENV{DEVTYPE}!="usb_device", GOTO="pcscd_ccid_rules_end"

# generic CCID device
ATTRS{bInterfaceClass}=="0b", RUN+="/bin/chgrp pcscd $root/$parent"


6. Remove and plug in the card reader to trigger the new rules.

7. Log in again to be part of the pcscd group.

8. Enjoy success with "gpg --card-status" as a mortal user.

I'm honestly not sure why both rules are necessary, but I couldn't get
this working at all without them both in place. The following blog
post by the maintainer wasn't particularly clear to me, but did point
me in the right direction:


Perhaps my experiences with this will help others, too.

More information about the Gnupg-users mailing list