Today I accidentally gave write permission to my index.php
file to using sudo chmod +x index.php
. I don't know what permission it had before.
My index.php
contains a php script for collecting number of visitors and an another script for collecting referrer links. It also contains some pictures and css code and my webserver is Lighttpd
Did I made a mistake by giving index.php
that permission? Can my website be hacked for it?
contains a php script for collecting number of visitors and an another script for collecting referrer links
. Generally Keeping permission0644
is safe. Only Owner can write