#1142062 systemd installation does not seem to honor UID/GID ranges configured in /etc/sysusers.d

Package:
systemd
Source:
systemd
Description:
system and service manager
Submitter:
Christian Henz
Date:
2026-07-14 18:25:02 UTC
Severity:
normal
#1142062#5
Date:
2026-07-14 18:23:23 UTC
From:
To:
Dear Maintainer,

In a Docker container (from debian:bookworm), when packages are installed and systemd gets pulled in, it creates users/groups (systemd-network, systemd-journal) disregarding a range configuration in in /etc/sysusers.d/00-range.conf:

    r - 100-899

The allocated UID/GIDs are 998 and 999 - outside of the configured range.

    root@7f065c4aaedb:/# getent passwd | grep systemd
    systemd-network:x:998:998:systemd Network Management:/:/usr/sbin/nologin
    root@7f065c4aaedb:/# getent group | grep systemd
    systemd-journal:x:999:
    systemd-network:x:998:

`systemd-sysusers --cat-config` show that the range rule is found.

When deleting the users/groups and manually re-running systemd-sysusers, the UIDs/GIDs are allocated correctly within the configured range.

    root@7f065c4aaedb:/# deluser systemd-network
    [...]
    root@7f065c4aaedb:/# delgroup systemd-journal
    [...]
    root@7f065c4aaedb:/# systemd-sysusers
    Creating group 'systemd-journal' with GID 899.
    Creating group 'systemd-network' with GID 898.
    Creating user 'systemd-network' (systemd Network Management) with UID 898 and GID 898.