[Samba] Deny mode when a SMB client opens a file

Frédéric Pierron frederic.pierron at thales-is.com
Wed Nov 26 15:52:30 GMT 2003


Hello,

In Samba-Developers-Guide, in chapter Deny Modes, is written : "When a
SMB clien opens a file it asks for a particular "deny mode" to be placed
on the file. These modes (DENY_NONE, DENY_READ, DENY_WRITE, DENY_ALL,
DENY_FCB and DENY_DOS) specify what actions should be allowed by anyone
else who tries to use the file at the same time. ...".
My clients are Linux Red Hat 7.3 PC. My server too. I use smbmount to
mount samba shares on my clients.
My question is : how can I choose the deny mode above when I open a file
?

smb_open doesn't seem to take it as a parameter. Neither smbmount. I
didn't see any smb.conf parameter look like that.
I'd just like to have locks on my files when I open them by C function
fopen from a Linux client.
Thank you for your help

Fred

PS : I have read Samba How-To. I didn't find any clue in it.




More information about the samba mailing list