From 96f8c09ccbd34941ffa4491cab1c7f7d06d312b9 Mon Sep 17 00:00:00 2001 From: Iwancof Date: Thu, 24 Dec 2020 06:05:36 +0900 Subject: [PATCH] Fix. .bashrc -> chsh --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index eee8dd0..21d1f32 100755 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,8 @@ 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 @@ -17,6 +17,8 @@ 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