yubioath-flutter icon indicating copy to clipboard operation
yubioath-flutter copied to clipboard

Ubuntu: Cannot add account without `sudo`

Open DarkTrick opened this issue 2 years ago • 3 comments

  • Yubico Authenticator version: 5.1.0
  • Operating system and version: XUbuntu 21.10
  • YubiKey model and version: YubiKey 5 NFC
  • Bug description summary: Cannot add account without sudo the program

Steps to reproduce

  • Install authenticator via snap
  • start app (as normal user)
  • insert yubikey
  • Click "add account"
  • Fill in the values and submit
  • EXPECTED: new account is created
  • ACTUAL:
    • Error message "unknown error" is shown.
    • Starting the app from console reveals the error qml: addCredential failed: No eligiable connections are available ([<class 'yubikit.core.smartcard.SmartCardConnection'>]).

Full log running the app:

Start app:

env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/yubioath-desktop_yubioath-desktop.desktop /snap/bin/yubioath-desktop

(yubioath-desktop:26895): dbind-WARNING **: 23:09:50.003: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-5ZGk4Nx39g: No such file or directory

(yubioath-desktop:26895): Gtk-WARNING **: 23:09:50.034: Theme parsing error: gtk.css:1370:85: 'font-feature-settings' is not a valid property name
Qt: Session management error: Could not open network socket
WARNING: PC/SC not available. Smart card protocols will not function.
qml: calculateAll failed: No eligiable connections are available ([<class 'yubikit.core.smartcard.SmartCardConnection'>]).

Try to add account via GUI:

qml: addCredential failed: No eligiable connections are available ([<class 'yubikit.core.smartcard.SmartCardConnection'>]).

DarkTrick avatar Apr 02 '22 14:04 DarkTrick

I have the same error message on stock Arch Linux with Yubioath Desktop 5.1.0-3 from repos with my Yubikey 5C NFC.

Though I haven't tried running the app via doas (am not using sudo).

AtjonTV avatar Apr 03 '22 19:04 AtjonTV

Thanks for the report! The line WARNING: PC/SC not available. Smart card protocols will not function. indicates that pcscd is not running. Can you make sure it is?

fdennis avatar Apr 04 '22 08:04 fdennis

I can confirm that it worked normally after starting the pcscd service manually.

AtjonTV avatar Apr 07 '22 17:04 AtjonTV

Yubico Authenticator 6.0 has now been released and uses a new codebase. As such, this issue has been marked with the legacy label, and will be automatically closed in 7 days. If this issue is still relevant to Yubico Authenticator 6, please comment on the issue saying so, and it will be kept open (or be re-opened). Sorry for the inconvenience!

dainnilsson avatar Nov 16 '22 10:11 dainnilsson