summaryrefslogtreecommitdiffstats
path: root/molecule/ubuntu/Dockerfile.j2
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-12-11 17:27:15 +0100
committerAhmed Abdelhalim <[email protected]>2025-12-11 22:05:56 +0100
commit5e40d4a6ffa1667412d5db10ad6c99338dfec544 (patch)
treeb48046cdbc7b26607ed884403b4414ddb17dbd00 /molecule/ubuntu/Dockerfile.j2
parenta2a191770cc68371228bfba036ef8363fc11ee3c (diff)
Fix the test_group passwordless permission for testing
Diffstat (limited to 'molecule/ubuntu/Dockerfile.j2')
-rw-r--r--molecule/ubuntu/Dockerfile.j24
1 files changed, 0 insertions, 4 deletions
diff --git a/molecule/ubuntu/Dockerfile.j2 b/molecule/ubuntu/Dockerfile.j2
index 4c8e5c8c..64070d4d 100644
--- a/molecule/ubuntu/Dockerfile.j2
+++ b/molecule/ubuntu/Dockerfile.j2
@@ -25,10 +25,6 @@ RUN rm -f /lib/systemd/system/getty.target
# Mimic Ubuntu OS default boot (for testing)
RUN systemctl enable avahi-daemon
-# Enable passwordless sudo for test_group (created by the user role)
-RUN echo '%test_group ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/test_group && \
- chmod 0440 /etc/sudoers.d/test_group
-
VOLUME ["/sys/fs/cgroup", "/tmp", "/run", "/opt"]
CMD ["/lib/systemd/systemd"]