-
Bug
-
Resolution: Done
-
Major
-
None
-
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:
- is blocked by
-
OPENJDK-344 Remove nss_wrapper from the OpenJDK containers
- Closed