Re: Web server files ownership?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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! 

P. 
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux