[Rpm-maint] [rpm-software-management/rpm] Add a man page for rpm sysusers integration (PR #4126)
Michal Domonkos
notifications at github.com
Fri Feb 27 14:08:48 UTC 2026
@dmnks commented on this pull request.
> +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
+fields passed as separate arguments and must be declared in the (sub-)package
+context. This method is primarily intended for platforms without systemd where
+it is typically also coupled with a custom *%\_\_systemd_sysusers* binary (see
+*DECODING* for details).
+
+Note that for certain types of systemd services (for example, transient or
+socket activated), it may be possible to avoid package level user and group
+allocation altogether by using Dynamic Users (see *DynamicUser=* in
+*systemd.exec*(5) and the URL in *SEE ALSO* for details).
Yep, man pages are inherently local and so when writing/converting some documentation to it, you're naturally drawn towards finding man page references for things like this. And voila, there it is, in systemd.exec(5) :smile:
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4126#discussion_r2864512554
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4126/review/3867135730 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260227/19473d82/attachment.htm>
More information about the Rpm-maint
mailing list