[CentOS] Web server files ownership?

Bill Gee bgee at campercaver.net
Fri Jul 7 12:50:20 UTC 2017


On Friday, July 7, 2017 6:45:48 AM CDT Pete Biggs wrote:
> > 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.
> 
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos

Yep, good catch.  eXecute is not normally required on HTML files.

-- 
Bill Gee




More information about the CentOS mailing list