On Mon, 5 Mar 2018 23:11:12 +0000
Zbigniew Jędrzejewski-Szmek <[email protected]> wrote:
> - somewhat independently, systemd-sysusers has been beefed up so it is
> possible to use it to create system users before any files are
> installed on disk, but honouring admin overrides. In short, we now
> recommend the following invocation to create users for an rpm which
> contains files owned by those users:
>
> %sysusers_create_package %{name} %SOURCEN
>
> where %SOURCEN is the tmpfiles.d config file which will be installed
> by package. This expands to
>
> echo "u NAME - -" | systemd-sysusers
> --replace=/usr/lib/sysusers.d/NAME.conf - >/dev/null 2>&1 || :
>
> and the "u NAME - -" configuration is applied with a priority that
> /usr/lib/sysusers.d/NAME.conf normally has (so e.g.
> /etc/sysusers.d/NAME.conf will override this).
>
> [1] https://raw.githubusercontent.com/systemd/systemd/master/NEWS
How does this interact with useradd and groupadd? Does this replace
them? And if so, does this send the required audit events?
Thanks,
-Steve
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]