login not possible when smartcard is detected pluggned in
This happened to me today. When a smartcard is plugged to USB gdm greeter screen shows username input but while you can enter a username, the password prompt does not appear and it is not possible to login. The journal has this error logged.
gdm-smartcard][1882]: PAM unable to dlopen(/usr/lib/security/pam_pkcs11.so): /usr/lib/security/pam_pkcs11.so: cannot open shared object file: No such file or directory
gdm-smartcard][1882]: PAM adding faulty module: /usr/lib/security/pam_pkcs11.so
This is identical to this upstream bug Gnome Issues 877
It references similar report on debian.
However the work around does not apply to Arch as there is no such file "/etc/gdm3/greeter.dconf-defaults" it seems.
Removing the smartcard (yubikey in my case) and restart gdm and things go back to normal - including last user name and their login icon.
While the bug was first reported a year ago with 45 beta, it has not been resolved.
It is not obvious at all why a user is unable to login when this happens. login just appears completely broken.