mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-25 23:21:33 +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. |
||
---|---|---|
.. | ||
Makefile | ||
test-1.expected-group | ||
test-1.expected-passwd | ||
test-1.input | ||
test-2.expected-group | ||
test-2.expected-passwd | ||
test-2.input | ||
test-3.expected-group | ||
test-3.expected-passwd | ||
test-3.input | ||
test-4.expected-group | ||
test-4.expected-passwd | ||
test-4.input | ||
test-5.expected-group | ||
test-5.expected-passwd | ||
test-5.input | ||
test-6.expected-group | ||
test-6.expected-passwd | ||
test-6.input | ||
test.sh | ||
unhappy-1.expected-err | ||
unhappy-1.input | ||
unhappy-2.expected-err | ||
unhappy-2.input |