Skip to content

Commit 8329838

Browse files
epanholzalexp-sssup
authored andcommitted
Set the root and user passwords to password in the Dockerfiles
1 parent 78a0c4d commit 8329838

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

dockerfiles/debian_large

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ RUN apt-get update && apt-get -y upgrade && \
1212
xxd iptables isc-dhcp-client isc-dhcp-common kmod less netcat-openbsd
1313

1414
# Make a user, then copy over the /example directory
15-
RUN useradd -m user
15+
RUN useradd -m user && echo "user:password" | chpasswd
1616
COPY --chown=user:user ./examples /home/user/examples
1717
RUN chmod -R +x /home/user/examples/lua
18-
CMD [ "/bin/bash" ]
18+
RUN echo 'root:password' | chpasswd
19+
CMD [ "/bin/bash" ]

dockerfiles/debian_mini

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ RUN apt-get -y install apt-utils gcc \
77
patch wamerican ucf manpages \
88
file luajit make lua50 dialog curl \
99
less cowsay netcat-openbsd
10-
RUN useradd -m user
10+
RUN useradd -m user && echo "user:password" | chpasswd
1111
COPY --chown=user:user ./examples /home/user/examples
1212
RUN chmod -R +x /home/user/examples/lua
13+
RUN echo 'root:password' | chpasswd
1314
CMD [ "/bin/bash" ]

0 commit comments

Comments
 (0)