TSZ wrote:
Michael Gasch napisaĆ(a):
and you can solve this with the sticky bit
http://docsrv.sco.com:507/en/OSAdminG/ssC.stickydirs.html
you could also try to play with "map read only (S)" parameter.
Thank you for your help and link. I know the "sticky bit", but I don't
know how to implement it for new files created in folder for everyone.
I've tried with the "sticky bit" for this folder and create mask =
4555, but it doesn't work.
Jeremy Allison wrote:
On Sat, Jul 01, 2006 at 12:20:42AM +0200, TSZ wrote:
Hello,
I am beginner of Samba, but today I have made update of Samba to
RC3. I have two users:root and tomek. tomek is in linux groups:
smbadmins, smbusers and nothing more. There is a folder for
everyone and file made by the root in it:
total 4 -rw------- 1 root root 1195 Jul 1 00:11 group.txt
User tomek is not able to read the file, but is able to delete it,
why? I have no entries in group map.
Because in UNIX, permission to delete a file is granted by the
permissions on the directory containing it, not on the file
itself.
From man chmod:
STICKY DIRECTORIES
When the sticky bit is set on a directory, files in that
directory may
be unlinked or renamed only by root or their owner. Without the
sticky
bit, anyone able to write to the directory can delete or rename
files.
The sticky bit is commonly found on directories, such as /tmp,
that are
world-writable.
What this means is the sticky bit has to be set on the parent directory,
which in your case is the directory being shared.
Regards, Doug
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba