[Rpm-maint] [rpm-software-management/rpm] Add a man page for rpm sysusers integration (PR #4126)

Panu Matilainen notifications at github.com
Fri Feb 27 12:26:44 UTC 2026


@pmatilai commented on this pull request.



> +# DESCRIPTION
+
+RPM has native support for the *sysusers.d*(5) format (introduced by systemd)
+that enables packages to declare users and/or groups to be automatically created
+at installation time. This eliminates the need for the manual creation of such
+accounts in transaction scriptlets.
+
+This works implicitly if a package ships one or more files in this format under
+*%\_sysusersdir* (typically _/usr/lib/sysusers.d/_). RPM will then automatically
+invoke the *%\_\_systemd_sysusers* binary (typically *systemd-sysusers*(8)) with
+the correct arguments in order to create the user and/or group accounts when the
+package is installed. This is the recommended method on systemd native platforms
+and requires no intervention from the package beyond shipping those files.
+
+RPM also allows for declaring sysusers.d entries explicitly in the spec file
+with the *%add_sysuser* macro. This macro takes a sysusers.d line with its

Should that be `*sysusers.d*(5)`?

I also note two consequent paragraphs starting with `this` (clearly, the theme of the day 😆 )

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4126#pullrequestreview-3866688056
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/4126/review/3866688056 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260227/b7b50fb2/attachment.htm>


More information about the Rpm-maint mailing list