[Samba] Can't follow DFS link

Kent Tong kent at cpttm.org.mo
Tue May 22 07:41:00 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:

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

The /var/test contains a single symlink:

$ ls -l /var/test
total 0
lrwxrwxrwx 1 root root 19 2007-05-22 14:56 pdf -> msdfs:cladms004\pdf

On a Win2K client I can connect to \\cladms004\pdf successfully. I
can also access the test share defined above. 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 debug log is shown below. Any help is much appreciated!

[2007/05/22 15:33:42, 4] smbd/vfs.c:vfs_ChDir(738)
  vfs_ChDir to /var/test
[2007/05/22 15:33:42, 3] smbd/trans2.c:call_trans2qfilepathinfo(2861)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2007/05/22 15:33:42, 5] smbd/filename.c:unix_convert(108)
  unix_convert called on file "pdf"
[2007/05/22 15:33:42, 10] smbd/statcache.c:stat_cache_lookup(248)
  stat_cache_lookup: lookup succeeded for name [PDF] -> [pdf]
[2007/05/22 15:33:42, 5] smbd/filename.c:unix_convert(185)
  unix_convert begin: name = pdf, dirpath = , start = pdf
[2007/05/22 15:33:42, 10] smbd/mangle_hash2.c:is_mangled(276)
  is_mangled pdf ?
[2007/05/22 15:33:42, 10] smbd/mangle_hash2.c:is_mangled_component(215)
  is_mangled_component pdf (len 3) ?
[2007/05/22 15:33:42, 10] smbd/mangle_hash2.c:is_mangled(276)
  is_mangled pdf ?
[2007/05/22 15:33:42, 10] smbd/mangle_hash2.c:is_mangled_component(215)
  is_mangled_component pdf (len 3) ?
[2007/05/22 15:33:42, 5] smbd/statcache.c:stat_cache_add(140)
  stat_cache_add: Added entry (83bea58:size4) PDF -> pdf
[2007/05/22 15:33:42, 5] smbd/statcache.c:stat_cache_add(140)
  stat_cache_add: Added entry (83bea58:size4) PDF -> pdf
[2007/05/22 15:33:42, 5] smbd/filename.c:unix_convert(400)
  conversion finished pdf -> pdf
[2007/05/22 15:33:42, 3] smbd/trans2.c:call_trans2qfilepathinfo(2886)
  call_trans2qfilepathinfo: SMB_VFS_STAT of pdf failed (No such file or director
y)
[2007/05/22 15:33:42, 10] smbd/trans2.c:set_bad_path_error(2623)
  set_bad_path_error: err = 2 bad_path = 0
[2007/05/22 15:33:42, 3] smbd/error.c:error_packet(146)
  error packet at smbd/trans2.c(2629) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_NAME_N
OT_FOUND



More information about the samba mailing list