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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] 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@xxxxxxxxxx>

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




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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux