Bug 10592 - OSX 10.9.2, samba 4.1.6-Ubuntu vs Microsoft Office 2011 and Read-Only files
OSX 10.9.2, samba 4.1.6-Ubuntu vs Microsoft Office 2011 and Read-Only files
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services
4.1.6
x64 Linux
: P5 major
: ---
Assigned To: Ralph Böhme
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-06 04:55 UTC by tanner
Modified: 2016-02-02 11:18 UTC (History)
4 users (show)

See Also:


Attachments
server logs and tcpdump capture traces. (968.00 KB, application/x-gzip)
2014-05-06 04:55 UTC, tanner
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description tanner 2014-05-06 04:55:45 UTC
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
Comment 1 tanner 2014-05-15 20:04:39 UTC
Patched OSX to 10.9.3 and same behavior as exhibited in 10.9.2.
Comment 2 Kyriacos Georgiou 2014-08-19 10:30:36 UTC
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...