You are not logged in.

#1 2017-08-29 19:49:58

nmiculinic
Member
Registered: 2015-12-25
Posts: 63

Cannot connect to yubikey as new user

I've created a new user for testing. I've called it imaginatively, test.

[test@protagonist lpp]$ groups
users test

[test@protagonist lpp]$ ykman info
Usage: ykman [OPTIONS] COMMAND [ARGS]...

Error: Failed connecting to the YubiKey.

Whilst in my ordinary user:

 ~ groups                                                              G master[12D] 58646dc ?
wheel users transmission autosshfs docker lpp torrent
 ~ ykman info                                                          G master[12D] 58646dc ?
Device name: YubiKey 4
Serial number: <>
Firmware version: 4.3.5
Enabled connection(s): OTP+U2F+CCID

Device capabilities:
    OTP:	Enabled
    U2F:	Enabled
    CCID:	Enabled
    OPGP:	Enabled
    PIV:	Enabled
    OATH:	Enabled
 ~                                                                     G master[12D] 58646dc ?
[test@protagonist lpp]$ systemctl --user
Failed to connect to bus: Permission denied

I have put the required udev rule:

echo 'KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0664", GROUP="users", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="f1d0"' | sudo tee /etc/udev/rules.d/10-security-key.rules

And pretty much followed this guide

It works on my normal user, but it doesn't work on newly created one (even after multiple restarts).

What could be the issue? I'm having trouble debugging it.

Offline

Board footer

Powered by FluxBB