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

Jim jkipp5 at comcast.net
Fri Oct 8 12:53:34 UTC 2004


> Hi, I'm looking for a way to setup a directory working like this:
> 1. Everyone can add, modify, delete their own files or 
> sub-dirs to this directory, and access other users' files if 
> the permission is permited.
> 2. If the permissions are not permited, one user cannot 
> delete other's files
> 
> 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..
> 
> 
> 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.
> 
> How to set this special directory?

Sounds like you need to set the sticky bit on the directory. here are a
couple of 
links to help you
http://www.faqs.org/faqs/hp/hpux-faq/section-70.html
http://www.uwsg.iu.edu/UAU/files/sticky.html



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.772 / Virus Database: 519 - Release Date: 10/1/2004
 




More information about the redhat-list mailing list