[Samba] Windows 2K Offline files

Nick Gale nick at thegales.me.uk
Thu Nov 20 23:43:25 GMT 2003


Is anyone else experiencing problems with offline files and folders on Win
2K (SP4)? They are set up OK but when the Win2K machine goes off line and
files are modified it won't sync back when back on the network. Error
message  from the file sync on windows is 'Access denied' (on the server)
But I can easily do the overwrite manually so permissions are OK.

Below is the log (level 10) from Samba. (2.2.7 on Redhat 8)

Two things look odd - it is refering to a file \warehouse.xls when actually
this file is located on a share that appears to windows as
Server\share\warehouse.xls Is this significant?

It appears to be reporting that the file is not found, is this linked to the
point above.

It would look as if windows is trying to create the file that needs to be
written back under a different name, presumably it does this then deletes
the old file and renames the new??

I have googled to find answers on this and can find nothing significant, but
the thing is this used to work fine! It's only been a problem in  the last 6
months and now needs to be solved more than ever.

Your help on this would be much appreciated!

Thanks

Nick Gale


[2003/11/20 22:57:34, 5] smbd/nttrans.c:call_nt_transact_create(1188)
  call_nt_transact_create
[2003/11/20 22:57:34, 10] smbd/nttrans.c:map_create_disposition(399)
  map_create_disposition: Mapped create_disposition 0x5 to 0x12
[2003/11/20 22:57:34, 10] smbd/nttrans.c:get_filename_transact(288)
  get_filename_transact: data_offset = 53, data_len = 2, fname_len = 9
[2003/11/20 22:57:34, 10] smbd/nttrans.c:map_share_mode(525)
  map_share_mode: Mapped desired access 0x120196, share access 0x0, file
attributes 0x0 to open_mode 0x11
[2003/11/20 22:57:34, 5] smbd/filename.c:unix_convert(119)
  unix_convert called on file "\800000B0"
[2003/11/20 22:57:34, 3] lib/util.c:unix_clean_name(387)
  unix_clean_name [/800000B0]
[2003/11/20 22:57:34, 5] smbd/mangle_hash.c:is_8_3(368)
  Checking 800000B0 for 8.3
[2003/11/20 22:57:34, 5] smbd/statcache.c:stat_cache_add(132)
  stat_cache_add: Added entry 800000B0 -> 800000B0
[2003/11/20 22:57:34, 5] smbd/filename.c:unix_convert(188)
  conversion finished 800000B0 -> 800000B0
[2003/11/20 22:57:34, 3] smbd/dosmode.c:unix_mode(111)
  unix_mode(800000B0) returning 0744
[2003/11/20 22:57:34, 5] smbd/files.c:file_new(123)
  allocated file structure 1482, fnum = 5578 (1 used)
[2003/11/20 22:57:34, 10] smbd/open.c:open_file_shared1(782)
  open_file_shared: fname = 800000B0, share_mode = 11, ofun = 12, mode =
744, oplock request = 0
[2003/11/20 22:57:34, 8] lib/util.c:is_in_path(1145)
  is_in_path: 800000B0
[2003/11/20 22:57:34, 8] lib/util.c:is_in_path(1150)
  is_in_path: no name list.
[2003/11/20 22:57:34, 3] lib/util.c:unix_clean_name(387)
  unix_clean_name [800000B0]
[2003/11/20 22:57:34, 8] smbd/dosmode.c:dos_mode(123)
  dos_mode: 800000B0
[2003/11/20 22:57:34, 8] lib/util.c:is_in_path(1145)
  is_in_path: 800000B0
[2003/11/20 22:57:34, 8] lib/util.c:is_in_path(1150)
  is_in_path: no name list.
[2003/11/20 22:57:34, 8] smbd/dosmode.c:dos_mode(167)
  dos_mode returning a
[2003/11/20 22:57:34, 8] smbd/dosmode.c:dos_mode(123)
  dos_mode: 800000B0
[2003/11/20 22:57:34, 8] lib/util.c:is_in_path(1145)
  is_in_path: 800000B0
[2003/11/20 22:57:34, 8] lib/util.c:is_in_path(1150)
  is_in_path: no name list.
[2003/11/20 22:57:34, 8] smbd/dosmode.c:dos_mode(167)
  dos_mode returning a
[2003/11/20 22:57:34, 8] smbd/dosmode.c:dos_mode(123)
  dos_mode: 800000B0
[2003/11/20 22:57:34, 8] lib/util.c:is_in_path(1145)
  is_in_path: 800000B0
[2003/11/20 22:57:34, 8] lib/util.c:is_in_path(1150)
  is_in_path: no name list.
[2003/11/20 22:57:34, 8] smbd/dosmode.c:dos_mode(167)
  dos_mode returning a
[2003/11/20 22:57:34, 4] smbd/open.c:open_file_shared1(941)
  calling open_file with flags=0x1 flags2=0x240 mode=0744
[2003/11/20 22:57:34, 10] smbd/open.c:fd_open(53)
  fd_open: name 800000B0, flags = 0101 mode = 0744, fd = 23.
[2003/11/20 22:57:34, 2] smbd/open.c:open_file(245)
  nickgale opened file 800000B0 read=No write=Yes (numopen=1)
[2003/11/20 22:57:34, 10] smbd/open.c:open_file_shared1(1042)
  open_file_shared : share_mode = 11
[2003/11/20 22:57:34, 10] locking/locking.c:set_share_mode(692)
  set_share_mode: creating entry for file 800000B0. num_share_modes = 1
[2003/11/20 22:57:34, 10] locking/locking.c:print_share_mode_table(445)
  print_share_mode_table: share_mode_entry[0]: pid = 18423, share_mode =
0x11, desired_access = 0x120196, port = 0x0, type= 0x0, file_id = 68, dev =
0x341, inode = 3304013
[2003/11/20 22:57:34, 8] smbd/dosmode.c:dos_mode(123)
  dos_mode: 800000B0
[2003/11/20 22:57:34, 8] lib/util.c:is_in_path(1145)
  is_in_path: 800000B0
[2003/11/20 22:57:34, 8] lib/util.c:is_in_path(1150)
  is_in_path: no name list.
[2003/11/20 22:57:34, 8] smbd/dosmode.c:dos_mode(167)
  dos_mode returning a
[2003/11/20 22:57:34, 6] rpc_parse/parse_prs.c:prs_debug(60)
      000000 sec_io_desc sd data
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint16(559)
          0000 revision : 0001
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint16(559)
          0002 type     : 8004
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint32(588)
          0004 off_owner_sid: 00000078
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint32(588)
          0008 off_grp_sid  : 00000088
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint32(588)
          000c off_sacl     : 00000000
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint32(588)
          0010 off_dacl     : 00000014
[2003/11/20 22:57:34, 7] rpc_parse/parse_prs.c:prs_debug(60)
          000078 smb_io_dom_sid owner_sid
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
              0078 sid_rev_num: 01
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
              0079 num_auths  : 02
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
              007a id_auth[0] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
              007b id_auth[1] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
              007c id_auth[2] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
              007d id_auth[3] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
              007e id_auth[4] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
              007f id_auth[5] : 05
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint32s(815)
              0080 sub_auths : 00000020 00000220
[2003/11/20 22:57:34, 7] rpc_parse/parse_prs.c:prs_debug(60)
          000088 smb_io_dom_sid grp_sid
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
              0088 sid_rev_num: 01
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
              0089 num_auths  : 02
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
              008a id_auth[0] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
              008b id_auth[1] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
              008c id_auth[2] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
              008d id_auth[3] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
              008e id_auth[4] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
              008f id_auth[5] : 05
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint32s(815)
              0090 sub_auths : 00000020 00000221
[2003/11/20 22:57:34, 7] rpc_parse/parse_prs.c:prs_debug(60)
          000014 sec_io_acl dacl
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint16(559)
              0014 revision: 0003
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint16(559)
              0016 size     : 0064
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint32(588)
              0018 num_aces : 00000004
[2003/11/20 22:57:34, 8] rpc_parse/parse_prs.c:prs_debug(60)
              00001c sec_io_ace ace_list[00]:
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                  001c type : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                  001d flags: 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint16(559)
                  001e size : 0018
[2003/11/20 22:57:34, 9] rpc_parse/parse_prs.c:prs_debug(60)
                  000020 sec_io_access info
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint32(588)
                      0020 mask: 001f01ff
[2003/11/20 22:57:34, 9] rpc_parse/parse_prs.c:prs_debug(60)
                  000024 smb_io_dom_sid sid
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      0024 sid_rev_num: 01
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      0025 num_auths  : 02
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      0026 id_auth[0] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      0027 id_auth[1] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      0028 id_auth[2] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      0029 id_auth[3] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      002a id_auth[4] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      002b id_auth[5] : 05
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint32s(815)
                      002c sub_auths : 00000020 00000220
[2003/11/20 22:57:34, 8] rpc_parse/parse_prs.c:prs_debug(60)
              000034 sec_io_ace ace_list[01]:
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                  0034 type : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                  0035 flags: 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint16(559)
                  0036 size : 0018
[2003/11/20 22:57:34, 9] rpc_parse/parse_prs.c:prs_debug(60)
                  000038 sec_io_access info
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint32(588)
                      0038 mask: 00120089
[2003/11/20 22:57:34, 9] rpc_parse/parse_prs.c:prs_debug(60)
                  00003c smb_io_dom_sid sid
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      003c sid_rev_num: 01
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      003d num_auths  : 02
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      003e id_auth[0] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      003f id_auth[1] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      0040 id_auth[2] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      0041 id_auth[3] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      0042 id_auth[4] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      0043 id_auth[5] : 05
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint32s(815)
                      0044 sub_auths : 00000020 00000221
[2003/11/20 22:57:34, 8] rpc_parse/parse_prs.c:prs_debug(60)
              00004c sec_io_ace ace_list[02]:
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                  004c type : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                  004d flags: 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint16(559)
                  004e size : 0014
[2003/11/20 22:57:34, 9] rpc_parse/parse_prs.c:prs_debug(60)
                  000050 sec_io_access info
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint32(588)
                      0050 mask: 00120089
[2003/11/20 22:57:34, 9] rpc_parse/parse_prs.c:prs_debug(60)
                  000054 smb_io_dom_sid sid
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      0054 sid_rev_num: 01
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      0055 num_auths  : 01
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      0056 id_auth[0] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      0057 id_auth[1] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      0058 id_auth[2] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      0059 id_auth[3] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      005a id_auth[4] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      005b id_auth[5] : 01
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint32s(815)
                      005c sub_auths : 00000000
[2003/11/20 22:57:34, 8] rpc_parse/parse_prs.c:prs_debug(60)
              000060 sec_io_ace ace_list[03]:
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                  0060 type : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                  0061 flags: 03
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint16(559)
                  0062 size : 0018
[2003/11/20 22:57:34, 9] rpc_parse/parse_prs.c:prs_debug(60)
                  000064 sec_io_access info
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint32(588)
                      0064 mask: 001f01ff
[2003/11/20 22:57:34, 9] rpc_parse/parse_prs.c:prs_debug(60)
                  000068 smb_io_dom_sid sid
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      0068 sid_rev_num: 01
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      0069 num_auths  : 02
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      006a id_auth[0] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      006b id_auth[1] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      006c id_auth[2] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      006d id_auth[3] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      006e id_auth[4] : 00
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint8(530)
                      006f id_auth[5] : 05
[2003/11/20 22:57:34, 5] rpc_parse/parse_prs.c:prs_uint32s(815)
                      0070 sub_auths : 00000020 00000221
[2003/11/20 22:57:34, 10] smbd/posix_acls.c:set_nt_acl(2177)
  set_nt_acl: called for file 800000B0
[2003/11/20 22:57:34, 5] smbd/posix_acls.c:unpack_nt_owners(433)
  unpack_nt_owners: validating owner_sids.
[2003/11/20 22:57:34, 10] smbd/uid.c:sid_to_uid(628)
  sid_to_uid: winbind lookup for sid S-1-5-32-544 failed - trying local.
[2003/11/20 22:57:34, 3] smbd/posix_acls.c:unpack_nt_owners(449)
  unpack_nt_owners: unable to validate owner sid for S-1-5-32-544.
[2003/11/20 22:57:34, 10] locking/locking.c:del_share_entry(604)
  del_share_entry: num_share_modes = 1
[2003/11/20 22:57:34, 10] locking/locking.c:del_share_entry(609)
  del_share_entry: deleted share_mode_entry[0]: pid = 18423, share_mode =
0x11, desired_access = 0x120196, port = 0x0, type= 0x0, file_id = 68, dev =
0x341, inode = 3304013
[2003/11/20 22:57:34, 10] locking/locking.c:del_share_entry(617)
  del_share_entry: deleting entry 0
[2003/11/20 22:57:34, 10] locking/locking.c:del_share_entry(639)
  del_share_entry: Remaining table.
[2003/11/20 22:57:34, 10] smbd/close.c:close_normal_file(153)
  close_normal_file: share_entry_count = 0 for file 800000B0
[2003/11/20 22:57:34, 10] locking/posix.c:posix_locking_close_file(1245)
  posix_locking_close_file: file 800000B0 has no outstanding locks.
[2003/11/20 22:57:34, 2] smbd/close.c:close_normal_file(213)
  nickgale closed file 800000B0 (numopen=0)
[2003/11/20 22:57:34, 5] smbd/files.c:file_free(346)
  freed files structure 5578 (0 used)
[2003/11/20 22:57:34, 3] smbd/error.c:error_packet(94)
  error string = No such file or directory
[2003/11/20 22:57:34, 3] smbd/error.c:error_packet(113)
  error packet at smbd/nttrans.c(1426) cmd=160 (SMBnttrans)
NT_STATUS_ACCESS_DENIED






More information about the samba mailing list