[Samba] per share way to not follow msdfs links

Aurélien Aptel aaptel at suse.com
Thu Sep 20 21:41:35 UTC 2018


Re-sending with right email...

 msdfs root is set to "no" by default and is per-share.

     [myshare]
     msdfs root = no
     path = ...

 Should do the trick.

 Otherwise if mounting on linux you can also use the 'nodfs' mount option
 (mount.cifs //host/share/... /mnt/ -o ...,nodfs) to disable DFS
 resolving and automatic sub-mounting.

Chad W Seys <cwseys at physics.wisc.edu> writes:
> Hi Aurélien,
>    Thanks!  The mount option nodfs worked if I also used vers=1.0, but 
> otherwise msdfs resolving still occurred.  (Looks like cifs uses a 
> higher smb version if vers=1.0 not specified.)  I'll send an email to 
> the CIFS kernel mailing list.

Yep, sounds like a bug indeed. You still have the option to edit the smb.conf
on the server side if you want to use smb2+.

-- 
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