I'm wondering if it would make sense to add a udev rule similar to:
ACTION=="add|change", SUBSYSTEM=="usb", \
ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0010", \
TEST=="/var/run/ConsoleKit/database", \
RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"
to yubico-c-client (or perhaps libyubikey). This makes it so a yubikey
plugged in will be usable by the console user for challenge/response
without further ado. Currently, you need to either run ykchalresp as
root or chown/chmod/setfacl the USB device node.
regards,
--
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are
I'd vote for that, but I think yubikey-personalization is the correct
package to add it to (since that package currently is the one with the
USB communication stuff in it).
yubico-c-client could be installed on a server, validating OTPs
submitted to a web app.
/Fredrik