For security reasons, you want on the Apache httpd user to have read/write/execute privilege instead of its group users or other users.
$ls -l |grep htdocs
drwxr-xr-x. 6 apache apache 4096 May 23 22:28 htdocs
$chmod -R go-rwx htdocs
$ls -l |grep htdocs
drwx------. 6 apache apache 4096 May 23 22:28 htdocs
$ls -l |grep htdocs
drwxr-xr-x. 6 apache apache 4096 May 23 22:28 htdocs
$chmod -R go-rwx htdocs
$ls -l |grep htdocs
drwx------. 6 apache apache 4096 May 23 22:28 htdocs
No comments:
Post a Comment