]> git.ipfire.org Git - thirdparty/systemd.git/commit - man/sysusers.d.xml
sysusers: allow uid:gid in sysusers.conf files
authorMichael Vogt <mvo@ubuntu.com>
Tue, 23 Jan 2018 18:53:08 +0000 (19:53 +0100)
committerMichael Vogt <mvo@ubuntu.com>
Thu, 25 Jan 2018 11:50:37 +0000 (12:50 +0100)
commit4cb41413c82e81fa4f9f211b95ac5cd5c13a543b
treebed473e5387471e38525f98f192dd13d23d75e8d
parent5eb83fa6453d8a328376dabc826897f212451edd
sysusers: allow uid:gid in sysusers.conf files

This PR allows to write sysuser.conf lines like:
```
u games 5:60 -
```
This will create an a "games" user with uid 5 and games group with
gid 60. This is arguable ugly, however it is required to represent
certain configurations like the default passwd file on Debian and
Ubuntu.

When the ":" syntax is used and there is a group with the given
gid already then no new group is created. This allows writing the
following:
```
g unrelated 60
u games 5:60 -
```
which will create a "games" user with the uid 5 and the primary
gid 60. No group games is created here (might be useful for [1]).

[1] https://pagure.io/packaging-committee/issue/442
man/sysusers.d.xml
src/sysusers/sysusers.c