[Samba] dfs links anywhere?

Aurélien Aptel aaptel at suse.com
Wed Oct 18 16:23:08 UTC 2017


Hi Chad,

Sorry for the late reply. Looking at this now.

Chad William Seys <cwseys at physics.wisc.edu> writes:
> I've attached traces and logs of these situations:
>
> msdfs root = yes, link points to share, link CAN be followed
> trace_msdfsrootyes_share.*
>
> msdfs root = yes, link points to path, link CANNOT be followed
> trace_msdfsrootyes_path.*

In this one I still see things mixing directory separators, e.g.:

  Update attributes: //smb03.physics.wisc.edu/smb\instr_files inode
  0xffff893c53c0e0a8 count 1 dentry: 0xffff893c596bbd80 d_time 0 jiffies
  5742081270


What about making your symlink like this:

    ln -s 'msdfs:\\smb03.physics.wisc.edu\share\path' testback

Note the use of simple quote and double _back_slash. I get unexpected
result with zsh (\ gets interpreted..) but with bash it results in this:

    d55:/tmp/share # ls -l link*
    lrwxrwxrwx 1 aaptel users 28 Aug 30 16:51 link -> msdfs:\\10.160.65.191\target
    lrwxrwxrwx 1 aaptel users 32 Aug 30 16:50 linksub -> msdfs:\\10.160.65.191\target\sub

And both link works, with msdfs root = yes

> msdfs root = no, link points to path, link CAN be followed
> trace_msdfsrootno_path.*

-- 
Aurélien Aptel / SUSE Labs Samba Team
GPG: 1839 CB5F 9F5B FB9B AA97  8C99 03C8 A49B 521B D5D3
SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)



More information about the samba mailing list