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

Giacomo Mulas giacomo.mulas at inaf.it
Fri Nov 20 08:43:13 GMT 2026


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 at 60579.service in failed state in
"systemctl --state=failed".

The other boots are fine: PAM and logind agree on UID 60578 and
user at 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 at 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 at 60579.service - User Manager for UID 60579...
  16:49:49 (systemd)[4634]: user at 60579.service: Failed to determine credentials for user '60579': Unknown user
  16:49:49 (systemd)[4634]: user at 60579.service: Failed at step USER spawning /usr/lib/systemd/systemd: Invalid argument
  16:49:49 systemd[1]: user at 60579.service: Main process exited, code=exited, status=217/USER
  16:49:49 systemd[1]: Failed to start user at 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 at 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



More information about the pkg-gnome-maintainers mailing list