AW: [Samba] file locking options in smb.conf
mueller at tropenklinik.de
Wed May 6 09:02:32 GMT 2009
It is the same problem with me. I run samba 3.2.8 on suse 10.2 .
Now and then we have trouble concerning the home directories
writing Word and Excel files.
My smb.conf for homes:
##mit dem preexec befehl wird das userverzeichnis erstellt
root preexec=/windows/./userverzeichnis %U
root postexec=/windows/./bshares %U
force group= "Domain Users"
create mask= 0750
When the error occurs the word or excel file is suddenly owned mask
administrators. And the user changed it cannot save it any more. There are
from this moment on many temp files around this files.
Only after deleting the admins mask ownership, and the temp files by hand
the word, excel files will be
On our old samba 2.2.7 still running we do not have this trouble (the same
windows versions, the same office versions!!!).
EDV Daniel Müller
Tel.: 07071/206-463, Fax: 07071/206-499
eMail: mueller at tropenklinik.de
Von: samba-bounces+mueller=tropenklinik.de at lists.samba.org
[mailto:samba-bounces+mueller=tropenklinik.de at lists.samba.org] Im Auftrag
von Anoop P.A.
Gesendet: Mittwoch, 6. Mai 2009 08:36
An: Volker.Lendecke at SerNet.DE
Cc: samba at lists.samba.org
Betreff: RE: [Samba] file locking options in smb.conf
Any body implemented cross protocol file locking before? Any pointer
will help me a lot
CIFS -> CIFS locking is not working as expected. It failed for me in
1. Opened a share using browser in Win XP machine.
2. Copied a word document (*.doc) to share.
3. Mounted CIFS share in a Ubuntu (8.04 LTS desktop).
4. Opened word document from Ubuntu using openoffice 2.4
5. Tried to open same file in Win XP but it didn't open and got error
message "No proper file permission" (I expect word document to open in
read only mode).
However if I open document first in Win XP and then using Open office
working as expected i.e. Document getting opened in read only mode.
> -----Original Message-----
> From: Volker Lendecke [mailto:Volker.Lendecke at SerNet.DE]
> Sent: Tuesday, May 05, 2009 5:19 PM
> To: Anoop P.A.
> Cc: samba at lists.samba.org
> Subject: Re: [Samba] file locking options in smb.conf
> On Tue, May 05, 2009 at 04:27:30AM -0700, Anoop P.A. wrote:
> > Hi Volker,
> > Thanks for the reply.
> > I want basic file locking work as expected. ( i.e. I want to prevent
> files from getting corrupted while shared across multiple platforms).
> > If some file is opened writing in one client, other clients should
> be able to write in to it.
> > My server failing in many scenarios, I could explain one of the
> as follows.
> > 1. Opened a share using browser in Win XP machine.
> > 2. Mounted same share in a Linux machine through nfs.
> > 3. Initiated a 1 GB file transfer to share in windows
> > 4. Same time tried to copy a file with same name in nfs share.It
> to overwrite existing file( I expect it not to start copy as write
> that file is being obtained by CIFS client)
> > 5. After a while both the transfers finished. MD5SUM showed
> file got corrupted.
> No way you will achieve this cross-protocol. Unix just does
> not know how to lock a complete file like Windows/CIFS does
> using share modes. Your only chance is to only use Samba and
> a cifs client file system and ditch NFS and local file
To unsubscribe from this list go to the following URL and read the
More information about the samba