From 83298383834b11051c1460ba663a9f41261f24a7 Mon Sep 17 00:00:00 2001 From: elisabeth Date: Mon, 22 May 2023 12:14:53 +0200 Subject: [PATCH] Set the root and user passwords to password in the Dockerfiles --- dockerfiles/debian_large | 5 +++-- dockerfiles/debian_mini | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dockerfiles/debian_large b/dockerfiles/debian_large index 968c8ff..5726951 100644 --- a/dockerfiles/debian_large +++ b/dockerfiles/debian_large @@ -12,7 +12,8 @@ RUN apt-get update && apt-get -y upgrade && \ xxd iptables isc-dhcp-client isc-dhcp-common kmod less netcat-openbsd # Make a user, then copy over the /example directory -RUN useradd -m user +RUN useradd -m user && echo "user:password" | chpasswd COPY --chown=user:user ./examples /home/user/examples RUN chmod -R +x /home/user/examples/lua -CMD [ "/bin/bash" ] \ No newline at end of file +RUN echo 'root:password' | chpasswd +CMD [ "/bin/bash" ] diff --git a/dockerfiles/debian_mini b/dockerfiles/debian_mini index 96129d9..55736bd 100644 --- a/dockerfiles/debian_mini +++ b/dockerfiles/debian_mini @@ -7,7 +7,8 @@ RUN apt-get -y install apt-utils gcc \ patch wamerican ucf manpages \ file luajit make lua50 dialog curl \ less cowsay netcat-openbsd -RUN useradd -m user +RUN useradd -m user && echo "user:password" | chpasswd COPY --chown=user:user ./examples /home/user/examples RUN chmod -R +x /home/user/examples/lua +RUN echo 'root:password' | chpasswd CMD [ "/bin/bash" ]