Disable Smartcard Integration in Hirsute?

I've got to work this solution to login with username/password while smartcard is inserted:

  1. Disable smartcard daemon autostart by removing (or just by renaming it to .bkp)

    /etc/xdg/autostart/org.gnome.SettingsDaemon.Smartcard.desktop

  2. Remove

    org.gnome.SettingsDaemon.Smartcard;

    from RequiredComponents lists in next two files (otherwise you'll get error "Oh no! Something has gone wrong" instead or after login screen):

    /usr/share/gnome-session/sessions/gnome-login.session

    /usr/share/gnome-session/sessions/ubuntu.session

P.S. Got again error "Oh no! Something has gone wrong" after upgrade onto 21.10, cause changed files were restored during upgrade.

P.P.S. ubuntu.session says that it "# Must be in sync with [email protected]/ubuntu.session.conf drop-in". However system works without meddling in that file

EDIT: after recent update Smartcard daemon started somehow. Nonetheless reboot hepled.


I'm will try this solution. I have an Yubikey Nano always attached to my machine. One of the functions of an Yubikey is a PIV card, so I always get in trouble during login. I don't think I will be able to uninstall libpam-sss because AFAIK it needed to login with AD.