Level 5 fix

This commit is contained in:
2025-11-18 06:39:19 +00:00
parent 5bf5e41048
commit d10eaacf36

View File

@@ -38,11 +38,6 @@ RUN echo "crime5:crime5" | chpasswd
RUN echo "python3 /usr/local/bin/systemd-hdtob.py &" >> /home/crime5/.profile \ && chown crime5:crime5 /home/crime5/.profile
RUN echo "sudo python3 /usr/local/bin/watchdog.py &" >> /home/crime5/.profile \
&& chown crime5:crime5 /home/crime5/.profile
# SSH
RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
RUN sed -i 's/#PermitEmptyPasswords no/PermitEmptyPasswords no/' /etc/ssh/sshd_config
@@ -64,6 +59,10 @@ RUN chown crime2:crime2 /home/crime2/data.txt && chmod 600 /home/crime2/data.txt
COPY Level/Level5/systemd-hdtob.py /usr/local/bin/systemd-hdtob.py
RUN chmod +x /usr/local/bin/systemd-hdtob.py
COPY Level/Level5/watchdog.py /root/watchdog.py
RUN chmod 700 /root/watchdog.py
# motd
RUN rm -fr /etc/update-motd.d/*
RUN mkdir -p /guide