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

Re: Sticky premissions.



There is a bit of a self contradiction here: Linux aint Windows. You can create 
a "public" dirctory, say mydir and then say chmod g+rw mydir. But the moment 
someone in the group writes something to it, he can set permissions any way he 
likes, for his own files. The only way to "beat the system", is to have the 
directory owner run a periodic task saying something like chmod -R ug+rw mydir.

(Subdirectories are always created by mkdir as rwx owner and rx for everone 
else. The x grants "way through" access for stuff further down the tree.)

Ref: Stevens, APUE, p 78.

Oded Arbel wrote:

> Reading this again, I think I didn't made myself clear, so lets try again :
> I want that any user of the "users" group will be able to create files and
> directories under the public directory, and said files and directories will
> automaticly have read/write access to all members of the "users" group, and
> recursively - that files and directories in sub-directories will also be
> thus affected.
> 
> Oded
> 
> --
> "I don't care who does the electing as long as I get to do the nominating."
>         -- Boss Tweed
> 
> ----- Original Message -----
> From: "Oded Arbel" <oded@geek.co.il>
> To: "Linux-IL" <linux-il@linux.org.il>
> Sent: Monday, October 22, 2001 8:19 PM
> Subject: Sticky premissions.
> 
> 
> 
>>Hi list.
>>
>>I have here a public directory which I want all users to be able to read
>>
> and
> 
>>write to - but not only to things that they created : I want a user to
>>
> have
> 
>>full read/write access to any file under that directory that was created
>>
> by
> 
>>another user of the "users" group.
>>I'm wandering if that is possible to do using some sort of sticky bit
>>somewhere ?
>>
>>Oded
>>
>>--
>>"Idiocy is the essence of the male mind."
>> -- Calvin and Hobbes
>>
>>
>>
>>=================================================================
>>To unsubscribe, send mail to linux-il-request@linux.org.il with
>>the word "unsubscribe" in the message body, e.g., run the command
>>echo unsubscribe | mail linux-il-request@linux.org.il
>>
>>
>>
> 
> 
> =================================================================
> To unsubscribe, send mail to linux-il-request@linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request@linux.org.il
> 
> 
> 



=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il