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?
Markus
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
POSIX-style symlinks are not supported in SMB2, the POSIX
varient of this protocol hasn't been specified (yet).
iirc it does, with an IO_REPARSE_TAG_SYMLINK ioctl. We just don't
implement it (yet). :)
-Ralph
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kon...@sernet.de
Just that you know: I'm trying to have home shares on the network, and
sometimes users need symlinks (in some osx .apps or when installing some
ruby gems). I'm using samba because it should also work with OSX.
hm. Inferring from `git grep IO_REPARSE_TAG_SYMLINK` it seems
smbclient does support it by virtue of the "symlink"
command. Unfortunately I can't test against OS X SMB2 server atm,
because once again I'm getting strange authenticaton errors.
-Ralph
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kon...@sernet.de