[Samba] How does smbd remove a file?

Joel Hammer Joel at HammersHome.com
Tue Aug 20 08:09:01 GMT 2002


Another poster has raised the question of preventing users from deleting
files which the users have saved to the share.

I thought that a create mask of 000 would do it, but even though they
can't read or write the files they have saved, they can still delete
them. Seems odd.

So, I thought there might be a way to prevent smbd from deleting files. I
can't find out how smbd actually does delete files, though. If I could,
a simple patch might solve this problem.

I did mess with clifile.c, and took out the subroutine for deleting a file
in there (Just changed the whole routine to return False;), recompiled,
and started up the new smbd, but, nothing seemed to have changed, even
thought clifile.o was updated.

Any insight appreciated.

Joel





More information about the samba mailing list