File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ RUN ln -sf /dev/null /home/king/.bash_history
2525# flags
2626COPY ./main_flags/root.txt /root/root.txt
2727COPY ./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
3232COPY ./docker-web /home/king/docker-web
@@ -37,7 +37,6 @@ RUN chmod 0700 /home/king/docker-web/.ssh.tar
3737RUN chmod 0400 -R /home/king/docker-web/flags
3838RUN chmod 0640 /home/king/docker-web/sudoers
3939RUN 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
4342EXPOSE 22
You can’t perform that action at this time.
0 commit comments