Package: systemd
Version: 252.39-1~deb12u2
Severity: important
X-Debbugs-Cc: [email protected]
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.