mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
b9ee05c266
On Debian/Ubuntu systems the default passwd/group files use a slightly strange mapping. E.g. in passwd: ``` man❌6:12::/var/cache/man:/sbin/nologin ``` and in group: ``` disk❌6: man❌12: ``` This is not supported in systemd-sysusers right now because sysusers will not re-use an existing uid/gid in its normal mode of operation. Unfortunately this reuse is needed to replicate the default Debian/Ubuntu users/groups. This commit enforces reuse when the "uid:gid" syntax is used to fix this. I also added a test that replicates the Debian base-passwd passwd/group file to ensure things are ok.
8 lines
235 B
Plaintext
8 lines
235 B
Plaintext
# Ensure that existing IDs are not reused by default. I.e. the existing
|
|
# ID 111 from g1 will cause u1 to get a new and different ID (999 on most
|
|
# systems).
|
|
#
|
|
#Type Name ID GECOS HOMEDIR
|
|
g g1 111 - -
|
|
u u1 111 - -
|