Bug#1142062: systemd installation does not seem to honor UID/GID ranges configured in /etc/sysusers.d
Christian Henz
chrhenz at gmx.de
Tue Jul 14 19:23:23 BST 2026
Package: systemd
Version: 252.39-1~deb12u2
Severity: important
X-Debbugs-Cc: chrhenz at gmx.de
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 at 7f065c4aaedb:/# getent passwd | grep systemd
systemd-network:x:998:998:systemd Network Management:/:/usr/sbin/nologin
root at 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 at 7f065c4aaedb:/# deluser systemd-network
[...]
root at 7f065c4aaedb:/# delgroup systemd-journal
[...]
root at 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.
More information about the Pkg-systemd-maintainers
mailing list