Re: [SLUG] Another Stupid Permissions Question

From: Jason Boxman (jasonb@edseek.com)
Date: Mon May 22 2006 - 17:08:24 EDT


Paul M Foster wrote:
> Scenario: a directory on the server has ownership as: paulf:www-data.
> Directory permissions have been changed to g+w. (Don't recall, but I
> think they were 755 to begin with. A couple of questions:
>
> 1) Is there any way to force the files in that directory to have group
> ownership of www-data, so www-data can write to them, etc.?

Sure,

chmod g+sw /path/to/base/dir

setgid will ensure any directories or files created have the GID of the parent.

> 2) File created in this directory have permissions of 644. Is there any
> way to get them to be created with group write permissions, without
> altering the mask for all the files on the drive?

I'd be curious about this myself. Short of ACLs I don't know.

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:17:20 EDT