set default file permissions for a directory

Paul Lussier p.lussier at comcast.net
Fri Dec 9 15:26:01 EST 2005


Charles Farinella <cfarinella at appropriatesolutions.com> writes:

> On Fri, 2005-12-09 at 13:54, Paul Lussier wrote:
>
>> Set the appropriate permissions on the parent directory, then set the
>> sgid bit on it.  This will cause the children of the parent directory
>> to inherit the permissions of their parent:
>> 
>>   > chmod g+s foo
>
> I need to work on my "question asking".  I've already done that but the
> newly created files only inherit the group, not the permissions.  I need
> all newly created files to be 664, and they end up 644 with the correct
> group name.  Thanks, though.

Hmm, yeah, g+s works but umask settings will over-ride that.

This page:

  http://www.udel.edu/topics/os/unix/general/groupsharing.html

seems to discuss your problem exactly, but makes mention of a
'setfacl' command which seems at best completely non-standard, but at
least available in debian via the package:

  acl - Access control list utilities

Therefore, do:

  apt-get install acl

-- 

Seeya,
Paul



More information about the gnhlug-discuss mailing list