[plug] Samba permissions issue

Matt Kemner zombie at penguincare.com.au
Wed Oct 20 15:54:10 WST 2004


On Wed, 20 Oct 2004, quoth Ben Jensz:

> I can create a file in the
> share owned by root and with 0600 permissions (rw owner only) and group3
> can still delete it.

File deletion requires write permission on the directory the file is in,
not the file itself - because what you are really doing is removing the
file's entry in the directory. This is a UNIX permission "feature",
nothing to do with Samba.

However, (under Linux at least) if you set the "sticky" bit (chmod +t or
something like chmod 1777) on the directory, then only a file's owner can
delete/rename files - which is why most distributions set the sticky bit
on /tmp and /var/mail

Regards,

 - Matt




More information about the plug mailing list