This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch slim
in repository https://gitbox.apache.org/repos/asf/ozone-docker-runner.git


The following commit(s) were added to refs/heads/slim by this push:
     new 557193f  HDDS-14576. sudo cannot retrieve authentication info (#56)
557193f is described below

commit 557193ffb85d1797db4305f14c0a701663d3acb2
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Fri Feb 6 12:32:29 2026 +0100

    HDDS-14576. sudo cannot retrieve authentication info (#56)
---
 Dockerfile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index c209723..53dbf69 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -86,6 +86,7 @@ RUN id=1000; \
     done
 
 RUN echo "hadoop ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
+RUN chmod 0400 /etc/shadow # workaround for "PAM account management error: 
Authentication service cannot retrieve authentication info" when trying to sudo
 RUN chown hadoop /opt
 
 # Prep for Kerberized cluster
@@ -103,5 +104,6 @@ COPY --chmod=755 entrypoint.sh /usr/local/bin/entrypoint.sh
 
 WORKDIR /opt/hadoop
 USER hadoop
+RUN sudo whoami # sanity check
 
 ENTRYPOINT ["/usr/local/bin/dumb-init", "--", "entrypoint.sh"]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to