Bernard Dautrevaux
2010-Feb-04 11:05 UTC
[Samba] Word open all DOC files read-only on Samba shares
Hello all, I just switched my old server to a new machine, upgrading the Samba server from 3.0.1 to 3.4.5 (-55.fc12). When Word (Office2003) tries to open a *.DOC file, it takes a very long time (about 10 seconds) then the file is opened Read-Only... If I try to open a *.RTF file it opens very fast, and I can write it... I'm scratching my head for the whole day and what I've discovered is below: Only *.doc files are concerned; *.rtf files open perfectly in MSWord The problem seems to not exist on Office-2007, but only(?) on Office-2003 (but of course its a different PC, although a very similar one) The permissions are correct on Linux to give r/w access to the file and this is correctly understood by Samba anyone in the correct group can overwrite it freely from windows explorer (when permissions are set to -rw-rw----) non-Office2003 tools (like OpenOffice) can freely work on the file Office2003 Word wait 10 seconds then open DOC files Read-Only (even when permissions are -rwxrwxrwx) The exact same setup on Samba 3.0.1 works like a charm, problems occur when switching to Samba-3.4.5 I really need to found a solution as I can't use a workaround like copying the files back and forth to edit them: Word is in fact launched from another program, using paths stored in a database... Note that when starting Word through the other tool, I got a warning saying the file is already in use and allows to either open it Read-Only or open a copy of the file... This used to work correctly on Samba-3.0.1 I've looked in the archives but I only find one reference to the same problem, and I do not see any solution to it. I've inserted the globals and one share definition at the end of the message. Thanks in advance, Bernard ================================================== [global] workgroup = ACSYS server string = Serveur Acsys obey pam restrictions = Yes guest account = pcguest enable privileges = No pam password change = Yes passwd program = /usr/bin/passwd %u unix password sync = Yes lanman auth = Yes client lanman auth = Yes client plaintext auth = Yes log file = /var/log/samba/%m.log debug hires timestamp = Yes debug pid = Yes debug uid = Yes time server = Yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 hostname lookups = Yes add machine script = /usr/sbin/useradd -d /dev/null -g machines -s /bin/false -M %u logon script = logon.cmd logon path = \\%L\profile\%U logon drive = H: logon home = \\%L\%U domain logons = Yes os level = 40 lm announce = Yes preferred master = Yes domain master = Yes wins support = Yes ldap group suffix = (uid=%u) ldap ssl = no default service = Public host msdfs = No idmap uid = 10000-20000 idmap gid = 1000-2000 winbind enum users = Yes winbind enum groups = Yes winbind nested groups = No create mask = 0740 directory mask = 0750 nt acl support = No case sensitive = No map readonly = permissions blocking locks = No dos filetimes = No [Administration] path = /home/administration valid users = @admin force user = kazuro force group = admin read only = No create mask = 0760 directory mask = 0770 access based share enum = Yes volume = Administration
Bernard Dautrevaux
2010-Feb-08 10:46 UTC
[Samba] Problem : when Word-2003 opens a *.DOC fileon a Samba share it gives only read-only access
Hello all, I apologize for posting again my problem, but I added some information on my problem which is very annoying and already have me spend almost three days without any success, trying all the possible changes I can imagine on my setup. Since I switched my old server to a new machine, upgrading the Samba server from 3.0.1 to 3.4.5 (-55.fc12), I get a strange problem: When Word (Office2003) tries to open a *.DOC file, it takes a very long time (more than 10 seconds) then the file is opened Read-Only... If I try to open a *.RTF file it opens very fast, and I can write it... If I try to open the same *.DOC file under OpenOffice, it opens fast and I can write too. I'm scratching my head for several days now and what I've discovered is below: Only *.doc files are concerned, when opened using Word2003 The problem seems to no more exist on Office-2007 (but of course its a different PC, although a very similar one) The permissions are correct on Linux to give r/w access to the file and this is correctly understood by Samba anyone in the correct group can overwrite it freely from windows explorer (when permissions are set to -rw-rw----) non-Office2003 tools (like OpenOffice) can freely work on the file Office2003 Word wait 10 seconds then open DOC files Read-Only (even when permissions are -rwxrwxrwx) The exact same setup on Samba 3.0.1 works like a charm, problems occur when switching to Samba-3.4.5 I really need to found a solution as I can't use a workaround (like copying the files back and forth to edit them, or using OpenOffice): Word is in fact launched from another program, using paths stored in a database... Note that when starting Word through the other tool, I sometimes got a warning saying the file is already in use; then Word allows to either open it Read-Only or open a copy of the file... This used to work correctly on Samba-3.0.1 I've looked in the archives but I only find one reference to a similar problem, and I do not see any solution to it. I've inserted the globals and one share definition at the end of the message, as well as a Linux "ls -l" of a directory where the problem occurs (athough it happens on all directories of all shares...). The Test directory was created from a Windows workstation, as well as the Test.c file (by New --> Microsoft Word Document); then when trying to open this word document from the same workstation, using the same Samba connection, I get Word to open the file in Read-Only mode... If I type something in it and try to save it I can't even save it under another name as (after about 10 seconds) I get an error message saying: Can't save; memory or disk space overflowed (or something like that, the message is in french and says: "Impossible d'enregistrer; m?moire ou espace disque insuffisant" ). Of course I have plenty of free memory (both on the workstation and the serveur) and plenty of available disk space... Thanks in advance, Bernard ================================================== [global] workgroup = ACSYS server string = Serveur Acsys obey pam restrictions = Yes guest account = pcguest enable privileges = No pam password change = Yes passwd program = /usr/bin/passwd %u unix password sync = Yes lanman auth = Yes client lanman auth = Yes client plaintext auth = Yes log file = /var/log/samba/%m.log debug hires timestamp = Yes debug pid = Yes debug uid = Yes time server = Yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 hostname lookups = Yes add machine script = /usr/sbin/useradd -d /dev/null -g machines -s /bin/false -M %u logon script = logon.cmd logon path \\%L\profile\%U logon drive = H: logon home = \\%L\%U domain logons = Yes os level = 40 lm announce = Yes preferred master = Yes domain master = Yes wins support = Yes ldap group suffix = (uid=%u) ldap ssl = no default service = Public host msdfs = No idmap uid = 10000-20000 idmap gid = 1000-2000 winbind enum users = Yes winbind enum groups = Yes winbind nested groups = No create mask = 0740 directory mask = 0750 nt acl support = No case sensitive = No map readonly = permissions blocking locks = No dos filetimes = No [Administration] path = /home/administration valid users = @admin force user = kazuro force group = admin read only = No create mask = 0760 directory mask = 0770 access based share enum = Yes volume = Administration ====================================================== [root at rigel administration]# ll -a . total 5636 drwxrwxr-x 18 administration admin 4096 f??vr. 5 14:38 . drwxr-xr-x 52 root root 4096 f??vr. 1 13:32 .. drwxrwx--- 2 kazuro admin 4096 mars 6 2008 CIEL -rwxrw---- 1 kazuro admin 5680640 janv. 31 2008 Combined.xls drwxrwx--- 6 kazuro admin 4096 mars 12 2007 Commercial drwxrwx--- 2 kazuro admin 4096 d??c. 29 2005 CONTACTS TIMESYS drwxrwx--- 2 kazuro admin 4096 f??vr. 1 2007 ITTIA drwxr-x--- 3 administration admin 4096 mai 12 2004 .kde drwx------ 3 administration admin 4096 oct. 1 09:00 mail drwxrwx--- 2 kazuro admin 4096 d??c. 29 2005 MALZIEU drwxrwx--- 2 kazuro admin 4096 d??c. 29 2005 MALZIEU- Dell drwxrwx--- 2 kazuro admin 4096 mars 31 2009 Pr??sentations_partenaires drwxrwx--- 2 kazuro admin 4096 oct. 2 2008 RTX-ARDENCE-INTERVALZERO drwxrwx--- 2 kazuro admin 4096 mars 6 2008 Scanesoft drwxrwx--- 2 kazuro admin 4096 avril 7 2008 SENSITIVE-OBJECT drwxrwx--- 2 kazuro admin 4096 d??c. 12 2007 ST2 drwxrwx--- 2 kazuro admin 4096 f??vr. 5 14:38 Test drwxrwx--- 3 kazuro admin 4096 sept. 18 2006 TIMESys drwxr-x--- 2 administration admin 4096 mai 12 2004 .xemacs [root at rigel administration]# ll -a Test total 20 drwxrwx--- 2 kazuro admin 4096 f??vr. 5 14:38 . drwxrwxr-x 18 administration admin 4096 f??vr. 5 14:38 .. -rwxrw---- 1 kazuro admin 10752 f??vr. 5 14:38 Test.doc [root at rigel administration]# # Here from windows I try to edit Test.doc and save it as Test2.doc [root at rigel administration]# ll -a Test total 20 drwxrwx--- 2 kazuro admin 4096 f??vr. 5 14:43 . drwxrwxr-x 18 administration admin 4096 f??vr. 5 14:38 .. -rwxrw---- 1 kazuro admin 0 f??vr. 5 14:42 Test2.doc -rwxrw---- 1 kazuro admin 10752 f??vr. 5 14:38 Test.doc [root at rigel administration]# ======================================================-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2666 - Release Date: 02/03/10 20:35:00