SCR3310 reader working for root, but not scard group

Todd A. Jacobs codegnome.consulting at gmail.com
Sun Feb 27 03:06:55 CET 2011


On Sat, Feb 26, 2011 at 5:53 PM, Hauke Laging
> dev_device="${DEVICE//proc/dev}"
> chgrp "${GROUP}" "${dev_device}"
> chmod g+rw "${dev_device}"

Thanks for the suggestion. However, $DEVICE isn't populated at all,
although the udev rule appears to be triggering. My script now
contains:

#!/bin/bash
GROUP=scard
echo "${DEVICE}" > /tmp/gnupg-ccid.log
if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
then
    dev_device="${DEVICE//proc/dev}"
    chgrp "${GROUP}" "${dev_device}"
    chmod g+rw "${dev_device}"
fi

but the log file always ends up with a blank line. So, no DEVICE
variable is being exported by udev, as far as I can tell.



More information about the Gnupg-users mailing list