Update keyring password when user changes password through GNOME Settings

Hi. I’ve upgraded today from F44 to F45 (Workstation).

Apparently, the login keyring password is supposed to change accordingly when you use GNOME Settings to change your user password…

But that didn’t happen here. After logging out and back in, I was greeted by the “unlock keyring” password prompt, which unlocked with the old password; then I ended up installing Seahorse to change it myself. I do not use automatic login. I type my password to log in.

I just wanted to be sure before going to the issue tracker.

I also have this problem. No solution yet.

Are you on Silverblue or Workstation?

This one? 2567187 – Keyring is not unlocked after Fedora 45 Silverblue upgrade

If not, I suggest to file a new bug: Log in to Red Hat Bugzilla

It looks like the pam file /etc/pam.d/passwd is missing an entry for pam_oo7. I don’t know if gnome settings will use the pam entries when changing the password, but /usr/bin/passwd will.

Workstation

Apparently yes. I cannot find any mention of oo7 in any obvious file in /etc/pam.d/, even though the pam_oo7 package is installed; gnome-keyring is not even installed, but it’s listed there. I will head to the bug tracker later.

$ cat /etc/pam.d/passwd 
#%PAM-1.0
# This tool only uses the password stack.
password   substack	system-auth
-password   optional	pam_gnome_keyring.so use_authtok
password   substack	postlogin

The rest of the pam files are found in /usr/lib/pam.d or perhaps ‘/usr/share/pam.d’.

Had a similar issue with crimsonking on Fedora Silverblue (44->45).

Upon seeing this thread & your reply I checked /etc/pam.d/gdm-password:

> cat /etc/pam.d/gdm-password.bak # backup
auth     [success=done ignore=ignore default=bad] pam_selinux_permit.so
# auth        sufficient     pam_howdy.so
auth        substack      password-auth
auth        optional      pam_gnome_keyring.so
auth        include       postlogin

account     required      pam_nologin.so
account     include       password-auth

password    substack       password-auth
-password   optional       pam_gnome_keyring.so use_authtok

session     required      pam_selinux.so close
session     required      pam_loginuid.so
session     required      pam_selinux.so open
session     optional      pam_keyinit.so force revoke
session     required      pam_namespace.so
session     include       password-auth
session     optional      pam_gnome_keyring.so auto_start
session     include       postlogin

and compared it against /usr/lib/pam.d/gdm-password:

> cat /usr/lib/pam.d/gdm-password
auth     [success=done ignore=ignore default=bad] pam_selinux_permit.so
auth        substack      gdm-password-auth-substack
-auth       optional      pam_gnome_keyring.so
-auth       optional      pam_oo7.so
auth        include       postlogin

account     required      pam_nologin.so
account     include       password-auth

password    substack       gdm-password-auth-substack
-password   optional       pam_gnome_keyring.so use_authtok
-password   optional       pam_oo7.so use_authtok

session     required      pam_selinux.so close
session     required      pam_loginuid.so
session     required      pam_selinux.so open
session     optional      pam_keyinit.so force revoke
session     required      pam_namespace.so
session     include       password-auth
-session    optional      pam_gnome_keyring.so auto_start
-session    optional      pam_oo7.so auto_start
session     include       postlogin

Indeed, the file in /etc was missing entries for oo7. I believe my /etc/pam.d/gdm-password was modified when I was testing Howdy around a while back, since it’s modified it might not have been auto-updated with the 44->45 upgrade.

Replacing the old gdm-password file with the source file under /usr fixed the issue for me. The keyring now correctly unlocks upon GDM password login. Tested on 2 machines.

Thanks for the hint, vekruse!

Issue was fixed in GDM 51.1.1. Upgrade, reboot and try again.

Now, when I change the user password, the keyring password is changed accordingly.

Thanks!