Systemd/test/TEST-21-SYSUSERS/test-5.input
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

48 lines
1.4 KiB
Plaintext

# Reproduce the base-passwd master.{passwd,group} from Debian
#
#Type Name ID GECOS Home directory
g adm 4 -
g tty 5 -
g disk 6 -
g man 12 -
g kmem 15 -
g dialout 20 -
g fax 21 -
g voice 22 -
g cdrom 24 -
g floppy 25 -
g tape 26 -
g sudo 27 -
g audio 29 -
g dip 30 -
g operator 37 -
g src 40 -
g shadow 42 -
g utmp 43 -
g video 44 -
g sasl 45 -
g plugdev 46 -
g staff 50 -
g games 60 -
g users 100 -
g nogroup 65534 -
u root 0 - /root
u daemon 1 - /usr/sbin
u bin 2 - /bin
u sys 3 - /dev
u sync 4:65534 - /bin
u games 5:60 - /usr/games
u man 6:12 - /var/cache/man
u lp 7 - /var/spool/lpd
u mail 8 - /var/mail
u news 9 - /var/spool/news
u uucp 10 - /var/spool/uucp
u proxy 13 - /bin
u www-data 33 - /var/www
u backup 34 - /var/backups
u list 38 - /var/list
u irc 39 - /var/run/ircd
u gnats 41 - /var/lib/gnats
u nobody 65534:65534 - /nonexistent