RE: chattr immutable

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

 



> -----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.


--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux