[CentOS] Web server files ownership?

Pete Biggs pete at biggs.org.uk
Fri Jul 7 11:45:48 UTC 2017


> 
> File permissions are 574.  Note that owners are NOT required to have higher 
> permissions than groups!
> 
> find /var/www/html -type f -exec chmod 574 {} \;

Normal files really shouldn't have their execute bit set. There is no
need to (since they aren't going to be executed) and just sets up
security issues If you want to have only group write permissions on
normal files you should set the permissions to 464 (-r--rw-r--). 

P.




More information about the CentOS mailing list