Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 2:55 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Feb 26, 2013 6:40 pm 
Offline

Joined: Tue Feb 26, 2013 6:24 pm
Posts: 3
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?


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

PostPosted: Wed Feb 27, 2013 8:53 am 
Offline
Site Admin
Site Admin

Joined: Thu Apr 19, 2012 1:45 pm
Posts: 148
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


Top
 Profile  
Reply with quote  
PostPosted: Sun Mar 10, 2013 4:58 pm 
Offline

Joined: Tue Feb 26, 2013 6:24 pm
Posts: 3
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.


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 11, 2013 1:36 pm 
Offline
Site Admin
Site Admin

Joined: Thu Apr 19, 2012 1:45 pm
Posts: 148
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group