How to set a "public" directory? (Everyone can add and modify their own files)

Yin Ming yinming at mdc-ds.com
Sat Oct 9 08:22:25 UTC 2004


Got that, thank you all!!

On Fri, 8 Oct 2004 07:56:58 -0500
Dave Ihnat <ignatz at dminet.com> wrote:

> On Fri, Oct 08, 2004 at 12:45:16PM +0800, Yin Ming wrote:
> > Hi, I'm looking for a way to setup a directory working like this:
> > ... 
> > I think it's same as the /tmp directory, so I tried to see what the
> > param of /tmp is. ls -l, but nothing special..
> 
> It *is* the same as the tmp directory.  Set the sticky bit ("+t" to chmod).
> 
> > 3. Besides that, I want this directory:
> > Any user adds a file or sub-dir to this directory, the owner and group
> > of that file become those ones of the parent directory.
> 
> Add "g+s" to the chmod command.
> 
> Programmatically, of course, these are bitmasks; look at the "chmod"
> command and system call ("man chmod", "man 2 chmod").
> 
> Cheers,

-- 
殷鸣 <yinming at mdc-ds.com>




More information about the redhat-list mailing list