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

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

commit e710ca50adb7ef1ec1c7a9e8050edd30b60ecdde
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)
    (cherry picked from commit a6f4b2ecf4c3645406760c8ca847444f4e49ea5a)
---
 Dockerfile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index 2b8504e..b8a94af 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -130,6 +130,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
@@ -150,5 +151,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