[Pkg-samba-maint] Bug#866823: samba: does not follow symbolic links

Christian Bachmaier chris at trash-mail.com
Sun Jul 2 07:33:12 UTC 2017

Package: samba
Version: 2:4.6.5+dfsg-2
Severity: important

Dear Maintainer,

setting the option
  follow symlinks = Yes
does not allow to follow symlinks.

My (simplified) setup to reconstruct the faulty behavior is as follows.

$ cat /etc/samba/smb.conf
workgroup = WG
netbios name = Sauron
follow symlinks = Yes
;wide links = Yes
;allow insecure wide links = Yes

path = /tmp
$ cd /tmp
$ mkdir mydir
$ touch mydir/myfile.txt
$ ln -s mydir mydirlink

Then clicking on mydirlink in Windows Explorer shows an error message instead of listing its content.
After enabling the two commented out lines in smb.conf (and restartiing samba) eliminates the problem. However, this is insecure and should not be necessary.

Many thanks, Chris

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages samba depends on:
ii  adduser              3.115
ii  dpkg                 1.18.24
ii  init-system-helpers  1.48
ii  libattr1             1:2.4.47-2+b2
ii  libbsd0              0.8.5-1
ii  libc6                2.24-12
ii  libldb1              2:1.1.29-2
ii  libpam-modules       1.1.8-3.6
ii  libpam-runtime       1.1.8-3.6
ii  libpopt0             1.16-10+b2
ii  libpython2.7         2.7.13-2
ii  libtalloc2           2.1.9-2
ii  libtdb1              1.3.13-2
ii  libtevent0           0.9.31-1
ii  libwbclient0         2:4.6.5+dfsg-2
ii  lsb-base             9.20161125
ii  procps               2:3.3.12-3
ii  python               2.7.13-2
ii  python-dnspython     1.15.0-1
ii  python-samba         2:4.6.5+dfsg-2
ii  python2.7            2.7.13-2
ii  samba-common         2:4.6.5+dfsg-2
ii  samba-common-bin     2:4.6.5+dfsg-2
ii  samba-libs           2:4.6.5+dfsg-2
ii  tdb-tools            1.3.13-2
ii  update-inetd         4.44

Versions of packages samba recommends:
ii  attr                1:2.4.47-2+b2
ii  logrotate           3.11.0-0.1
ii  samba-dsdb-modules  2:4.6.5+dfsg-2
ii  samba-vfs-modules   2:4.6.5+dfsg-2

Versions of packages samba suggests:
ii  bind9          1:9.10.3.dfsg.P4-12.3
ii  bind9utils     1:9.10.3.dfsg.P4-12.3
pn  ctdb           <none>
pn  ldb-tools      <none>
pn  ntp | chrony   <none>
pn  smbldap-tools  <none>
pn  ufw            <none>
pn  winbind        <none>

-- no debconf information

More information about the Pkg-samba-maint mailing list