How to set a "public" directory? (Everyone can add and modify their own files)
Dave Ihnat
ignatz at dminet.com
Fri Oct 8 12:56:58 UTC 2004
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,
--
Dave Ihnat
ignatz at dminet.com
More information about the redhat-list
mailing list