Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
Fix. .bashrc -> chsh
Browse files Browse the repository at this point in the history
  • Loading branch information
Iwancof committed Dec 23, 2020
1 parent ff76418 commit 96f8c09
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@ RUN useradd guest -m

RUN echo "guest" | passwd --stdin guest

RUN echo "/home/guest/what_is_include; exit" > /home/guest/.bashrc
RUN chmod 555 /home/guest/.bashrc
# RUN echo "/home/guest/what_is_include; exit" > /home/guest/.bashrc
# RUN chmod 555 /home/guest/.bashrc

ADD ./what_is_include /home/guest/what_is_include
ADD ./flag_irjblwgqbd.txt /home/guest/flag_irjblwgqbd.txt

RUN chmod 555 /home/guest/what_is_include
RUN chmod 444 /home/guest/flag_irjblwgqbd.txt

RUN chsh -s /home/guest/what_is_include guest

RUN chown root:root /home/guest
RUN chmod 2555 /home/guest

Expand Down

0 comments on commit 96f8c09

Please # to comment.