Skip to content

Instantly share code, notes, and snippets.

@seanhagen
Created December 17, 2014 05:41
Show Gist options
  • Save seanhagen/fcfb66a64ab74728167c to your computer and use it in GitHub Desktop.
Save seanhagen/fcfb66a64ab74728167c to your computer and use it in GitHub Desktop.
Yubikey NEO Setup
ACTION!="add|change", GOTO="yubico_end"
# Udev rules for letting the console user access the Yubikey USB
# device node, needed for challenge/response to work correctly.
# Yubico Yubikey II
ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0010|0110|0111|0116", \
ENV{ID_SECURITY_TOKEN}="1"
LABEL="yubico_end"
ACTION=="add|change", SUBSYSTEM=="usb", \
ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0010|0111|0115|0116", \
TEST=="/var/run/ConsoleKit/database", \
RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment