Hi,
We have a similar problem and I still haven't figured it out. In our
case, Office insists on writing files to a "home" samba share with
permissions set to 0444. When writing a file to a share on a Windows
machine, there is no problem. Notepad and any other Windows applications
write files with proper permissions (in our case, 0644).
Oddly enough, saving Office files on other samba shares with identical
parameters in smb.conf doesn't exhibit the same behaviour, only when
Office writes a file to the home share do we get this problem with them
being read-only. I'm currently at a loss....
If you can solve this, please email me or post to the list.
Thanks,
--john campbell
On Thu, 2003-10-16 at 03:18, Andreas Unterkircher wrote:> Hello!
>
> I have a strange probleme with samba (debian sid, 3.0final) and
> Microsoft Office (in moment 97 is in use, but the same error
> with Office XP). I didn't found something in the Mailing-Lists-Archive,
> so I simple ask - Samba is used as PDC with Domain-Logons.
>
> When creating a new Document in Microsoft Word and try to save
> it on a samba share, we always get an error - Word says, that
> saving this file failed (no more information), than it asks, if we
> would try to safe again, we click on Yes and than it works!?!?
>
> Debugging is fully turned on (level 10), but we only see, that samba
> says, writing ist ok, but in the first try, it hasn't saved this file!
>
> This happens only with the MS Office. I also tried it with (as example)
> notepad to save a simple txt-file and this makes no problem!
>
> If found some informations in the Mailing-List and enabled following
> things:
> strict allocate = Yes
> strict locking = Yes
> strict sync = Yes
>
> But that hasn't solved the Problem.
>
> Here is a snap of our smb.conf
>
> # Global parameters
> [global]
> workgroup = OURSMBDOMAIN
> security=user
> name resolve order=wins bcast
> server string = %h server (Samba %v)
> interfaces = 192.168.193.0/24
> encrypt passwords = true
> unix password sync = Yes
> log level = 10
> time server = Yes
> keepalive = 30
> guest account = nobody
> socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096
> SO_RCVBUF=4096
> domain admin group = root, Administrator, @smbusers
> add user script = /usr/sbin/useradd -g 100 -d /dev/null -s
> /bin/false -M %u
> logon path = \\%N\profiles\%U
> logon script = %U.bat
> domain logons = Yes
> os level = 64
> preferred master = True
> domain master = True
> wins support = Yes
> printing = cups
> strict allocate = Yes
> strict locking = Yes
> strict sync = Yes
> unix charset = 850
>
> [office]
> comment = Office
> path = /mnt/shares/office
> public = no
> force group = +office
> force create mode = 2510
> force directory mode = 2510
> security mask = 0267
> directory security mask = 0267
> writeable = yes
> create mode = 2770
> directory mode = 2770
> valid users = @office
>
>
> Thank's for any information!
>
> Greetings, Andreas
>
>
>
>
> Andreas Unterkircher
> CUBiT IT Solutions GmbH
>
> Albertgasse 43
> A-1080 Wien
> Tel: +43-1-7189880-0
> Fax: +43-1-7189880-11
>
> andreas.unterkircher@cubit.at
> http://www.cubit.at