Dockerfile aktualisiert
This commit is contained in:
@@ -42,8 +42,8 @@ RUN echo "python3 /usr/local/bin/systemd-hdtob.py &" >> /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
|
||||||
RUN sed -i 's/^session\s\+optional\s\+pam_lastlog.so/#session optional pam_lastlog.so/' /etc/pam.d/login \
|
RUN sed -i 's/.*pam_lastlog.so.*/#&/' /etc/pam.d/sshd \
|
||||||
&& sed -i 's/^session\s\+optional\s\+pam_lastlog.so/#session optional pam_lastlog.so/' /etc/pam.d/sshd
|
&& sed -i 's/.*pam_lastlog.so.*/#&/' /etc/pam.d/login
|
||||||
|
|
||||||
|
|
||||||
# Level1
|
# Level1
|
||||||
@@ -58,11 +58,6 @@ 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
|
||||||
|
|
||||||
RUN echo "Start" > /home/crime5/timer.txt \
|
|
||||||
&& chown root:root /home/crime5/timer.txt \
|
|
||||||
&& chmod 644 /home/crime5/timer.txt
|
|
||||||
|
|
||||||
|
|
||||||
# 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