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

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


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

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

    HDDS-14576. sudo cannot retrieve authentication info (#56)
    
    (cherry picked from commit 557193ffb85d1797db4305f14c0a701663d3acb2)
---
 Dockerfile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index 9f9c645..a0783f3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -173,6 +173,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
@@ -190,5 +191,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