Compare commits
2 Commits
a8e2a85576
...
90f3ccfaf7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
90f3ccfaf7 | ||
|
|
4882642c77 |
12
Dockerfile
12
Dockerfile
@@ -11,6 +11,8 @@ RUN mkdir /var/run/sshd
|
|||||||
RUN useradd -m -s /bin/bash crime1
|
RUN useradd -m -s /bin/bash crime1
|
||||||
RUN useradd -m -s /bin/bash crime2
|
RUN useradd -m -s /bin/bash crime2
|
||||||
RUN useradd -m -s /bin/bash crime3
|
RUN useradd -m -s /bin/bash crime3
|
||||||
|
RUN useradd -m -s /bin/bash crime4
|
||||||
|
RUN useradd -m -s /bin/bash crime5
|
||||||
|
|
||||||
RUN mkdir -p /home/crime1
|
RUN mkdir -p /home/crime1
|
||||||
RUN chown -R crime1:crime1 /home/crime1
|
RUN chown -R crime1:crime1 /home/crime1
|
||||||
@@ -18,15 +20,21 @@ RUN mkdir -p \home\crime2
|
|||||||
RUN chown -R crime2:crime2 /home/crime2
|
RUN chown -R crime2:crime2 /home/crime2
|
||||||
RUN mkdir -p \home\crime3
|
RUN mkdir -p \home\crime3
|
||||||
RUN chowm -R crime3:crime3 /home/crime3
|
RUN chowm -R crime3:crime3 /home/crime3
|
||||||
|
RUN mkdir -p \home\crime4
|
||||||
|
RUN chowm -R crime4:crime4 /home/crime4
|
||||||
|
RUN mkdir -p \home\crime5
|
||||||
|
RUN chowm -R crime5:crime5 /home/crime5
|
||||||
|
|
||||||
RUN echo "crime1:crime1" | chpasswd
|
RUN echo "crime1:crime1" | chpasswd
|
||||||
RUN echo "crime2:&Vs@gSfdC+SPh!{BkBSt$~9{" | chpasswd
|
RUN echo "crime2:&Vs@gSfdC+SPh!{BkBSt$~9{" | chpasswd
|
||||||
RUN echo "crime3:CX1bjEG5Hj2bYmFBKe4hfLYFpXBFi2Dv" | chpasswd
|
RUN echo "crime3:CX1bjEG5Hj2bYmFBKe4hfLYFpXBFi2Dv" | chpasswd
|
||||||
|
RUN echo "crime4:crime4" | chpasswd
|
||||||
|
RUN echo "crime5:crime5" | chpasswd
|
||||||
|
|
||||||
COPY Chat.txt /home/crime1/.Chats/Chat.txt
|
COPY /Level/Level1/Chat.txt /home/crime1/.Chats/Chat.txt
|
||||||
RUN chown crime1:crime1 /home/crime1/.Chats/Chat.txt && chmod 600 /home/crime1/.Chats/Chat.txt
|
RUN chown crime1:crime1 /home/crime1/.Chats/Chat.txt && chmod 600 /home/crime1/.Chats/Chat.txt
|
||||||
|
|
||||||
COPY data.txt /home/crime2/data.txt
|
COPY /Level/Level2/data.txt /home/crime2/data.txt
|
||||||
RUN chown crime2:crime2 /home/crime2/data.txt && chmod 600 /home/crime1/data.txt
|
RUN 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
|
||||||
|
|||||||
Reference in New Issue
Block a user