[Samba] No symlink support on SMB2 and SMB3?

Jeremy Allison jra at samba.org
Fri Jan 23 11:59:51 MST 2015


On Fri, Jan 23, 2015 at 12:07:31PM +0100, Markus Doits wrote:
> Hello,
> 
> I am using Samba version 4.2.0rc4-GIT-4701d74.
> 
> When using a connection in protocol smb2 or smb3, the unix client says
> symlinks are not supported, for example:
> 
> # mount //ip.addr/Programs ./tmp -o vers=3.0
> # cd tmp
> # ln -s bla blub
> ln: failed to create symbolic link ‘blub’: Operation not supported
> 
> # mount
> //ip.addr/Programs on /mnt/tmp type cifs
> (rw,relatime,vers=3.0,sec=ntlmssp,cache=strict,username=markus,domain=OFFICE,uid=0,noforceuid,gid=0,noforcegid,addr=ip.addr,file_mode=0755,dir_mode=0755,nounix,serverino,rsize=1048576,wsize=1048576,actimeo=1,user=markus)
> 
> I suspect it is because unix extensions are off (there is always
> "nounix" written in the mount output).
> I tried the config option "unix extensions = yes" explicitly (should be
> the default), but no change unfortunately.
> 
> I also experimented with the "allow insecure wide links" options and
> similar candidates but had no luck to enable symbolic links (but maybe I
> missed the right combination?).
> 
> When connecting with default NT1 protocol symbolic links work as expected.
> 
> Are symbolic links not supported in newer protocols anymore or am I
> missing some configuration options?

POSIX-style symlinks are not supported in SMB2, the POSIX
varient of this protocol hasn't been specified (yet).


More information about the samba mailing list