Skip to content

Commit 9f01710

Browse files
committed
Updated Dockerfile.
1 parent 19af7e6 commit 9f01710

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ RUN ln -sf /dev/null /home/king/.bash_history
2525
# flags
2626
COPY ./main_flags/root.txt /root/root.txt
2727
COPY ./main_flags/user.txt /home/king/user.txt
28-
RUN chmod 0400 /root/root.txt && chown root:root /root/root.txt
29-
RUN chmod 0400 /home/king/user.txt && chown king:king /home/king/user.txt
28+
RUN chown root:root /root/root.txt && chmod 0400 /root/root.txt
29+
RUN chown king:king /home/king/user.txt && chmod 0400 /home/king/user.txt
3030

3131
# Copying main files
3232
COPY ./docker-web /home/king/docker-web
@@ -37,7 +37,6 @@ RUN chmod 0700 /home/king/docker-web/.ssh.tar
3737
RUN chmod 0400 -R /home/king/docker-web/flags
3838
RUN chmod 0640 /home/king/docker-web/sudoers
3939
RUN mkdir /home/king/docker-web/html/logs && chmod 0777 /home/king/docker-web/html/logs
40-
RUN chmod 700 /home/king/docker-web/.ssh.tar
4140

4241

4342
EXPOSE 22

0 commit comments

Comments
 (0)