Bug 2095462 - [RFE] sanlock use systemd-sysusers
Summary: [RFE] sanlock use systemd-sysusers
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: sanlock
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: David Teigland
QA Contact: cluster-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-09 18:15 UTC by Pat Riehecky
Modified: 2023-08-10 15:41 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-124893 0 None None None 2022-06-09 18:18:23 UTC

Description Pat Riehecky 2022-06-09 18:15:17 UTC
Description of problem:
sanlock has static useradd scripts

Version-Release number of selected component (if applicable):
sanlock-3.8.4-1.el9

How reproducible:
100%

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

Actual results:
getent group sanlock > /dev/null || /usr/sbin/groupadd \
    -g 179 sanlock
getent passwd sanlock > /dev/null || /usr/sbin/useradd \
    -u 179 -c "sanlock" -s /sbin/nologin -r \
    -g 179 -d /var/run/sanlock sanlock
/usr/sbin/usermod -a -G disk sanlock

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 2 David Teigland 2023-05-16 16:40:16 UTC
It's not clear exactly what the sysusers replacement would look like, even after googling and reading many pages about the subject.  I would expect that this is a common enough pattern that a direct translation could be documented.


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