diff --git a/go.sh b/go.sh index 51c5ddca..ef2d5393 100644 --- a/go.sh +++ b/go.sh @@ -619,7 +619,9 @@ echo "${bggreen}${black}${bold}" echo "Last steps..." echo "${reset}" sleep 1s -sudo cp /bin/bash /bin/rbash + +sudo chown www-data:cipi -R /var/www/html +sudo chmod -R 750 /var/www/html sudo echo 'DefaultStartLimitIntervalSec=1s' >> /usr/lib/systemd/system/user@.service sudo echo 'DefaultStartLimitBurst=50' >> /usr/lib/systemd/system/user@.service sudo echo 'StartLimitBurst=0' >> /usr/lib/systemd/system/user@.service diff --git a/storage/app/cipi/newsite.sh b/storage/app/cipi/newsite.sh index 5310ba2c..a4fa5a39 100644 --- a/storage/app/cipi/newsite.sh +++ b/storage/app/cipi/newsite.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash BASE_PATH= -USER_SHELL=/bin/rbash +USER_SHELL=/bin/bash while [ -n "$1" ] ; do case $1 in diff --git a/storage/app/cipi/patch202112181.sh b/storage/app/cipi/patch202112181.sh index 6349a0ff..30d2c901 100644 --- a/storage/app/cipi/patch202112181.sh +++ b/storage/app/cipi/patch202112181.sh @@ -1,3 +1,3 @@ # USER PERMISSIONS FIX -sudo cp /bin/bash /bin/rbash -sudo sed -i -e '/cp/s/bin\/bash/bin\/rbash/' /etc/passwd \ No newline at end of file +sudo chown www-data:cipi -R /var/www/html +sudo chmod -R 750 /var/www/html \ No newline at end of file diff --git a/storage/app/cipi/setup.sh b/storage/app/cipi/setup.sh index dffac88b..d462ced2 100644 --- a/storage/app/cipi/setup.sh +++ b/storage/app/cipi/setup.sh @@ -550,7 +550,8 @@ echo "Last steps..." echo "${reset}" sleep 1s -sudo cp /bin/bash /bin/rbash +sudo chown www-data:cipi -R /var/www/html +sudo chmod -R 750 /var/www/html sudo echo 'StartLimitBurst=0' >> /usr/lib/systemd/system/user@.service sudo systemctl daemon-reload