[Samba] Cannot disable renaming/deleting of files?

Vesa Jääskeläinen jaaskela at ksao.fi
Fri Dec 17 12:44:41 GMT 2004


Hi,

I am having problem preventing renaming and deleting files owned by 
someone else. Idea is to have directory where some people can save files 
and only admins in that share can read files.

Now the problems is that users must be able to write those files and 
directory permissions need to have write access and trying to restrict 
file access using "create mode = 700" works fine for protecting how 
files can be read. But users can still rename and remove files.

Example file structure:

\\server\sharename\
->dir1  [users can write files here, but only read their own]
->dir2  --""--
->dir2\subdir1 [users can also write files here, but only read their own]

Here is share configuration:

[sharename]
         comment = <comment>
         path = /path/to/share
         public = no
         writable = yes
         create mode = 700
         directory mode = 777
         write list = @Users
         admin users = @ShareAdmins
         valid users = @ShareAdmins @Users
         available = yes
         browseable = yes
         guest only = no
         only user = no

Thanks,
Vesa Jääskeläinen


More information about the samba mailing list