Bug 2095417

Summary: [RFE] glibc use systemd-sysusers
Product: Red Hat Enterprise Linux 9 Reporter: Pat Riehecky <riehecky>
Component: glibcAssignee: DJ Delorie <dj>
Status: VERIFIED --- QA Contact: Sergey Kolosov <skolosov>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: ashankar, bstinson, codonell, dj, fweimer, jwboyer, markobri, mcermak, pfrankli, sipoyare, skolosov
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glibc-2.34-68.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2100855 (view as bug list) Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2100855    

Description Pat Riehecky 2022-06-09 17:13:13 UTC
Description of problem:
glibc is using static useradd scripts

Version-Release number of selected component (if applicable):
nscd-2.34-37.el9

How reproducible:100%


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

Actual results:
%pre -n nscd
getent group nscd >/dev/null || /usr/sbin/groupadd -g 28 -r nscd
getent passwd nscd >/dev/null ||
  /usr/sbin/useradd -M -o -r -d / -s /sbin/nologin \
                    -c "NSCD Daemon" -u 28 -g nscd nscd

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 7 Carlos O'Donell 2023-05-11 17:30:50 UTC
Reviewed and merged DJ's changes into c9s. Final build in progress.