mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 06:52:22 +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.
19 lines
690 B
Plaintext
19 lines
690 B
Plaintext
root:x:0:0::/root:/bin/sh
|
|
daemon:x:1:1::/usr/sbin:/sbin/nologin
|
|
bin:x:2:2::/bin:/sbin/nologin
|
|
sys:x:3:3::/dev:/sbin/nologin
|
|
sync:x:4:65534::/bin:/sbin/nologin
|
|
games:x:5:60::/usr/games:/sbin/nologin
|
|
man:x:6:12::/var/cache/man:/sbin/nologin
|
|
lp:x:7:7::/var/spool/lpd:/sbin/nologin
|
|
mail:x:8:8::/var/mail:/sbin/nologin
|
|
news:x:9:9::/var/spool/news:/sbin/nologin
|
|
uucp:x:10:10::/var/spool/uucp:/sbin/nologin
|
|
proxy:x:13:13::/bin:/sbin/nologin
|
|
www-data:x:33:33::/var/www:/sbin/nologin
|
|
backup:x:34:34::/var/backups:/sbin/nologin
|
|
list:x:38:38::/var/list:/sbin/nologin
|
|
irc:x:39:39::/var/run/ircd:/sbin/nologin
|
|
gnats:x:41:41::/var/lib/gnats:/sbin/nologin
|
|
nobody:x:65534:65534::/nonexistent:/sbin/nologin
|