Created attachment 9905 [details] server logs and tcpdump capture traces. Initial documented on the mailing list at https://lists.samba.org/archive/samba/2014-May/181078.html Upgraded from samba 3.6.20 on gentoo to samba 4.1.6 on Ubuntu Trusty. Since the upgrade all attempts to open Microsoft Office files results in the file being opened Read-Only. Found multiple posts from multiple sites dealing with similar problems. http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macword/files-read-only-on-linux-samba-fileshare-how-do-i/b1e3779a-8213-4378-976a-921400418446 https://groups.google.com/forum/#!topic/linux.samba/rELv_EUv0UU https://lists.samba.org/archive/samba/2011-January/160316.html http://www.linuxquestions.org/questions/linux-networking-3/ms-office-files-open-in-read-only-mode-from-samba-share-881172/ But none of the solutions or work-arounds fixed the problem. Other files open fine. Just Microsoft Office files open Read-Only. Any recommendations? Here's my configuration. [global] netbios aliases = staff workgroup = STAFFERS local master = yes domain master = yes preferred master = yes os level = 31 server string = testing security = user encrypt passwords = true obey pam restrictions = yes syslog = 0 log file = /var/log/samba/%m.log max log size = 0 socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192 max xmit = 16384 # NO roaming profiles http://melecio.org/node/5 logon path = logon home = logon script = %U.bat template shell = /bin/bash template homedir = /home/%D/%U client use spnego = yes client ntlmv2 auth = yes restrict anonymous = 2 unix extensions = no load printers = no printing = bsd printcap name = /dev/null disable spoolss = yes [foo] comment = Testing path = /var/samba/foo writeable = yes veto files = /._*/.DS_Store/ delete veto files = yes create mask = 0664 force create mode = 0664 directory mask = 2775 force directory mode = 2775
Patched OSX to 10.9.3 and same behavior as exhibited in 10.9.2.
I have a similar issue with Samba 4.1-11 on CentOS. MS Office products cannot a save/overwrite new/existing files on the samba share. OS (server): CentOS release 6.2 (Final) OS (client): Windows 7 Samba version: samba-4.1.11 [smbtest] comment = samba test workspace path = /netdisk2/smbtest valid users = @office-staff force group = office-staff browseable = yes writeable = yes read only = no guest ok = no directory mask = 2770 force directory mode = 2770 create mask = 2775 force create mode = 2775 Hope that helps...
https://superuser.com/a/1439692/1039531 Found this issue too, the environment is macOS 10.14.4 and Office 2011, and docx files are placed on a remote NAS. When macOS opening the docx files on remote NAS through AFP mount or SMB mount, Office 2011 would prompt a windows said: > This file is locked for editing. > Locked by: another user > Filename: test.docx > > You can open the file as read-only Found that macOS disable Finder preview function could way around this issue. 3 steps as following: 1. macOS > Finder > View > Click 'Hide Preview'. 2. macOS > Finder > View > Show View Options > unchecked checkbox 'Show icons' and unchecked 'Show icon preview'. There is a button 'Use as Defaults' at the bottom, click it if required. 3. macOS disconnect the SMB/AFP mount first; then connect SMB/AFP mount again.
(In reply to Jones Syue from comment #3) samba version is 4.4.16.
if you reexport a mounted cifs or afp share, then any issues like this are not a big surprise. Please reopen the bug if this also happens with recent samba versions and a local filesystem. For finding a better solution than the reexport, you might consult a samba support option as listed at https://www.samba.org/samba/support/globalsupport.html