Link to home
Start Free TrialLog in
Avatar of rwniceing
rwniceing

asked on

chmod and chgrp on user linux account

Dear Experts,

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  ?

Please advise

Rwnicewing
ASKER CERTIFIED SOLUTION
Avatar of Wilder_Admin
Wilder_Admin
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of serialband
serialband
Flag of Ukraine image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rwniceing
rwniceing

ASKER

g-w  and o-w is equal to 744 or something else ?

how to not to show file directories tree on browser  if the index.php or inde.html is not existing on
those directories ? For example, when you type http://,mysite.com/php/store/ , it will show the
directory  or file tress on browser since there is no any index file.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for your reply