fix sheesh

This commit is contained in:
Rayhan Hanaputra
2025-10-26 13:42:24 +07:00
parent b343b651f3
commit bf897d0523
+2 -2
View File
@@ -11,7 +11,7 @@ grep -q "^PasswordAuthentication" /etc/ssh/sshd_config && \
sed -i "s/^PasswordAuthentication.*/PasswordAuthentication yes/" /etc/ssh/sshd_config || \
echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
echo "AllowUsers ctf" >> /etc/ssh/sshd_config
echo "AllowUsers ctfuser" >> /etc/ssh/sshd_config
/usr/sbin/sshd
@@ -21,4 +21,4 @@ if [ -n "$FLAG" ]; then
chown root:root /flag.txt
fi
exec su -c "cd /home/ctf/chall/src && ./run.sh" -s /bin/bash ctf
exec su -c "cd /home/ctfuser/chall/src && ./run.sh" -s /bin/bash ctfuser