[Bug 1230182] [NEW] YubiKey NEO not detected
Robin Sheat
robin at kallisti.net.nz
Wed Sep 25 09:21:39 UTC 2013
Public bug reported:
The YubiKey NEO is a device that does things like HOTP keys, and can
also behave as a PGP smartcard.
In the default udev rules, attempting to use it as a smartcard gives the
following error:
$ LANGUAGE=en gpg --card-status
gpg: pcsc_establish_context failed: no service (0x8010001d)
gpg: card reader not available
gpg: OpenPGP card not available: general error
which is GPG's obscure way of saying that it can't find a card, although
the real problem is the USB device isn't readable by the logged in user.
If you add the following udev rule:
$ cat /etc/udev/rules.d/70-yubikey.rules
ACTION=="add|change", SUBSYSTEM=="usb", \
ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0111", \
TEST=="/var/run/ConsoleKit/database", \
RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"
which is pretty much a copy of /lib/udev/rules.d/70-yubikey.rules with
the idProduct changed, then things start working again:
$ LANGUAGE=en gpg --card-status
Application ID ...: D2760001240102000000000000010000
Version ..........: 2.0
Manufacturer .....: test card
Serial number ....: 00000001
Name of cardholder: Robin Sheat
... and so on.
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: udev 175-0ubuntu26
ProcVersionSignature: Ubuntu 3.8.0-30.44-generic 3.8.13.6
Uname: Linux 3.8.0-30-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.9.2-0ubuntu8.3
Architecture: amd64
CustomUdevRuleFiles: 51-android.rules 70-yubikey.rules
Date: Wed Sep 25 21:13:20 2013
InstallationDate: Installed on 2011-04-26 (882 days ago)
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MachineType: Gigabyte Technology Co., Ltd. P67A-UD4-B3
MarkForUpload: True
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.8.0-30-generic root=UUID=dbd6a855-ab0f-43ad-944f-4748722e0d1a ro quiet splash
SourcePackage: udev
UpgradeStatus: Upgraded to raring on 2013-04-13 (165 days ago)
dmi.bios.date: 02/14/2011
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F1
dmi.board.name: P67A-UD4-B3
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF1:bd02/14/2011:svnGigabyteTechnologyCo.,Ltd.:pnP67A-UD4-B3:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnP67A-UD4-B3:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: P67A-UD4-B3
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
** Affects: udev (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug raring
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to udev in Ubuntu.
https://bugs.launchpad.net/bugs/1230182
Title:
YubiKey NEO not detected
Status in “udev” package in Ubuntu:
New
Bug description:
The YubiKey NEO is a device that does things like HOTP keys, and can
also behave as a PGP smartcard.
In the default udev rules, attempting to use it as a smartcard gives
the following error:
$ LANGUAGE=en gpg --card-status
gpg: pcsc_establish_context failed: no service (0x8010001d)
gpg: card reader not available
gpg: OpenPGP card not available: general error
which is GPG's obscure way of saying that it can't find a card,
although the real problem is the USB device isn't readable by the
logged in user.
If you add the following udev rule:
$ cat /etc/udev/rules.d/70-yubikey.rules
ACTION=="add|change", SUBSYSTEM=="usb", \
ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0111", \
TEST=="/var/run/ConsoleKit/database", \
RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"
which is pretty much a copy of /lib/udev/rules.d/70-yubikey.rules with
the idProduct changed, then things start working again:
$ LANGUAGE=en gpg --card-status
Application ID ...: D2760001240102000000000000010000
Version ..........: 2.0
Manufacturer .....: test card
Serial number ....: 00000001
Name of cardholder: Robin Sheat
... and so on.
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: udev 175-0ubuntu26
ProcVersionSignature: Ubuntu 3.8.0-30.44-generic 3.8.13.6
Uname: Linux 3.8.0-30-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.9.2-0ubuntu8.3
Architecture: amd64
CustomUdevRuleFiles: 51-android.rules 70-yubikey.rules
Date: Wed Sep 25 21:13:20 2013
InstallationDate: Installed on 2011-04-26 (882 days ago)
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MachineType: Gigabyte Technology Co., Ltd. P67A-UD4-B3
MarkForUpload: True
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.8.0-30-generic root=UUID=dbd6a855-ab0f-43ad-944f-4748722e0d1a ro quiet splash
SourcePackage: udev
UpgradeStatus: Upgraded to raring on 2013-04-13 (165 days ago)
dmi.bios.date: 02/14/2011
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F1
dmi.board.name: P67A-UD4-B3
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF1:bd02/14/2011:svnGigabyteTechnologyCo.,Ltd.:pnP67A-UD4-B3:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnP67A-UD4-B3:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: P67A-UD4-B3
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udev/+bug/1230182/+subscriptions
More information about the foundations-bugs
mailing list