diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2023-03-15 11:35:40 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2023-03-30 13:59:28 +0300 |
commit | 009d1397331a89413e2c5eead163cadb47ccdb4b (patch) | |
tree | 4bfcaf38f4b1a0bb02abf2c2d42df66a543fcf6d /docs/man | |
parent | fc09ee9d60cce879e521ac522b24817de32b3611 (diff) | |
download | rpm-009d1397331a89413e2c5eead163cadb47ccdb4b.tar.gz |
Automatically create sysuser users and groups on install
Add a new built-in %sysusers scriptlet that executes before unpacking
files and creates any sysuser users and groups provided by this package.
This scriptlet gets called with the same arguments as %pre, and
sysusers.d(5) lines are fed into the stdin of the script (ie similar to
file triggers).
systemd-sysusers is the native solution, but compatibility with
non-systemd distros can be achieved by pointing %__systemd_sysusers to a
script that translates the sysusers.d(5) lines into adduser/addgroup
calls or similar.
Unlike all the other package-related scripts, this runs from the outside
of a possible chroot to have access to the user-creation utilities
from the start of the transaction even in case of initial installation.
Users and groups are never deleted, on purpose, as that would lead to
uid/gid reuse and consequently, data leak and general weirdness.
Diffstat (limited to 'docs/man')
-rw-r--r-- | docs/man/rpm.8.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/man/rpm.8.md b/docs/man/rpm.8.md index 450694f17..6fab2d968 100644 --- a/docs/man/rpm.8.md +++ b/docs/man/rpm.8.md @@ -374,6 +374,10 @@ and **%postuntrans** scriptlet(s). and turns off execution of the corresponding **%triggerprein**, **%triggerin**, **%triggerun**, and **%triggerpostun** scriptlet(s). +**\--nosysusers** + +: Don't create sysusers from packages + **\--oldpackage** : Allow an upgrade to replace a newer package with an older one. |