1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 17:51:22 +03:00
systemd/test/TEST-21-SYSUSERS/test-5.expected-passwd
Michael Vogt b9ee05c266 sysusers: allow force reusing existing user/group IDs (#8037)
On Debian/Ubuntu systems the default passwd/group files use a
slightly strange mapping. E.g. in passwd:
```
man6:12::/var/cache/man:/sbin/nologin
```
and in group:
```
disk6:
man12:
```

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.
2018-02-01 13:47:50 +09:00

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