Commit graph

25 commits

Author SHA1 Message Date
459d613fff Formatting cleanup 2025-11-24 14:05:54 +00:00
b85d6de485 UsersAndGroups: switch to sysusers.d for F42+
https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers simplifies
the creation of system users and groups: the package only has to provide a
sysusers.d config file as part of the payload and rpm will implement this
configuration before the package is installed.

Before this patch, %sysusers_create_compat was the only documented way to
create users and groups. The traditional approach with getent/useradd/groupadd
was dropped a few years ago (6d066acbb1:
'UsersAndGroups: Use %sysusers_create_compat macro', 2020-12-10). So what this
patch effectively does is to drop the requirement for the sysusers file to be a
separate Source and to call %sysusers_create_compat in F42+.

Some packages still use the old old approach of manual getent/useradd/groupadd
scriptlets. This hasn't been documented for the last four years. We generally
do not require packages to update when packaging guidelines are changed, so
those packages are "fine", but we want them to switch to provide sysusers
files.

The transition plan is:
- spec files only for F42+ only need to provide a sysusers file
- spec files for F42- or compatible with both are recommended to use
  the previously-described approach with %sysusers_create_compat.
- spec files which use the old old approach can switch to
  %sysusers_create_compat (if a single spec file is to be used in
  multiple branches), or just switch to the new approach in the
  rawhide branch.

While packages that create users via scriptlets will continue to work, we want
to switch all packages to the new scheme. We have dependencies between packages
that create and use system accounts. Rpm will automatically create dependencies
on user and group accounts for files that are the package payload. Currently
those dependencies are weak (Recommends), and the first attempt to switch to
strong dependencies caused installability issues. But once we have sysusers.d
definitions for all users/groups used by packages, we can switch those
dependencies to strong (Requires). Thus we need to provide full sysusers.d
coverage of users to allow robust sorting of packages during install.

Once this is merged, I'll change the %sysusers_create_compat and
%sysusers_requires_compat to be empty.
2025-02-13 17:15:51 +00:00
1e70fd534b Drop obsolete chunk of text explaining scriptlet usage
The scriptlets were removed in 6d066acbb1:
'UsersAndGroups: Use %sysusers_create_compat macro', 2020-12-10.
That explanation was left behind, but it doesn't make sense without
the scriptlets, and the variables like USERNAME/GROUPNAME/HOMEDIR
are not used anywhere either.
2025-02-13 17:15:51 +00:00
839295388b UsersAndGrous: drop outdated list of users and groups
The reader is referred to the authoritative list in setup.rpm instead.
Fixes https://pagure.io/packaging-committee/issue/1431.
2025-01-25 10:29:39 +01:00
2690fcaed6 UsersAndGroups: Add qemu & kvm from libvirt
See: https://src.fedoraproject.org/rpms/libvirt
See: https://src.fedoraproject.org/rpms/libvirt/pull-request/22
2023-12-18 12:21:37 +01:00
f21b740251 UsersAndGroups: Add postgresql (26)
See: https://src.fedoraproject.org/rpms/postgresql/pull-request/60
2023-07-03 18:15:17 +02:00
Debarshi Ray
edc1b47de7 UsersAndGroups: Use %sysusers_requires_compat to specify Requires(pre)
... for %sysusers_create_compat.

Fallout from 6d066acbb1

https://pagure.io/packaging-committee/pull-request/1203
2023-05-19 12:46:38 +00:00
Luca BRUNO
4b43b9bb87
UsersAndGroups: add missing 'tss' user and group (package: tpm2-tss)
Ref: https://src.fedoraproject.org/rpms/tpm2-tss/blob/f34/f/tpm2-tss.spec#_55
2022-05-25 10:02:48 +00:00
Luca BRUNO
d30d7ddcc4
UsersAndGroups: add missing 'sshd' user and group (package: openssh-server)
Ref: https://src.fedoraproject.org/rpms/openssh/blob/f34/f/openssh.spec#_558
2022-05-25 09:58:28 +00:00
Luca BRUNO
d2ee127a7f
UsersAndGroups: add missing 'dbus' user and group (package: dbus-daemon)
Ref: https://src.fedoraproject.org/rpms/dbus/blob/f34/f/dbus.spec#_309
2022-05-25 09:52:50 +00:00
Luca BRUNO
3b52a43346
UsersAndGroups: add missing 'tcpdump' user and group (package: tcpdump)
Ref: https://src.fedoraproject.org/rpms/tcpdump/blob/f34/f/tcpdump.spec#_68
2022-05-25 09:46:15 +00:00
Luca BRUNO
430df8a71a
UsersAndGroups: add missing 'ceph' user and group (package: ceph-common)
Ref: https://src.fedoraproject.org/rpms/ceph/blob/f34/f/ceph.spec#_1646
2022-05-25 09:42:15 +00:00
Luca BRUNO
afedeff80f
UsersAndGroups: add missing 'utmp' and 'utempter' groups (package: libutempter)
Ref: https://src.fedoraproject.org/rpms/libutempter/blob/f34/f/libutempter.spec#_45
2022-05-25 09:34:59 +00:00
Luca BRUNO
813d6139ad
UsersAndGroups: add missing 'rpc' user and group (package: rpcbind)
This updates the table of static user/group ID allocations with
additional entries for `rpc` (UID/GID `32`). These static IDs are
in use by the `rpcbind` package since long time:
https://src.fedoraproject.org/rpms/rpcbind/blob/f34/f/rpcbind.spec#_79
2022-05-24 13:38:17 +00:00
06ad0b6e37 UsersAndGroups: Add reference table for static UID/GID allocations
Includes UIDs/GIDs from the following packages:
  - gdm
  - mock
  - setup

See https://pagure.io/packaging-committee/issue/1076
2021-10-20 12:57:58 +02:00
Carl George
d0c73edc61 Fix anchor link to soft static allocation section 2021-06-17 11:43:17 -05:00
Christian Glombek
6d066acbb1 UsersAndGroups: Use %sysusers_create_compat macro 2020-12-10 18:07:31 +01:00
Ken Dreyer
4431ed44e8 add title for Users and Groups page
Prior to this change, the HTML page's title was rendered as "Untitled".
2020-06-30 17:39:54 -06:00
786b5fe0cc suppress indentation warning 2020-04-19 16:01:11 +02:00
978590a36c Add one note which was lost in the wiki conversion. 2019-07-25 11:52:14 -05:00
02232480e8 Point to the pagure site instead of fedorahosted. 2019-07-25 10:59:42 -05:00
2531c177ec Convert to semaintic linebreaks; no content changes. 2019-07-25 10:55:34 -05:00
Igor Gnatenko
60f9e22189
trivial: drop Category: links
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-09-22 08:50:12 +02:00
Igor Gnatenko
1d0bff1b20
trivial: make all inline text literal
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-09-22 08:50:12 +02:00
Igor Gnatenko
8a2c101fb5
adapt to antora
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-09-22 08:50:12 +02:00
Renamed from Packaging:UsersAndGroups.adoc (Browse further)