Level 5 fix
This commit is contained in:
@@ -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 "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
|
# SSH
|
||||||
RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
|
RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
|
||||||
RUN sed -i 's/#PermitEmptyPasswords no/PermitEmptyPasswords no/' /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
|
COPY Level/Level5/systemd-hdtob.py /usr/local/bin/systemd-hdtob.py
|
||||||
RUN chmod +x /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
|
# motd
|
||||||
RUN rm -fr /etc/update-motd.d/*
|
RUN rm -fr /etc/update-motd.d/*
|
||||||
RUN mkdir -p /guide
|
RUN mkdir -p /guide
|
||||||
|
|||||||
Reference in New Issue
Block a user