Uploaded image for project: 'OpenJDK'
  1. OpenJDK
  2. OPENJDK-335

Latest update of ubi8/openjdk-11 breaks possibility to add users because of NSS_WRAPPER_PASSWD

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • Containers 1.14.GA
    • None
    • container
    • None
    • False
    • False
    • Undefined

      Migrated from https://bugzilla.redhat.com/show_bug.cgi?id=1941296

      Description of problem:
      Since the upgrade of the ubi8/openjdk-11 Image to version 1.3-10 it is no longe possible to create new users (via useradd/adduser) and use them correctly in the Image. After analyzing the issue we found out that this is caused by a new intoduced setting in this image of ENV-Variable "NSS_WRAPPER_PASSWD" pointing to
      "/home/jboss/passwd". This leads to a situation where "useradd" adds the user correctly to /etc/passwd but all the other commands (like "chown" or "id") search for the user in /home/jboss/passwd leading to a "no such user" error message. This breaks compability with a lot containers depending on correctly added users.

      Version-Release number of selected component (if applicable): 1.3-10

      How reproducible: Use latest ubi8/openjdk-11 as base image and try to add a user an make use of it via chown.

      Steps to Reproduce:
      1.Create Image "FROM registry.access.redhat.com/ubi8/openjdk-11"
      2.Switch to "USER root"
      3."adduser test"
      4."id test"

      Actual results: "No such user"

      Expected results: "User should be found and ID should be correctly mapped"

      Additional info:

              jdowland@redhat.com Jonathan Dowland
              jdowland@redhat.com Jonathan Dowland
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: