[Pkg-samba-maint] Bug#408547: Office 2007 saves files as read only on samba shares

Robin Edgar red at tripany.com
Fri Jan 26 17:28:59 CET 2007


Package: samba
Version: 3.0.14a-3sarge2
Severity: important

I've been running the same configuration for a couple of years now,
and since I've upgraded to Office 2007, MS Word and MS Excel files
save to my samba shares as -r-------- even when they are opened as
being chmod 777. Files I create/edit using other editors or windows
explorer are put onto the share with the correct permissions.

My conf looks like this:
[global]
        workgroup = WG
        server string = WG machine
        netbios name = WG
        obey pam restrictions = Yes
        password server =
        passdb backend = smbpasswd
        encrypt passwords = true
        guest account = nobody
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n .
        smb passwd file = /etc/samba/smbpasswd
        log level = 2
        log file = /var/log/samba/log.%m
        max log size = 1000
        time server = Yes
        server signing = auto
        socket options = IPTOS_LOWDELAY TCP_NODELAY IPTOS_THROUGHPUT
        add machine script = /usr/sbin/adduser --ingroup machine
--system --home /dev/null --no-create-home --force-badname %u
        logon path =
        logon home =
        logon script = %Gnetlogon.bat
        domain logons = Yes
        preferred master = Yes
        domain master = Yes
        wins proxy = Yes
        wins support = Yes
        ldap ssl = no
        panic action = /usr/share/samba/panic-action %d
        hosts allow = 192.168.0.
        profile acls = Yes
        dos filetimes = Yes

[here]
        comment = here
        path = /export/home/here
        valid users = user1, user2
        valid users = @group
        force group = group
        read list = @group
        write list = @group
        read only = No
        force create mode = 0770
        create mask = 0770
        directory mask = 0770
        guest ok = No
        browseable = No  

In this I've never had 'force create mode' before, but adding it
hasn't helped.

[dump]
        comment = dump
        path = /export/home/dump
        valid users = @group1, @group2
        force group = group1
        read only = No
        create mask = 0770

Both shares will create new Office documents as being read only for
the user as well as saving over documents that were chmod 777 as 400,
but ONLY using MS Office 2007!

In the file logs for the connecting machine I get:
[2007/01/26 16:36:55, 2] smbd/open.c:open_file(245)
  user opened file here/filename.xls read=Yes write=No (numopen=2)

where write /should/ be 'Yes'. Upping loglevel to 3 gives me a huge
amount of data.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.25-cyberfront
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages samba depends on:
ii  debconf [debconf-2.0] 1.4.46             Debian configuration management sy
ii  libacl1               2.2.29-1.0.1       Access control list shared library
ii  libc6                 2.3.2.ds1-22sarge4 GNU C Library: Shared libraries an
ii  libcomerr2            1.37-2sarge1       common error description library
ii  libcupsys2-gnutls10   1.1.23-10sarge1    Common UNIX Printing System(tm) - 
ii  libkrb53              1.3.6-2sarge3      MIT Kerberos runtime libraries
ii  libldap2              2.1.30-8           OpenLDAP libraries
ii  libpam-modules        0.76-22            Pluggable Authentication Modules f
ii  libpam-runtime        0.76-22            Runtime support for the PAM librar
ii  libpam0g              0.76-22            Pluggable Authentication Modules l
ii  libpopt0              1.7-5              lib for parsing cmdline parameters
ii  logrotate             3.7-5              Log rotation utility
ii  netbase               4.21               Basic TCP/IP networking system
ii  samba-common          3.0.14a-3sarge2    Samba common files used by both th

-- debconf information:
  samba/nmbd_from_inetd:
* samba/run_mode: daemons
  samba/log_files_moved:
  samba/tdbsam: false
* samba/generate_smbpasswd: true




More information about the Pkg-samba-maint mailing list