🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #5190

Bug#1154551: gdm3: dynamic greeter user intermittently registered with logind under wrong UID (off by one), user@<uid>.service f...

#5190
From: Giacomo Mulas
Date: Fri, 20 Nov 2026 08:50
176 lines
12336 bytes
Package: gdm3
Version: 51.1-1+b1
Severity: minor

Dear Maintainer,

On a fair fraction of boots (4 out of the last 12) the first GDM greeter
session is opened by PAM with one UID, but systemd-logind creates the user
slice, runtime directory and user manager for the next UID. The user manager
for that UID cannot start because no such user exists. The greeter then fails
("Session never registered"), and GDM retries with a second dynamic user
(gdm-greeter-2), which works correctly. The login screen appears and login
works, but every affected boot leaves user@60579.service in failed state in
"systemctl --state=failed".

The other boots are fine: PAM and logind agree on UID 60578 and
user@60578.service starts normally. This looks like a race in the allocation
or registration of the dynamic greeter user (GDM's userdb service
org.gnome.DisplayManager, together with nss-systemd/logind).

Failing boot (2026-11-18), journal excerpt:

  16:49:49 gdm-launch-environment][4572]: pam_unix(gdm-launch-environment:session): session opened for user gdm-greeter(uid=60578) by (uid=0)
  16:49:49 systemd[1]: Created slice user-60579.slice - User Slice of UID 60579.
  16:49:49 systemd[1]: Starting user-runtime-dir@60579.service - User Runtime Directory /run/user/60579...
  16:49:49 systemd-logind[2401]: New session 'c1' of user 'gdm-greeter' with class 'greeter' and type 'wayland'.
  16:49:49 systemd[1]: Starting user@60579.service - User Manager for UID 60579...
  16:49:49 (systemd)[4634]: user@60579.service: Failed to determine credentials for user '60579': Unknown user
  16:49:49 (systemd)[4634]: user@60579.service: Failed at step USER spawning /usr/lib/systemd/systemd: Invalid argument
  16:49:49 systemd[1]: user@60579.service: Main process exited, code=exited, status=217/USER
  16:49:49 systemd[1]: Failed to start user@60579.service - User Manager for UID 60579.
  16:49:49 gnome-keyring-daemon[4648]: The gnome-keyring control directory cannot be accessed: /run/user/60579/keyring: Permission denied
  16:49:49 gdm-wayland-session[4661]: dbus[4661]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/60579" is owned by uid 60579, not our uid 60578
  16:49:49 gdm-wayland-session[4661]: dbus-daemon[4661]: Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
  16:49:50 gdm3[4520]: Gdm: GdmDisplay: Session never registered, failing
  16:49:50 gdm3[4520]: Gdm: Child process -4654 was already dead.
  16:49:50 gdm-launch-environment][4919]: pam_unix(gdm-launch-environment:session): session opened for user gdm-greeter-2(uid=60580) by (uid=0)
  16:49:50 systemd[1]: Created slice user-60580.slice - User Slice of UID 60580.
  16:49:51 systemd[1]: Started user@60580.service - User Manager for UID 60580.

(the localized "Permesso negato" messages have been rendered as "Permission denied")

Working boot, same configuration:

  gdm-launch-environment]: pam_unix(gdm-launch-environment:session): session opened for user gdm-greeter(uid=60578) by (uid=0)
  systemd[1]: Created slice user-60578.slice - User Slice of UID 60578.
  systemd-logind: New session 'c1' of user 'gdm-greeter' with class 'greeter' and type 'wayland'.
  pam_unix(systemd-user:session): session opened for user gdm-greeter(uid=60578) by gdm-greeter(uid=0)

The same failure (always PAM uid 60578, logind uid 60579) was also logged
on 2026-10-17, 2026-11-06 and 2026-11-17, so it has been present at least
since gdm3 51.0-2. Updates installed: 50.3-1 -> 51.0-2 on 2026-10-04,
51.0-2 -> 51.1-1 on 2026-10-21, 51.1-1 -> 51.1-1+b1 on 2026-10-26.

After boot, "getent passwd 60578 60579" and "userdbctl user gdm-greeter"
return nothing, which is expected since the dynamic users are released.

The impact is cosmetic (the retry succeeds), but it leaves a failed unit on
every affected boot and makes the first greeter start fail.


-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (401, 'unstable'), (10, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.2.15+deb14-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gdm3 depends on:
ii  accountsservice                              26.27.3-2
ii  cinnamon [x-window-manager]                  6.6.9-3
ii  cinnamon-session [x-session-manager]         6.6.4-2
ii  cwm [x-window-manager]                       7.9-1
ii  dbus [default-dbus-system-bus]               1.16.4-1
ii  dbus-bin                                     1.16.4-1
ii  dconf-cli                                    51.0-2
ii  dconf-gsettings-backend                      51.0-2
ii  debconf [debconf-2.0]                        1.5.92
ii  foot [x-terminal-emulator]                   1.28.0-1
ii  gir1.2-gdm-1.0                               51.1-1+b1
ii  gnome-console [x-terminal-emulator]          51.0-2
ii  gnome-session [x-session-manager]            51.0-2
ii  gnome-session-bin                            51.0-2
ii  gnome-session-common                         51.0-2
ii  gnome-session-flashback [x-session-manager]  3.58.0-7
ii  gnome-settings-daemon                        51.0-2
ii  gnome-shell                                  51.0-4
ii  gnome-terminal [x-terminal-emulator]         3.60.0-6
ii  gsettings-desktop-schemas                    51.0-2
ii  i3-wm [x-window-manager]                     4.25.1-1
ii  icewm [x-window-manager]                     4.1.0-1
ii  icewm-experimental [x-window-manager]        4.1.0-1
ii  kitty [x-terminal-emulator]                  0.48.2-2
ii  konsole [x-terminal-emulator]                4:26.08.3-1
ii  kwin-x11 [x-window-manager]                  4:6.7.4-1+b1
ii  libaccountsservice1                          26.27.3-2
ii  libaudit1                                    1:4.2.1-1+b1
ii  libc6                                        2.43-7
ii  libgdm1                                      51.1-1+b1
ii  libglib2.0-0t64                              2.90.1-2
ii  libglib2.0-bin                               2.90.1-2
ii  libgudev-1.0-0                               238-7+b2
ii  libjson-glib-1.0-0                           1.10.8+ds-2+b1
ii  libkeyutils1                                 1.6.3-6+b2
ii  libnss-systemd                               262.2-1
ii  libpam-modules                               1.7.0-8
ii  libpam-runtime                               1.7.0-8
ii  libpam-systemd [logind]                      262.2-1
ii  libpam0g                                     1.7.0-8
ii  libpolkit-gobject-1-0                        128-1
ii  librsvg2-common                              2.63.4+dfsg-4
ii  libselinux1                                  3.11-2.1+b1
ii  libsystemd0                                  262.2-1
ii  libxau6                                      1:1.0.11-1+b2
ii  marco [x-window-manager]                     1.26.2-6
ii  mate-session-manager [x-session-manager]     1.26.1-3
ii  mate-terminal [x-terminal-emulator]          1.28.3-1
ii  metacity [x-window-manager]                  1:3.58.1-2+b1
ii  muffin [x-window-manager]                    6.6.3-2
ii  mutter [x-window-manager]                    51.0-3
ii  mwm [x-window-manager]                       2.3.8-5+b2
ii  openbox [x-window-manager]                   3.6.1-12+b4
ii  plasma-workspace [x-session-manager]         4:6.7.4-3
ii  polkitd                                      128-1
ii  procps                                       2:4.0.7-1.1
ii  ptyxis [x-terminal-emulator]                 50.1-1
ii  systemd [systemd-sysusers]                   262.2-1
ii  systemd-sysv                                 262.2-1
ii  termit [x-terminal-emulator]                 3.2-1
ii  twm [x-window-manager]                       1:1.0.10-1+b1
ii  ucf                                          3.0056
ii  x11-common                                   1:7.7+26
ii  x11-xserver-utils                            7.7+11
ii  xfce4-session [x-session-manager]            4.20.4-1
ii  xfce4-terminal [x-terminal-emulator]         1.2.0-1
ii  xfwm4 [x-window-manager]                     4.20.0-1
ii  xterm [x-terminal-emulator]                  412-1

Versions of packages gdm3 recommends:
ii  at-spi2-core                                 2.62.1-1
ii  cinnamon-session [x-session-manager]         6.6.4-2
ii  desktop-base                                 14.0.0~pre3
ii  gnome-session [x-session-manager]            51.0-2
ii  gnome-session-flashback [x-session-manager]  3.58.0-7
ii  mate-session-manager [x-session-manager]     1.26.1-3
ii  openbox [x-session-manager]                  3.6.1-12+b4
ii  plasma-workspace [x-session-manager]         4:6.7.4-3
ii  x11-xkb-utils                                7.7+9
ii  xfce4-session [x-session-manager]            4.20.4-1
ii  zenity                                       4.2.2-1

Versions of packages gdm3 suggests:
ii  libpam-fprintd        1.94.5-4+b2
ii  libpam-gnome-keyring  51.1-3
pn  libpam-pkcs11         <none>
pn  libpam-sss            <none>
ii  orca                  51.1-1

-- Configuration Files:
/etc/gdm3/daemon.conf changed:
[daemon]
WaylandEnable=false
[security]
[debug]


-- debconf information:
  gdm3/daemon_name: /usr/sbin/gdm3
* shared/default-x-display-manager: gdm3
Technical Details
Message-ID: <O1stI-d3aa-17@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Giacomo Mulas <giacomo.mulas@inaf.it>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154551: gdm3: dynamic greeter user intermittently registered with logind under wrong UID (off by one), user@<uid>.service fails, first greeter dies
Date: Fri, 20 Nov 2026 09:50:02 +0100
Message-ID: <O1stI-d3aa-17@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Nov 20 08:45:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Giacomo Mulas <giacomo.mulas@inaf.it>, 1154551@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-gnome-maintainers@lists.alioth.debian.org
X-Debian-Pr-Message: report 1154551
X-Debian-Pr-Package: gdm3
X-Debian-Pr-Source: gdm3
X-Gm-Message-State: APuU4Z/LWkoU4X53lbQcdgnjPAAoMhaCeFADxpChYWEF3zpXA0bIQM20
	4hyAM0J4PxJQveMfHNuD5l8HY1Iq3VLnx0tM+ychCArhDmQG41PmIYcL8fVrISvr3E8OrR4B90Q
	NQgpqOf4=
X-Gm-Gg: AYBFou2yB/6VqFLCPsAv9xqFZQFdPOFpiWD7UMxtVoloZmNkcAcMhYv+E+OuEPUrO1d
	pPJiPRQn0mWCN3VsGKLWxtOnaKtSL91C5L042v77WJVrcOQ8+8poOHRWP+mZXHkQykh+rTv0+uS
	5oUIkKvMZBHMp4ir0+Tilp/DrUZvlmmnsc+/w1MAjuimyjMs0JFSdwW/IhgCcif8RShK8sEV6uY
	Si3PicKKtobrN162l/K6q31TrM3y4n6/V+7euzcUJK0LkkKTSBsudXHbAKWxWkIOTIhayOC0c5a
	3sLbpeh/G2BbLHORMuMl47NB8/qLvYB+wFqaOU4BEBKZ0tkKzdnY2o0K7uLYV1t5RUAMM12N6Y6
	2BWmANS30C07+bsWN7J8RkAFrBcW6R/jmff4834MYKKj5/Ji/wj5yCQVvxpAdKYzF9JdoC5GWXV
	4+2SP34Ib5IdIeaY3P/U+sHVbI/FiUZ/3SoLbo80KhNmHKwWlzOCnSyh7PVP4+zbpAjJt6L/nW+
	vqtdYXNYbAJiTgJ1B9Uh6MpAMc0BlvUU7NR/aw0zl4lXn/5nKqAVRYc+nk+dAX9WWTOi/gCp5tR
	qd0IEeRxyWW06kcvXEcXofQINbWBxIjOx+iq6l0q4otuzU4+7ktQiN0ETzKOCCNlFvVcFvTE
X-Received: by 2002:a05:600c:34c9:b0:4a3:5d64:df91 with SMTP id 5b1f17b1804b1-4bb88810d28mr51470525e9.18.1795164194903;
        Fri, 20 Nov 2026 00:43:14 -0800 (PST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0+nmu1
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003678
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 176
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 20 Nov 2026 09:43:13 +0100
X-Original-Message-ID: <179516419390.1216330.5065404689638881957.reportbug@capitanata.oa-cagliari.inaf.it>