set default file permissions for a directory

Charles Farinella cfarinella at appropriatesolutions.com
Fri Dec 9 14:05:01 EST 2005


On Fri, 2005-12-09 at 13:54, Paul Lussier wrote:

> > I need all files in a specific directory to be created with group write
> > permission (664) and all sub-directories 775.  I can set umask 002 in
> > the individual accounts for group members, but they are all remote and
> > just uploading files via WinSCP which means they aren't logged in or
> > using the shell.
> >
> > I haven't so far been able to find out how to do this.
> 
> 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.

--charlie

-- 
Charles Farinella 
Appropriate Solutions, Inc. (www.AppropriateSolutions.com)
cfarinella at AppropriateSolutions.com
603.924.6079




More information about the gnhlug-discuss mailing list