Bug 2139054 - [RFE] cyrus-imapd user systemd-sysusers
Summary: [RFE] cyrus-imapd user systemd-sysusers
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cyrus-imapd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Osvald 🛹
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2095381
TreeView+ depends on / blocked
 
Reported: 2022-11-01 07:34 UTC by Martin Osvald 🛹
Modified: 2023-10-03 00:17 UTC (History)
7 users (show)

Fixed In Version: cyrus-imapd-3.8.1-1.fc40 cyrus-imapd-3.8.1-1.fc39
Clone Of:
Environment:
Last Closed: 2023-10-02 05:28:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources systemd pull-request 94 0 None None None 2022-11-02 14:54:48 UTC

Description Martin Osvald 🛹 2022-11-01 07:34:42 UTC
This bug was initially created as a copy of Bug #2095381

I am copying this bug because: 

It needs to get into Fedora first before implementing it in RHEL9.


Description of problem:
cyrus-imapd is using static useradd scripts

Version-Release number of selected component (if applicable):
cyrus-imapd-3.4.1-6.el9.src.rpm

How reproducible:
100%

Steps to Reproduce:
1. review %pre
2.
3.

Actual results:
%pre
# Create 'cyrus' user on target host
getent group saslauth >/dev/null || /usr/sbin/groupadd -g %gid -r saslauth
getent passwd cyrus >/dev/null || /usr/sbin/useradd -c "Cyrus IMAP Server" -d /var/lib/imap -g %cyrusgroup \
  -G saslauth -s /sbin/nologin -u %uid -r %cyrususer

Expected results:
use of system-sysusers 

Additional info:
https://www.freedesktop.org/software/systemd/man/systemd-sysusers.html
https://fedoraproject.org/wiki/Changes/Adopting_sysusers.d_format

Comment 1 Martin Osvald 🛹 2022-11-02 14:56:28 UTC
This cannot be implemented without fixing sysusers.generate-pre.sh script first:

https://src.fedoraproject.org/rpms/systemd/pull-request/94

Comment 2 Fedora Update System 2023-07-21 12:36:00 UTC
FEDORA-2023-877ef165e7 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-877ef165e7

Comment 3 Fedora Update System 2023-09-13 14:59:35 UTC
FEDORA-2023-f2d66d79fa has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-f2d66d79fa

Comment 4 Fedora Update System 2023-09-14 01:47:02 UTC
FEDORA-2023-f2d66d79fa has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-f2d66d79fa`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-f2d66d79fa

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-10-02 05:28:40 UTC
FEDORA-2023-f7d6c9a00b has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2023-10-03 00:17:02 UTC
FEDORA-2023-f2d66d79fa has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.