chmod and chgrp on user linux account
Posted on 2014-08-29
Now I would like to open my VPS site to visitor. Before doing that, I need to
set all my directories and files to be read only (including download file from visitors).
And I know if don't put any index.html or inde.php at the directories, it will
show the directories content such as file tress on browser. How to not to read the file trees by visitor.
Is there any existing linux script doing for ALL change the read mode with my user group for all
file and directories and its sub-directoried under my VPS user account directory when visitors visit my site and the script meets the requirement mentioned above ? SO I need to take use
chgrp besides chmod command in the script.
For uploading file from visitors, do I need to set write and read for the uploading directory
in my server, how ?