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.
40 lines
446 B
Plaintext
40 lines
446 B
Plaintext
adm:x:4:
|
|
tty:x:5:
|
|
disk:x:6:
|
|
man:x:12:
|
|
kmem:x:15:
|
|
dialout:x:20:
|
|
fax:x:21:
|
|
voice:x:22:
|
|
cdrom:x:24:
|
|
floppy:x:25:
|
|
tape:x:26:
|
|
sudo:x:27:
|
|
audio:x:29:
|
|
dip:x:30:
|
|
operator:x:37:
|
|
src:x:40:
|
|
shadow:x:42:
|
|
utmp:x:43:
|
|
video:x:44:
|
|
sasl:x:45:
|
|
plugdev:x:46:
|
|
staff:x:50:
|
|
games:x:60:
|
|
users:x:100:
|
|
nogroup:x:65534:
|
|
root:x:0:
|
|
daemon:x:1:
|
|
bin:x:2:
|
|
sys:x:3:
|
|
lp:x:7:
|
|
mail:x:8:
|
|
news:x:9:
|
|
uucp:x:10:
|
|
proxy:x:13:
|
|
www-data:x:33:
|
|
backup:x:34:
|
|
list:x:38:
|
|
irc:x:39:
|
|
gnats:x:41:
|