On 6/29/23 09:55, Panu Matilainen wrote:
The rpm integration doesn't technically require systemd-sysusers,
we can
write a script that calls useradd/groupadd instead. So for us it becomes
a choice between writing that script or adding audit support to
systemd-sysusers. Writing a script based on sysusers.generate-pre.sh may
well be less work and would benefit the non-systemd audiences of rpm at
the same time. We'll see.
OK, I cobbled something together:
https://github.com/rpm-software-management/rpm/pull/2573
It still waits for the new test suite back end to pass the testsuite but
that shouldn't prevent anyone from already having a look.
Does anyone have a suggestion for another way for checking for the
existence of users groups and UIDs? While useradd and group add support
the --root parameter things like id don't.
Florian