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

[image-mode] useradd doesn't find group LP

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • rhel-10.0
    • shadow-utils
    • None
    • None
    • None
    • rhel-idm-zta
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • x86_64
    • None

      What were you trying to do that didn't work?

      I have tried testing my components using image-mode. Many of my tests failed, because useradd didn't find group called "lp". I have tried to find group on the system by getent and it found this group: 

      getent group | grep lp 
        lp:x:7:

      I have looked into /etc/group and didn't find it there:

      cat /etc/group | grep lp
       

      So I was looking for the source of the group and found this:

      cat /etc/nsswitch.conf | grep group
        group:      files [SUCCESS=merge] altfiles [SUCCESS=merge] systemd

      So it was probably added by nss and not found by useradd. Is there anything, that can be done?

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      shadow-utils-4.15.0-8.el10.x86_64

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. useradd -G lp user123
      2.  
      3.  

      Expected results

      User is added into this group

      Actual results

      User is not added to the group, since useradd can't find it.

              ipedrosa@redhat.com Iker Pedrosa
              rh-ee-pdancak Petr Dancak
              Iker Pedrosa Iker Pedrosa
              Anuj Borah Anuj Borah
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: