[CentOS] Web server files ownership?

Fri Jul 7 12:22:15 UTC 2017
Pete Biggs <pete at biggs.org.uk>

On Fri, 2017-07-07 at 12:56 +0100, John Hodrien wrote:
> On Fri, 7 Jul 2017, Pete Biggs wrote:
> > Not necessarily. In order to change permissions on a file you need to
> > have write access to the directory (i.e. the special file in the parent
> > directory that describes the files present in the directory).
> To delete, yes, but to chmod?  It makes no sense for that to be the case, as
> hardlinks would end up being a touch baffling.

Yes, you're right. Sorry. The permissions must be held in a different
place (chmod isn't suid so it can't write to the directory file if it
doesn't have the correct permissions) - it's a long time since I last
looked at filesystem internals.

And this has drifted too far away from apache!