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

Michal Domonkos notifications at github.com
Mon Mar 9 11:22:56 UTC 2026


@dmnks commented on this pull request.



> +
+- Suffix *u* with an exclamation mark (*!*) to create a fully locked account
+  (recommended)
+- Use a dash (*-*) as _UID_/_GID_ for automatic number allocation (recommended)
+- _FILE_ is an absolute path to a file whose UID/GID should be used
+- _LINE_ uses *Line format* with the fields passed as macro arguments
+
+# DESCRIPTION
+
+RPM has native support for declarative user and group creation by integrating
+with the *sysusers.d*(5) format (introduced by systemd). Packagers only need to
+drop one or more files to _/usr/lib/sysusers.d/_ and RPM will handle the rest,
+such as dependency generation and the invocation of *systemd-sysusers*(8) during
+the build and installation, respectively.
+
+Vendors on non-systemd platforms can enable the feature by shipping any missing

Thinking about it more, %add_sysuser does seem to be most useful for debugging/development purposes only. Even if the distro/platform doesn't implement the sysusers.d specification fully, there's no reason packages couldn't ship files in the standardized directory, even if only ever used by RPM itself during the build phase. So maybe the macro should be documented as such, too...

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

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


More information about the Rpm-maint mailing list