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

[RFE] rpcbind use systemd-sysusers

    • rhel-sst-filesystems
    • ssg_filesystems_storage_and_HA
    • 1
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      rpcbind uses static useradd scripts

      Version-Release number of selected component (if applicable):
      rpcbind-1.2.6-2.el9

      How reproducible:
      100%

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

      Actual results:

      %pre

      1. Softly static allocate the rpc uid and gid.
        getent group rpc >/dev/null || groupadd -f -g 32 -r rpc
        if ! getent passwd rpc >/dev/null ; then
        if ! getent passwd 32 >/dev/null ; then
        useradd -l -c "Rpcbind Daemon" -d /var/lib/rpcbind \
        -g rpc -M -s /sbin/nologin -o -u 32 rpc > /dev/null 2>&1
        else
        useradd -l -c "Rpcbind Daemon" -d /var/lib/rpcbind \
        -g rpc -M -s /sbin/nologin rpc > /dev/null 2>&1
        fi
        fi

      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

              stevedatrhn Steve Dickson
              riehecky Pat Riehecky
              Steve Dickson Steve Dickson
              Yongcheng Yang Yongcheng Yang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: