Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939994 - app-crypt/gnupg-2.4.5-r1 cannot access smartcard as normal user
Summary: app-crypt/gnupg-2.4.5-r1 cannot access smartcard as normal user
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-21 11:17 UTC by Xi
Modified: 2024-09-22 02:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,5.95 KB, text/plain)
2024-09-21 11:18 UTC, Xi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xi 2024-09-21 11:17:37 UTC
When running as a normal user:

gpg --card-status
gpg: error getting version from 'scdaemon': No SmartCard daemon
gpg: OpenPGP card not available: No SmartCard daemon

When running as root, I can access the smart card.

I am using a Yubikey device as a smart card.

My user is in these groups: wheel pcscd docker usb plugdev


[I] app-crypt/gnupg
     Installed versions:  2.4.5-r1^t{gpkg:2}(08:36:10 PM 09/21/2024)(bzip2 nls readline smartcard ssl tofu usb -doc -ldap -selinux -test -tools -tpm -user-socket -verify-sig -wks-server)

[I] sys-apps/pcsc-lite
     Installed versions:  2.0.1-r1(07:57:15 PM 09/21/2024)(systemd udev -doc -embedded -libusb -policykit -selinux ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11")
Comment 1 Xi 2024-09-21 11:18:07 UTC
Created attachment 903495 [details]
emerge --info
Comment 2 Xi 2024-09-22 02:44:58 UTC
This line in my ".gnupg/scdaemon.conf" file is causing the problem.

```
trust-model tofu+pgp
```

Issue resolved. Thanks