Compare commits
2 Commits
efb7d811a2
...
c27377b783
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c27377b783 | ||
|
|
52f17cd347 |
@@ -21,6 +21,9 @@ RUN echo "crime2:crime2" | chpasswd
|
|||||||
COPY .env /home/crime1/.env
|
COPY .env /home/crime1/.env
|
||||||
RUN chown crime1:crime1 /home/crime1/.env && chmod 600 /home/crime1/.env
|
RUN chown crime1:crime1 /home/crime1/.env && chmod 600 /home/crime1/.env
|
||||||
|
|
||||||
|
COPY data.txt /home/crime2/data.txt
|
||||||
|
chown crime2:crime2 /home/crime2/data.txt && chmod 600 /home/crime1/data.txt
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user