[Samba] Repost: Can't follow DFS link

Kent Tong kent at cpttm.org.mo
Fri Jun 1 07:59:59 GMT 2007


Hi,

I am using 3.0.22 on Ubuntu 6.06. I'm trying to setup a DFS root. Here
is the smb.conf share section:

My smb.conf file is:

[global]
# use default
; security = user
host msdfs = yes

[Share]
path=/var/Share
writable=yes
msdfs root=yes

The dfs link is:

# ls -l /var/Share/Data/2007/OfficeAdmin/pdf
lrwxrwxrwx 1 root root 19 2007-05-23 09:14 
/var/Share/Data/2007/OfficeAdmin/pdf -> msdfs:cladms004\pdf

All the clients have been rebooted. They can all connect to 
\\cladms004\pdf directly.

On one Win2K client the DFS link works fine. But on another Win2K client 
and a Win2K terminal server, I can't go into the "pdf" folder. I can 
see the "pdf" folder inside the share. But when I try to go into the 
"pdf" folder, Windows says the folder is inaccessible.

The level 10 log is:

[2007/05/28 17:24:14, 10] lib/util_sock.c:read_smb_length_return_keepalive(618)
  got smb length of 128
[2007/05/28 17:24:14, 6] smbd/process.c:process_smb(1193)
  got message type 0x0 of len 0x80
[2007/05/28 17:24:14, 3] smbd/process.c:process_smb(1194)
  Transaction 257270 of length 132
[2007/05/28 17:24:14, 5] lib/util.c:show_msg(454)
[2007/05/28 17:24:14, 5] lib/util.c:show_msg(464)
  size=128
  smb_com=0x32
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=24
  smb_flg2=51203
  smb_tid=10
  smb_pid=2264
  smb_uid=187
  smb_mid=9153
  smt_wct=15
  smb_vwv[ 0]=   60 (0x3C)
  smb_vwv[ 1]=    0 (0x0)
  smb_vwv[ 2]=    2 (0x2)
  smb_vwv[ 3]=   40 (0x28)
  smb_vwv[ 4]=    0 (0x0)
  smb_vwv[ 5]=    0 (0x0)
  smb_vwv[ 6]=    0 (0x0)
  smb_vwv[ 7]=    0 (0x0)
  smb_vwv[ 8]=    0 (0x0)
  smb_vwv[ 9]=   60 (0x3C)
  smb_vwv[10]=   68 (0x44)
  smb_vwv[11]=    0 (0x0)
  smb_vwv[12]=    0 (0x0)
  smb_vwv[13]=    1 (0x1)
  smb_vwv[14]=    5 (0x5)
  smb_bcc=63
[2007/05/28 17:24:14, 10] lib/util.c:dump_data(2058)
  [000] 00 00 00 EC 03 00 00 00  00 5C 00 44 00 61 00 74  ........ .\.D.a.t
  [010] 00 61 00 5C 00 32 00 30  00 30 00 37 00 5C 00 4F  .a.\.2.0 .0.7.\.O
  [020] 00 66 00 66 00 69 00 63  00 65 00 41 00 64 00 6D  .f.f.i.c .e.A.d.m
  [030] 00 69 00 6E 00 5C 00 70  00 64 00 66 00 00 00     .i.n.\.p .d.f...
[2007/05/28 17:24:14, 3] smbd/process.c:switch_message(993)
  switch message SMBtrans2 (pid 3864) conn 0x83ed558
[2007/05/28 17:24:14, 4] smbd/uid.c:change_to_user(222)
  change_to_user: Skipping user change - already user
[2007/05/28 17:24:14, 3] smbd/trans2.c:call_trans2qfilepathinfo(2861)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2007/05/28 17:24:14, 5] smbd/filename.c:unix_convert(108)
  unix_convert called on file "Data/2007/OfficeAdmin/pdf"
[2007/05/28 17:24:14, 10] smbd/statcache.c:stat_cache_lookup(215)
  stat_cache_lookup: lookup failed for name [DATA/2007/OFFICEADMIN/PDF]
[2007/05/28 17:24:14, 10] smbd/statcache.c:stat_cache_lookup(248)
  stat_cache_lookup: lookup succeeded for name 
[DATA/2007/OFFICEADMIN] -> [Data/2007/OfficeAdmin]
[2007/05/28 17:24:14, 5] smbd/filename.c:unix_convert(185)
  unix_convert begin: name = Data/2007/OfficeAdmin/pdf, dirpath = Data/2007/Offi
ceAdmin, start = pdf
[2007/05/28 17:24:14, 10] smbd/mangle_hash2.c:is_mangled(276)
  is_mangled pdf ?
[2007/05/28 17:24:14, 10] smbd/mangle_hash2.c:is_mangled_component(215)
  is_mangled_component pdf (len 3) ?
[2007/05/28 17:24:14, 10] smbd/mangle_hash2.c:is_mangled(276)
  is_mangled pdf ?
[2007/05/28 17:24:14, 10] smbd/mangle_hash2.c:is_mangled_component(215)
  is_mangled_component pdf (len 3) ?
[2007/05/28 17:24:14, 5] smbd/statcache.c:stat_cache_add(140)
  stat_cache_add: Added entry (83e4d88:size1a) 
DATA/2007/OFFICEADMIN/PDF -> Data
/2007/OfficeAdmin/pdf
[2007/05/28 17:24:14, 5] smbd/statcache.c:stat_cache_add(140)
  stat_cache_add: Added entry (83e4d88:size1a) 
DATA/2007/OFFICEADMIN/PDF -> Data
/2007/OfficeAdmin/pdf
[2007/05/28 17:24:14, 5] smbd/filename.c:unix_convert(400)
  conversion finished Data/2007/OfficeAdmin/pdf -> 
Data/2007/OfficeAdmin/pdf
[2007/05/28 17:24:14, 3] smbd/trans2.c:call_trans2qfilepathinfo(2886)
  call_trans2qfilepathinfo: SMB_VFS_STAT of 
Data/2007/OfficeAdmin/pdf failed (No such file or directory)
[2007/05/28 17:24:14, 10] smbd/trans2.c:set_bad_path_error(2623)
  set_bad_path_error: err = 2 bad_path = 0
[2007/05/28 17:24:14, 3] smbd/error.c:error_packet(146)
  error packet at smbd/trans2.c(2629) cmd=50 (SMBtrans2) 
NT_STATUS_OBJECT_NAME_NOT_FOUND



More information about the samba mailing list