No one replied to me .....
But, in case anyone like me searches archives in vain for this problem,
the answer is turn off oplocks on the share that the NT client wishes to
save Office files to.
Don't really understand why this resolves the snag and I guess the
performance will take a theoretical hit. But with 20 client machines on a
100Meg LAN this is not really a problem.
Phil Daintree
Dux Industries Ltd
----- Original Message -----
From: "Phil Daintree" <phil@dux.co.nz>
To: "Samba List" <samba@lists.samba.org>
Sent: Thursday, February 14, 2002 12:03 PM
Subject: MS Office files on NT client
> Samba has worked well for several years - upgraded to 2.2 with Suse 7.2 6
> months ago all well and happy.
>
> An NT client - logged on as Administrator - that was working with Samba
for> over a year had its share changed from one user to another - using clear
> text passwords, the machine was also tidied up. It connects to Samba with
> the new user's log on and password and NT explorer sees the shares and
can
> delete and copy/move files around. It can also create notepad and wordpad
> files but cannot create MS Office 97 files any more?????!! - instead it
> creates a whole lot of empty temporary files on the share and an empty
file> of the Office file that was supposed to be created there.
>
> Anyone any ideas ?
>
> I have re-installed Office and applied service patches 1 and 2b - before
> even looking at this. (Office saves files fine to other windows shares and
> the local disk :-) For some reason this user cannot get permission to
write> these files. What's the difference between office files (Access, Excel,
> Word) and notepad/wordpad files??!!
>
> Extracts from the log debuglevel=2
>
> [2002/02/14 11:24:39, 2] smbd/reply.c:reply_sesssetup_and_X(960)
> Defaulting to Lanman password for kim
> [2002/02/14 11:24:39, 1] smbd/service.c:make_connection(638)
> ntserver (192.168.2.9) connect to service shared as user kim (uid=514,
> gid=100) (pid 26874)
> [2002/02/14 11:24:39, 2] smbd/dosmode.c:unix_mode(61)
> unix_mode(.) inheriting from .
> [2002/02/14 11:24:39, 2] smbd/dosmode.c:unix_mode(69)
> unix_mode(.) inherit mode 40776
> [2002/02/14 11:24:41, 2] smbd/dosmode.c:unix_mode(61)
> unix_mode(Temp) inheriting from .
> [2002/02/14 11:24:41, 2] smbd/dosmode.c:unix_mode(69)
> unix_mode(Temp) inherit mode 40776
> [2002/02/14 11:24:45, 2] smbd/dosmode.c:unix_mode(61)
> unix_mode(Temp) inheriting from .
> [2002/02/14 11:24:45, 2] smbd/dosmode.c:unix_mode(69)
> unix_mode(Temp) inherit mode 40776
> [2002/02/14 11:24:45, 0] smbd/nttrans.c:call_nt_transact_ioctl(1776)
> call_nt_transact_ioctl: Currently not implemented.
> [2002/02/14 11:24:47, 2] smbd/dosmode.c:unix_mode(61)
> unix_mode(Temp/2001Carde.doc) inheriting from Temp
> [2002/02/14 11:24:47, 2] smbd/dosmode.c:unix_mode(69)
> unix_mode(Temp/2001Carde.doc) inherit mode 40777
> [2002/02/14 11:24:47, 2] smbd/open.c:open_file(216)
> kim opened file Temp/2001Carde.doc read=Yes write=Yes (numopen=3)
> [2002/02/14 11:24:47, 2] smbd/close.c:close_normal_file(205)
> kim closed file Temp/2001Carde.doc (numopen=2)
> [2002/02/14 11:24:47, 2] smbd/dosmode.c:unix_mode(61)
> unix_mode(Temp/2001Carde.doc) inheriting from Temp
> [2002/02/14 11:24:47, 2] smbd/dosmode.c:unix_mode(69)
> unix_mode(Temp/2001Carde.doc) inherit mode 40777
> [2002/02/14 11:24:47, 2] smbd/open.c:open_file(216)
> kim opened file Temp/2001Carde.doc read=Yes write=No (numopen=3)
> [2002/02/14 11:24:47, 2] smbd/close.c:close_normal_file(205)
> kim closed file Temp/2001Carde.doc (numopen=2)
> [2002/02/14 11:24:47, 2] smbd/dosmode.c:unix_mode(61)
> unix_mode(Temp/2001Carde.doc) inheriting from Temp
> [2002/02/14 11:24:47, 2] smbd/dosmode.c:unix_mode(69)
> unix_mode(Temp/2001Carde.doc) inherit mode 40777
> [2002/02/14 11:24:47, 2] smbd/open.c:open_file(216)
> kim opened file Temp/2001Carde.doc read=Yes write=Yes (numopen=3)
> [2002/02/14 11:24:47, 2] smbd/dosmode.c:unix_mode(61)
> unix_mode(Temp/~$01Carde.doc) inheriting from Temp
> [2002/02/14 11:24:47, 2] smbd/dosmode.c:unix_mode(69)
> unix_mode(Temp/~$01Carde.doc) inherit mode 40777
> [2002/02/14 11:24:47, 2] smbd/open.c:open_file(216)
> kim opened file Temp/~$01Carde.doc read=No write=Yes (numopen=4)
> [2002/02/14 11:24:47, 2] smbd/close.c:close_normal_file(205)
> kim closed file Temp/~$01Carde.doc (numopen=3)
> [2002/02/14 11:24:47, 2] smbd/dosmode.c:unix_mode(61)
> unix_mode(Temp/~$01Carde.doc) inheriting from Temp
> [2002/02/14 11:24:47, 2] smbd/dosmode.c:unix_mode(69)
> unix_mode(Temp/~$01Carde.doc) inherit mode 40777
> [2002/02/14 11:24:47, 2] smbd/open.c:open_file(216)
> kim opened file Temp/~$01Carde.doc read=Yes write=No (numopen=4)
> [2002/02/14 11:24:47, 2] smbd/close.c:close_normal_file(205)
> kim closed file Temp/~$01Carde.doc (numopen=3)
> [2002/02/14 11:24:47, 2] smbd/dosmode.c:unix_mode(61)
> unix_mode(Temp/~$01Carde.doc) inheriting from Temp
> [2002/02/14 11:24:47, 2] smbd/dosmode.c:unix_mode(69)
> unix_mode(Temp/~$01Carde.doc) inherit mode 40777
> [2002/02/14 11:24:47, 2] smbd/open.c:open_file(216)
> kim opened file Temp/~$01Carde.doc read=No write=Yes (numopen=4)
> [2002/02/14 11:24:47, 2] smbd/close.c:close_normal_file(205)
> kim closed file Temp/~$01Carde.doc (numopen=3)
> [2002/02/14 11:24:47, 2] smbd/dosmode.c:unix_mode(61)
> unix_mode(Temp/2001Carde.doc) inheriting from Temp
> [2002/02/14 11:24:47, 2] smbd/dosmode.c:unix_mode(69)
> unix_mode(Temp/2001Carde.doc) inherit mode 40777
> [2002/02/14 11:24:47, 2] smbd/open.c:open_file(216)
> kim opened file Temp/2001Carde.doc read=Yes write=No (numopen=4)
> [2002/02/14 11:24:48, 2] smbd/close.c:close_normal_file(205)
> kim closed file Temp/2001Carde.doc (numopen=3)
> [2002/02/14 11:24:48, 2] smbd/dosmode.c:unix_mode(61)
> unix_mode(Temp/2001Carde.doc) inheriting from Temp
> [2002/02/14 11:24:48, 2] smbd/dosmode.c:unix_mode(69)
> unix_mode(Temp/2001Carde.doc) inherit mode 40777
> [2002/02/14 11:24:48, 2] smbd/open.c:open_file(216)
> kim opened file Temp/2001Carde.doc read=Yes write=No (numopen=4)
> [2002/02/14 11:24:48, 2] smbd/close.c:close_normal_file(205)
> kim closed file Temp/2001Carde.doc (numopen=3)
> [2002/02/14 11:24:59, 2] smbd/dosmode.c:unix_mode(61)
> unix_mode(Temp/2001Carde1.doc) inheriting from Temp
> [2002/02/14 11:24:59, 2] smbd/dosmode.c:unix_mode(69)
> unix_mode(Temp/2001Carde1.doc) inherit mode 40777
> [2002/02/14 11:24:59, 2] smbd/open.c:open_file(216)
> kim opened file Temp/2001Carde1.doc read=Yes write=No (numopen=3)
> [2002/02/14 11:24:59, 2] smbd/close.c:close_normal_file(205)
> kim closed file Temp/2001Carde1.doc (numopen=2)
> [2002/02/14 11:24:59, 2] smbd/dosmode.c:unix_mode(61)
> unix_mode(Temp/2001Carde1.doc) inheriting from Temp
> [2002/02/14 11:24:59, 2] smbd/dosmode.c:unix_mode(69)
> unix_mode(Temp/2001Carde1.doc) inherit mode 40777
> [2002/02/14 11:24:59, 2] smbd/open.c:open_file(216)
> kim opened file Temp/2001Carde1.doc read=Yes write=No (numopen=3)
> [2002/02/14 11:24:59, 2] smbd/close.c:close_normal_file(205)
> kim closed file Temp/2001Carde1.doc (numopen=2)
> [2002/02/14 11:24:59, 2] smbd/dosmode.c:unix_mode(61)
> unix_mode(Temp/2001Carde1.doc) inheriting from Temp
> [2002/02/14 11:24:59, 2] smbd/dosmode.c:unix_mode(69)
> unix_mode(Temp/2001Carde1.doc) inherit mode 40777
> [2002/02/14 11:24:59, 2] smbd/dosmode.c:unix_mode(61)
> unix_mode(Temp/fsaF.tmp) inheriting from Temp
> [2002/02/14 11:24:59, 2] smbd/dosmode.c:unix_mode(69)
> unix_mode(Temp/fsaF.tmp) inherit mode 40777
>
> and so on with '000s of these .tmp files
>
> The smb.conf file is
>
> [global]
> workgroup = DUX
> guest account = nobody
> keep alive = 30
> os level = 2
> debuglevel = 2
> kernel oplocks = false
> security = user
> log file = /var/log/smblog.%m
> printing = bsd
> printcap name = /etc/printcap
> load printers = yes
> socket options = TCP_NODELAY
> map to guest = Bad User
> interfaces = 192.168.2.50/255.255.255.0 127.0.0.1/255.0.0.0
> wins support = no
>
> [homes]
> comment = home-directory
> browseable = no
> read only = no
> create mode = 0750
> writeable = yes
>
> [shared]
> comment = Shared-Files
> guest ok
> inherit permissions = yes
> path = /home/shared
> read only = no
> public = yes
> create mask = 0777
> writable = yes
>
>
> Regards
> Phil Daintree
> Dux Industries Ltd Ph:+64 (04) 567 8900 Fax: +64 (04) 567 8904
>