Yubico Forum
https://forum.yubico.com/

[QUESTION] Yubikey not recognised under OpenSuse 12.2
https://forum.yubico.com/viewtopic.php?f=30&t=972
Page 1 of 1

Author:  null [ Tue Feb 26, 2013 6:40 pm ]
Post subject:  [QUESTION] Yubikey not recognised under OpenSuse 12.2

With one sim-link to a library that could not be found I was able to successfully compile the personalization tool, meaning that apparently the application runs correctly under my distribution. However, when I insert the Yubikey and start the application, it still tells me "No Yubikey inserted" (in the right column status area).

When I go to the command line and run "lsusb" I see:

Bus 004 Device 005: ID 1050:0010 Yubico.com Yubikey

So apparently it is recognised on OS level. The log file remains empty and there are no diagnostic messages when run from the command line.

Could you share some hints how to analyse or even solve this problem?

Author:  Klas [ Wed Feb 27, 2013 8:53 am ]
Post subject:  Re: [QUESTION] Yubikey not recognised under OpenSuse 12.2

Hello.

It might be that your user doesn't have permissions for the device, try to run as root and see if that works.
The yubikey-personalization package includes udev configuration files to set the permissions to the logged in user (run ./configuration with --with-udevrulesdir=...)

/klas

Author:  null [ Sun Mar 10, 2013 4:58 pm ]
Post subject:  Re: [QUESTION] Yubikey not recognised under OpenSuse 12.2

Was not able to run as root with kdesu nor after "sudo x -", the latter complaining about "yubikey-personalization-gui: cannot connect to X server"

In deps/libyubikey I ran ./configure ----with-udevrulesdir=... Should it produce the udev config files or should I rebuild too? I did not see them appear in the folder I indicated.

I did find the following files in deps/libyubikey and placed them in /etc/udev/rules.d:

69-yubikey.rules
Quote:
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", \
ENV{ID_SECURITY_TOKEN}="1"

LABEL="yubico_end"


70-yubikey.rules
Quote:
# Udev rules for letting the console user access the Yubikey USB
# device node, needed for challenge/response to work correctly.

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}"


After a reboot I did not see any improvement.

Author:  Klas [ Mon Mar 11, 2013 1:36 pm ]
Post subject:  Re: [QUESTION] Yubikey not recognised under OpenSuse 12.2

Hello.

Yes, the two files you found there are used for controlling the permissions. The correct one (determined by udev version, 70-yubikey.rules for version 188 and later, otherwise 69-yubikey.rules). It should be copied to the udev rules directory on the system (on debian systems this is /etc/udev/rules.d/ or /lib/udev/rules.d/). Or you can point at the correct directory with --with-udevrulesdir= and re-run make && make install

/klas

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/