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

Re: Basing new file permissions on current dir perms



On Fri, 2004-01-09 at 14:05, Alex Malinovich wrote:
> On Fri, 2004-01-09 at 11:36, Monique Y. Herman wrote:
> > On 2004-01-09, Rob Sims penned:
[...]
> > > chmod g+s mydirectory
> > >
> > > Note that changing the directory's group will clear the sticky bit.
> > > -- Rob
> > >
> > 
> > That will not force rw access to group, though, right?  I think that was
> > part of the question the OP was asking.
> 
> Yes it was. :) This does indeed get the correct ownership on the files,
> but the files are still uneditable because they are made at 644 instead
> of 664 as I'd like. Any suggestions on this front?

There are two options:

1) set umask to 002 in the appropriate place (/etc/login.defs,
~.profile, /etc/profile)
2) use acls and do a "setfacl -md g:groupname:rwx dirname/"

-- 
Mark Roach



Reply to: