This website requires JavaScript.
Explore
Help
Sign In
picnoir
/
Systemd
Watch
1
Star
0
Fork
You've already forked Systemd
0
Code
Issues
Pull requests
Projects
Releases
Wiki
Activity
f784c8b760
Systemd
/
test
/
test-sysusers
/
unhappy-1.input
5 lines
86 B
Plaintext
Raw
Normal View
History
Unescape
Escape
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: ``` man:x:6:12::/var/cache/man:/sbin/nologin ``` and in group: ``` disk:x:6: man:x: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.
2018-02-01 05:47:50 +01:00
# Ensure invalid uids are detected
#
#Type Name ID GECOS HOMEDIR
u u1 9999999999 - -
Reference in a new issue
Copy permalink