[KLUG Members] Directory Permissions Questions

Matt Scott members@kalamazoolinux.org
22 Oct 2002 22:08:05 -0400


> I once heard of a certain way to chmod a directory so that any file
> created in that directory was automagically owned by the directory owner. 
> Can somebody refresh me on how to do that?!
> Thanks...

While not exactly the same I know that in Linux anyway, turning on the
setgid bit for a directory makes sure that any newly created files are
owned by whatever group owns the directory.  I thought that maybe the
setuid bit would do what you wanted but after a little bit of
experimentation it isn't.  I can't figure out what a setuid directry
acutally does.  

But anyway it looks like you can control group ownership in that way but
not user ownership. Maybe this is what you remember hearing about. Or
maybe I'm missing something.

Matt