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

Rigler, Stephen C. srigler at marathonoil.com
Fri Oct 8 12:08:35 UTC 2004


If you chmod the directory o+t, then users can (permissions permitting)
modify each other's files but not delete them.

To make new files/dirs in the directory inherit the group's ownership
then chmod g+s.

To set both of the above do "chmod u+rwx,g+rws,o+rwt <your dir>".

I don't know of a way to do what you ask for owner.  We'd have a problem
with that because it makes auditing difficult.

-Steve 

-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com] On Behalf Of Yin Ming
Sent: Thursday, October 07, 2004 11:45 PM
To: General Red Hat Linux discussion list
Subject: How to set a "public" directory? (Everyone can add and modify
theirown files)

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?


-- 
 <yinming at mdc-ds.com>

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list







More information about the redhat-list mailing list