BASH SKRIP MENGAMANKAN HAK AKSES KE FOLDER WEB SERVER

 #!/bin/sh

read -p "Apakah anda akan  update pengaturan hak akses folder webserver ke lebih aman? $

if [[ $prompt =~ "y" || $prompt =~ "Y" || $prompt =~ "yes" || $prompt =~ "Yes" ]]

then

chmod -R 711 /var/www/ && \

chmod -R 700 /var/www/* && \

chown -R www-data:www-data /var/www/*

else

  exit 0

fi


Ori Grata

Abstrak

Please Select Embedded Mode For Blogger Comments

أحدث أقدم

Ikuti lewat Email

Advertisement