Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-6770

[RFE] nginx use systemd-sysusers

    • rhel-sst-cs-stacks
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • ---
    • None

      Description of problem:
      nginx is using static useradd scripts

      Version-Release number of selected component (if applicable):
      nginx-1.20.1-10.el9

      How reproducible:
      100%

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

      Actual results:

      %pre filesystem
      getent group %

      {nginx_user} > /dev/null || groupadd -r %{nginx_user}

      getent passwd %

      {nginx_user} > /dev/null || \
      useradd -r -d %{_localstatedir}/lib/nginx -g %{nginx_user}

      \
      -s /sbin/nologin -c "Nginx web server" %

      {nginx_user}

      exit 0

      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

              luhliari@redhat.com Lubos Uhliarik
              riehecky Pat Riehecky
              Lubos Uhliarik Lubos Uhliarik
              rhel-cs-infra-services-qe rhel-cs-infra-services-qe rhel-cs-infra-services-qe rhel-cs-infra-services-qe
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: