[Pkg-samba-maint] Bug#902431: samba: cifs guest connection can't read back 0600 file it just created

Andreas Hasenack andreas at canonical.com
Tue Jun 26 15:47:11 BST 2018


Package: samba
Version: 2:4.8.2+dfsg-2
Severity: normal

Dear Maintainer,

This works with 4.8.0 and 4.7.6, but breaks with 4.8.1 and 4.8.2 as the
server:

root at debian:~# mount //localhost/tmp -o guest,vers=1.0 /mnt
root at debian:~# echo hello > /mnt/hello.txt
root at debian:~# ls -la /mnt/hello.txt
-rw-r--r--+ 1 nobody nogroup 6 Jun 26 14:38 /mnt/hello.txt
root at debian:~# cat /mnt/hello.txt
hello
root at debian:~# chmod 0600 /mnt/hello.txt
root at debian:~# cat /mnt/hello.txt
cat: /mnt/hello.txt: Permission denied
root at debian:~# ls -la /mnt/hello.txt
-rw-------+ 1 nobody nogroup 6 Jun 26 14:38 /mnt/hello.txt
root at debian:~#

smb.conf file attached, it's the default one (cleaned up with testparm
-s) plus a simple [tmp] share:
[tmp]
    path = /tmp
    read only = no
    guest ok = yes

mount options end up being like this:
root at debian:~# mount -t cifs
//localhost/tmp on /mnt type cifs
(rw,relatime,vers=1.0,sec=none,cache=strict,domain=,uid=0,noforceuid,gid=0,noforcegid,addr=127.0.0.1,soft,unix,posixpaths,serverino,mapposix,acl,rsize=1048576,wsize=65536,echo_interval=60,actimeo=1)

Reported upstream: https://bugzilla.samba.org/show_bug.cgi?id=13486


-- Package-specific info:
* /etc/samba/smb.conf present, and attached
* /var/lib/samba/dhcp.conf not present

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

Kernel: Linux 4.16.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages samba depends on:
ii  adduser           3.117
ii  dpkg              1.19.0.5+b1
ii  libattr1          1:2.4.47-2+b2
ii  libbsd0           0.9.1-1
ii  libc6             2.27-3
ii  libldb1           2:1.3.3-1
ii  libpam-modules    1.1.8-3.7
ii  libpam-runtime    1.1.8-3.7
ii  libpopt0          1.16-11
ii  libpython2.7      2.7.15-1
ii  libtalloc2        2.1.11-2
ii  libtdb1           1.3.15-4
ii  libtevent0        0.9.36-2
ii  lsb-base          9.20170808
ii  procps            2:3.3.15-2
ii  python            2.7.15-3
ii  python-dnspython  1.15.0-1
ii  python-samba      2:4.8.2+dfsg-2
ii  python2.7         2.7.15-1
ii  samba-common      2:4.8.2+dfsg-2
ii  samba-common-bin  2:4.8.2+dfsg-2
ii  samba-libs        2:4.8.2+dfsg-2
ii  tdb-tools         1.3.15-4

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.8.2+dfsg-2
ii  samba-vfs-modules   2:4.8.2+dfsg-2

Versions of packages samba suggests:
pn  bind9          <none>
pn  bind9utils     <none>
pn  ctdb           <none>
pn  ldb-tools      <none>
ii  ntp            1:4.2.8p11+dfsg-1
pn  smbldap-tools  <none>
pn  ufw            <none>
pn  winbind        <none>

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smb.conf
Type: application/octet-stream
Size: 938 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-samba-maint/attachments/20180626/cde8c521/attachment.obj>


More information about the Pkg-samba-maint mailing list