#1150734 libpam-gnome-keyring: gkr-pam warnings when running su - under greetd

Package:
libpam-gnome-keyring
Source:
libpam-gnome-keyring
Description:
PAM module to unlock the GNOME keyring upon login
Submitter:
Awtul
Date:
2026-10-13 01:55:03 UTC
Severity:
normal
#1150734#5
Date:
2026-10-13 01:53:00 UTC
From:
To:
Dear Maintainer,

I'm running greetd and labwc. Over the last few days, after logging in as a regular user,
when I run 'su -' to become root and when I run 'exit' to return to my user the switch to
root succeeds and the root session closes normally but the following messages are reproduced:

"The gnome keyring socket is not owned with the same credentials as the user login: /run/user/1000/keyring/control
gkr-pam: couldn't unlock the login keyring."

The warnings appear twice, when opening and closing the root session. The session itself works normally.

- `gnome-keyring` 51.1-3
- `libpam-gnome-keyring` 51.1-3
- `greetd` 0.10.3-7
- `libpam0g` 1.7.0-8

Steps to reproduce:

1. Log in through greetd.
2. Run `su -` in a terminal and authenticate as root.
3. Exit the root shell.
4. Check journalctl.

This may be related to Debian bug [#1142693], although I cannot confirm that it has the same cause.

Please clarify whether this behaviour is expected or indicates a PAM integration issue.

Thanks!