I wish to store CIFS credentials during login on a desktop, but I've hit a brick wall, and my google foo has failed me. When I login via the desktop environment no CIFS credentials are available, but it works fine using SSH. I have tried with Ubuntu 20.04 and Fedora 34, but same result. This is how my Fedora installation is configured: pam_cifscreds.x86_64 6.11-3.fc34 I have added these lines to: /etc/pam.d/{gdm-password,login,sshd} auth optional pam_cifscreds.so debug session optional pam_keyinit.so force revoke session optional pam_cifscreds.so host=<myserver> debug >From the journal log when logging in can see the credentials gets stored: gdm-password][3362]: pam_cifscreds(gdm-password:session): credential key for \\<myserver>\<myuser> added sshd[2835]: pam_cifscreds(sshd:session): credential key for \\<myserver>\<myuser added But I can't see the CIFS credentials in my desktop session: $ keyctl show Session Keyring 882498672 --alswrv 1000 1000 keyring: _ses 1026128626 --alswrv 1000 65534 \_ keyring: _uid.1000 But when I login using SSH they are there: $ keyctl show Session Keyring 145928652 --alswrv 1000 1000 keyring: _ses 1026128626 --alswrv 1000 65534 \_ keyring: _uid.1000 802829928 ----sw-v 0 0 \_ logon: cifs:a:<myserver> I'm not totally sure, but I think the problem in general is related to this: https://github.com/systemd/systemd/issues/1299 -- Mvh. Kim Henriksen