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


Posting Komentar

Please Select Embedded Mode To Show The Comment System.*

Lebih baru Lebih lama

Formulir Kontak