[Samba] Office2K & file overwriting problems

Rob Naccarato rob at battery.dyndns.org
Mon Oct 20 20:13:59 GMT 2003


Using Office2K (Word & Excel) on NTWS 4.0 and samba 3.0.0 on Debian
Linux, kernel 2.4.21.

1. Run Excel and create a sheet. Save it to the Samba server. No problem.
2. Close the sheet and open a new one (File->New).
3. Try to save the new sheet over the first one and Excel gives the
error: "Cannot save the file. 'H:\test\Book1.xls' is not a valid file name."
4. Click 'ok' and click 'Save' in the still existing Save As window.
It replies: "The file Book1.xls already exists. Do you want to replace the
existing file?".
5. Click "yes" and it works.

So, in #3 above, it should have worked, but it didn't. No idea why.

I ran a log level 10 on this and found these entries:

[2003/10/20 15:51:16, 5] smbd/open.c:open_file_shared1(877)
  open_file_shared: create new requested for file test/Book1.xls and file already exists.
[2003/10/20 15:51:16, 5] smbd/files.c:file_free(385)
  freed files structure 9281 (1 used)
[2003/10/20 15:51:16, 10] smbd/trans2.c:set_bad_path_error(1785)
  set_bad_path_error: err = 17 bad_path = 0
[2003/10/20 15:51:16, 3] smbd/error.c:error_packet(94)
  error string = File exists
[2003/10/20 15:51:16, 3] smbd/error.c:error_packet(113)
  error packet at smbd/trans2.c(1797) cmd=162 (SMBntcreateX) NT_STATUS_NO_SUCH_FILE

The share definition:

[pub]
        path = /export/shares/public
        guest ok = no
        browseable = yes
        read only = no

Any ideas? Anyone?



More information about the samba mailing list