[Samba] Problem w. SAMBA as dfs root

M. Vancl mvancl at setuza.cz
Fri Mar 5 19:57:50 GMT 2004


Hi,

I have configured samba 3.0.2 as Dfs root but it seems smbd dont translate
symlink to remote share name.
All targeted shares are from testing workstation directly accessible.

My config is:
---
[global]
    debuglevel = 10
    netbios name = SAMBAII
    workgroup = XAMBA
    security = user
    domain logons = yes
    preferred master = yes
    domain master = yes
    local master = yes
    os level = 33
    encrypt passwords = yes
    passdb backend = ldapsam:"ldap://ldap.setuza.cz"
## ldap sam
...
## dfs
    host msdfs = yes
...
## misc
    follow symlinks = yes
...
## shares
    writeable = no
    create mask = 660
    directory mask = 770
...
[dfs]
    path = /var/samba/dfsroot
    msdfs root = yes
    follow symlinks = no
[test]
...
---

My dfs root is:
root at sambaii:/# ls -ld /var/samba /var/samba/dfsroot
drwxrwx---    7 9999     Domain U     4096 Mar  4 19:07 /var/samba/
drwxr-xr-x    2 root     Domain U     4096 Mar  5 17:17 /var/samba/dfsroot/
root at sambaii:/# ls -l /var/samba/dfsroot
total 0
lrwxrwxrwx    1 root     root           21 Mar  5 17:17 inoupd ->
msdfs:rumba\\inoupdate
lrwxrwxrwx    1 root     root           16 Mar  5 17:01 lavir ->
msdfs:prog23t\\lv
lrwxrwxrwx    1 root     root           19 Mar  4 19:20 pokus ->
msdfs:prog01t\\share

In logfile I found target name only in this line:
...
[2004/03/05 19:23:23, 5] msdfs/msdfs.c:is_msdfs_link(201)
  is_msdfs_link: ./inoupd -> msdfs:rumba\inoupdate
[2004/03/05 19:23:23, 5] smbd/trans2.c:get_lanman2_dir_entry(573)
  get_lanman2_dir_entry: Masquerading msdfs link ./inoupd as a directory
...
and then interesting part:
...
[2004/03/05 19:23:33, 5] smbd/statcache.c:stat_cache_add(178)
  stat_cache_add: Added entry INOUPD -> inoupd
[2004/03/05 19:23:33, 5] smbd/filename.c:unix_convert(388)
  conversion finished inoupd -> inoupd
[2004/03/05 19:23:33, 3] smbd/dosmode.c:unix_mode(110)
  unix_mode(inoupd) returning 0660
[2004/03/05 19:23:33, 5] smbd/files.c:file_new(122)
  allocated file structure 9316, fnum = 13412 (1 used)
[2004/03/05 19:23:33, 10] smbd/open.c:open_file_shared1(838)
  open_file_shared: fname = inoupd, share_mode = 8040, ofun = 1, mode = 660,
oplock request = 3
[2004/03/05 19:23:33, 8] lib/util.c:is_in_path(1474)
  is_in_path: inoupd
[2004/03/05 19:23:33, 8] lib/util.c:is_in_path(1478)
  is_in_path: no name list.
[2004/03/05 19:23:33, 3] lib/util.c:unix_clean_name(580)
  unix_clean_name [inoupd]
[2004/03/05 19:23:33, 3] smbd/filename.c:check_name(423)
  check_name: denied: file path name inoupd is a symlink
[2004/03/05 19:23:33, 5] smbd/filename.c:check_name(430)
  check_name on inoupd failed
[2004/03/05 19:23:33, 5] smbd/files.c:file_free(385)
  freed files structure 13412 (0 used)
[2004/03/05 19:23:33, 10] smbd/trans2.c:set_bad_path_error(1802)
  set_bad_path_error: err = 0 bad_path = 0
[2004/03/05 19:23:33, 3] smbd/error.c:error_packet(118)
  error packet at smbd/trans2.c(1811) cmd=162 (SMBntcreateX)
NT_STATUS_ACCESS_DENIED
...

Thanks for any suggestions

M. Vancl





More information about the samba mailing list