Unable to follow symbolic links in a Windows share

by Brian0975   Last Updated November 22, 2017 02:02 AM

Ubuntu Desktop 16.04.3 LTS

Kernel - 4.10.0-40-generic

cifs-utils - 2:6.4-1ubuntu1.1

samba & smbclient - 2:4.3.11+dfsg-0ubuntu0.16.04.12

We are a large company with a Windows Server backend and a mix of Windows, MacOS, CentOS and Ubuntu clients. We use DFS heavily for file share management.

Recently, we've begin disabling SMB v1 on the servers to mitigate its associated vulnerabilites. This has not been any trouble for the Windows or Mac clients, however, the Ubultu and CentOS clients are having a lot of trouble.

Specifically, mounting a DFS share fails once the client tries to see past the symbolic link that points to the absolute path.

//namespaceserver/share/directory/symboliclink points to //realserver/sharename

This is the command I'm using:

sudo mount.cifs //namespaceserver/share /mnt/share -o vers=2.1,user='user@domain.com'

The mount is successful and I can navigate within the DFS namespace but, once I try to go past the symbolic link, I get:

ls: cannot access '/mnt/share/directory/symboliclink': Function not supported.

I've added follow symlinks=yes and unix extensions=no to the smb.conf file but that didn't help.

Any advice would be appreciated as I've spent about ten hours on this issue so far.



Related Questions


CIFS and Samba drive mount nightmare

Updated October 03, 2015 15:01 PM


Problem using SMB credentials file to mount SMB share

Updated November 30, 2017 20:02 PM


CIFS mounted share hangs up after some time

Updated April 22, 2017 02:02 AM