RE: chattr immutable

"Dermot Paikkos" <[email protected]> Tue, 17 Feb 2009 11:10:27 +0000
Newsgroups org.kernel.vger.linux-admin
Message-ID <L56FC01500ECA49f0AE13D324C8D8FA24.1234868994.earth.sciencephoto.co.uk@MHS>
> -----Original Message-----
> 
> mkdir /opt/my_share
> chmod 1777 /opt/my_share
> mkdir /opt/my_share/sub_share
> chmod 1777 /opt/my_share/sub_share
> 
> Note that I have also added the restricted deletion bit to the
> sub_share. If you want to let users delete each others files inside
> that directory, you can omit the 1 at the beginning (777).
> 
> I haven't tested any of this over a samba share, but I don't see why 
it
> wouldn't work there too.
> 
> Hope I have understood you correctly.

Yes I did and it achieves exactly what I want. The top level folder 
(within the share) cannot be renamed, deleted or moved but everyone can 
write to the folder. 

I have always had the "traditional view" of the sticky bit. I thought it 
was was just for excutable. Wikpedia has a nice "usage" section on 
Sticky bit. 

Thanx Adam and Glynn. That was really useful.
Dp.