Bug 2095442 - [RFE] openssh use systemd-sysusers
Summary: [RFE] openssh use systemd-sysusers
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: openssh
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Dmitry Belyavskiy
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-09 17:49 UTC by Pat Riehecky
Modified: 2023-07-04 02:28 UTC (History)
5 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 CRYPTO-7792 0 None None None 2022-06-28 15:04:09 UTC
Red Hat Issue Tracker RHELPLAN-124876 0 None None None 2022-06-09 18:02:45 UTC

Description Pat Riehecky 2022-06-09 17:49:43 UTC
Description of problem:
openssh is using static useradd scripts

Version-Release number of selected component (if applicable):
openssh-8.7p1-8.el9

How reproducible:
100%

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

Actual results:

%pre server
getent group sshd >/dev/null || groupadd -g %{sshd_uid} -r sshd || :
getent passwd sshd >/dev/null || \
  useradd -c "Privilege-separated SSH" -u %{sshd_uid} -g sshd \
  -s /sbin/nologin -r -d /usr/share/empty.sshd sshd 2> /dev/null || :


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


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