Restricting delete on a share?

Simo Sorce simo.sorce at xsec.it
Mon Mar 10 19:00:12 GMT 2003


Jeremy,
the best way you can accomplish this is to build a custom VFS module.
It is really easy to build such module and you only need to intercept
and discard any unlink operation.

regards,
Simo.


On Mon, 2003-03-10 at 07:04, Jeremy M. Dolan wrote:
> Hi all.
> 
> Management here wants to restrict users from deleting files via Samba.
> NTFS is able to restrict just delete permissions, but still allow new
> files to be created and old ones changed. But I've come to the
> conclusion this isn't possible with standard UNIX file permissions,
> and unfortunately Red Hat does not yet support ACLs on any file
> systems.
> 
> In Samba's documentation I don't see any indication that a delete=no
> type option exists for shares, which surprised me. Am I missing
> something?
> 
> If not, is there perhaps a compile-time directive to disallow file
> deletion?
> 
> Otherwise, could someone perhaps point me to what I'd want to change
> in the source to accomplish this?
> 
> Thanks.
-- 
Simo Sorce - simo.sorce at xsec.it
Xsec s.r.l.
via Durando 10 Ed. G - 20158 - Milano
tel. +39 02 2399 7130 - fax: +39 02 700 442 399
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20030310/036b3d99/attachment.bin


More information about the samba-technical mailing list