[Samba] Big problem with file permission !!

Michael Heironimus mkh01 at earthlink.net
Wed Apr 16 18:31:43 GMT 2003


On Wed, Apr 16, 2003 at 10:55:04AM +0200, Peer-Joachim Koch wrote:
> We want all users to have access to all files (default)
> and also allow to write into new created subfolders.
> So I can created a file "Test.txt" and write something in.
> Other people (from the groups) can open it, but not
> modifiy it (only "save as" will work). Seem's to be ok.
> 
> bash-2.03# ls -l AG_Technik/Peer.txt
> -rw-r-----   1 pkoch      AG_Techn        16 Apr 16 10:23 
> /mnt/Local/Groups/AG_Technik/Peer.txt
> ^^^^^^^^^^
> 
> BUT the other users can delete the files !! Even files with
> 600 permission can be deleted!

This is normal UNIX behavior, because deleting a file in UNIX is a write
operation on the directory, not on the file. It should work as you want
if you set the sticky bit on the directories (chmod +t).

-- 
Michael Heironimus


More information about the samba mailing list