[Samba] Big problem with file permission !!
Peer-Joachim Koch
pkoch at bgc-jena.mpg.de
Thu Apr 17 07:03:26 GMT 2003
Hi,
thanks for the answer. Yes, it solved the problem.
Bye, Peer
--On Mittwoch, April 16, 2003 13:31:43 -0500 Michael Heironimus
<mkh01 at earthlink.net> wrote:
> 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
>
Mit freundlichem Gruss
Peer-Joachim Koch
_________________________________________________________
Max-Planck-Institut fuer Biogeochemie
Dr. Peer-Joachim Koch
Winzerlaer Str.10 Telefon: ++49 3641 57 6705
D-07745 Jena Telefax: ++49 3641 57 7864
More information about the samba
mailing list