[Pkg-samba-maint] Bug#854607: cifs-utils: regression in (mulituser?) mounting 'CIFS VFS: Send error in SessSetup = -126'

csights cwseys at physics.wisc.edu
Wed Feb 8 16:31:05 UTC 2017


Package: cifs-utils
Version: 2:6.6-5
Severity: normal

Hello,
  I am able to mount with the following command with root using the following command:
mount -t cifs //smb.physics.wisc.edu/smb /smb -osec=krb5,multiuser,username=smbadmin at PHYSICS.WISC.EDU --verbose

  root can also access files as expected
  However, when cifs-utils 6.6-5 is installed, a different user cannot access as expected:
ls /smb
ls: cannot access '/smb': Permission denied

  But when cifs-utils 6.4-1 is installed (from jessie) the different user can access as expect.  AFAIK
there are no other differences besides the cifs-utils version.

  The first difference in syslog is "kernel: [223018.425633] CIFS VFS: Send error in SessSetup = -126".  I'll paste the working
and non-working logs below.  The "different user" mentioned above has UID 1494 which appears in the logs.

Thanks for your time!
C.

WORKING:
cifs-utils v 6.4-1
Feb  8 09:51:46 trog cifs.upcall: key description: cifs.spnego;0;0;39010000;ver=0x2;host=smb.physics.wisc.edu;ip4=128.104.160.17;sec=krb5;uid=
0x0;creduid=0x0;user=smbadmin at PHYSICS.WISC.EDU;pid=0x6bd0
Feb  8 09:51:46 trog cifs.upcall: ver=2
Feb  8 09:51:46 trog cifs.upcall: host=smb.physics.wisc.edu
Feb  8 09:51:46 trog cifs.upcall: ip=128.104.160.17
Feb  8 09:51:46 trog cifs.upcall: sec=1
Feb  8 09:51:46 trog cifs.upcall: uid=0
Feb  8 09:51:46 trog cifs.upcall: creduid=0
Feb  8 09:51:46 trog cifs.upcall: user=smbadmin at PHYSICS.WISC.EDU
Feb  8 09:51:46 trog cifs.upcall: pid=27600
Feb  8 09:51:46 trog cifs.upcall: find_krb5_cc: scandir error on directory '/run/user/0': No such file or directory
Feb  8 09:51:46 trog cifs.upcall: find_krb5_cc: considering /tmp/krb5cc_0
Feb  8 09:51:46 trog cifs.upcall: find_krb5_cc: FILE:/tmp/krb5cc_0 is valid ccache
Feb  8 09:51:46 trog cifs.upcall: find_krb5_cc: considering /tmp/krb5cc_1494_sM11PG
Feb  8 09:51:46 trog cifs.upcall: find_krb5_cc: /tmp/krb5cc_1494_sM11PG is owned by 1494, not 0
Feb  8 09:51:46 trog cifs.upcall: handle_krb5_mech: getting service ticket for smb.physics.wisc.edu
Feb  8 09:51:46 trog cifs.upcall: handle_krb5_mech: obtained service ticket
Feb  8 09:51:46 trog cifs.upcall: Exit status 0
Feb  8 09:51:46 trog cifs.upcall: key description: cifs.spnego;0;0;39010000;ver=0x2;host=smb.physics.wisc.edu;ip4=128.104.160.17;sec=krb5;uid=0x0;creduid=0x0;user=smbadmin at PHYSICS.WISC.EDU;pid=0x6bd0
Feb  8 09:51:46 trog cifs.upcall: ver=2
Feb  8 09:51:46 trog cifs.upcall: host=smb.physics.wisc.edu
Feb  8 09:51:46 trog cifs.upcall: ip=128.104.160.17
Feb  8 09:51:46 trog cifs.upcall: sec=1
Feb  8 09:51:46 trog cifs.upcall: uid=0
Feb  8 09:51:46 trog cifs.upcall: creduid=0
Feb  8 09:51:46 trog cifs.upcall: user=smbadmin at PHYSICS.WISC.EDU
Feb  8 09:51:46 trog cifs.upcall: pid=27600
Feb  8 09:51:46 trog cifs.upcall: find_krb5_cc: scandir error on directory '/run/user/0': No such file or directory
Feb  8 09:51:46 trog cifs.upcall: find_krb5_cc: considering /tmp/krb5cc_0
Feb  8 09:51:46 trog cifs.upcall: find_krb5_cc: FILE:/tmp/krb5cc_0 is valid ccache
Feb  8 09:51:46 trog cifs.upcall: find_krb5_cc: considering /tmp/krb5cc_1494_sM11PG
Feb  8 09:51:46 trog cifs.upcall: find_krb5_cc: /tmp/krb5cc_1494_sM11PG is owned by 1494, not 0
Feb  8 09:51:46 trog cifs.upcall: handle_krb5_mech: getting service ticket for smb.physics.wisc.edu
Feb  8 09:51:46 trog cifs.upcall: handle_krb5_mech: obtained service ticket
Feb  8 09:51:46 trog cifs.upcall: Exit status 0
Feb  8 09:51:46 trog cifs.upcall: key description: cifs.spnego;0;0;39010000;ver=0x2;host=smb.physics.wisc.edu;ip4=128.104.160.17;sec=krb5;uid=0x5d6;creduid=0x5d6;pid=0x6725
Feb  8 09:51:46 trog cifs.upcall: ver=2
Feb  8 09:51:46 trog cifs.upcall: host=smb.physics.wisc.edu
Feb  8 09:51:46 trog cifs.upcall: ip=128.104.160.17
Feb  8 09:51:46 trog cifs.upcall: sec=1
Feb  8 09:51:46 trog cifs.upcall: uid=1494
Feb  8 09:51:46 trog cifs.upcall: creduid=1494
Feb  8 09:51:46 trog cifs.upcall: pid=26405
Feb  8 09:51:46 trog cifs.upcall: find_krb5_cc: considering /tmp/krb5cc_0
Feb  8 09:51:46 trog cifs.upcall: find_krb5_cc: /tmp/krb5cc_0 is owned by 0, not 1494
Feb  8 09:51:46 trog cifs.upcall: find_krb5_cc: considering /tmp/krb5cc_1494_sM11PG
Feb  8 09:51:46 trog cifs.upcall: find_krb5_cc: FILE:/tmp/krb5cc_1494_sM11PG is valid ccache
Feb  8 09:51:46 trog cifs.upcall: handle_krb5_mech: getting service ticket for smb.physics.wisc.edu
Feb  8 09:51:46 trog cifs.upcall: handle_krb5_mech: obtained service ticket
Feb  8 09:51:46 trog cifs.upcall: Exit status 0


NON-WORKING
cifs-utils v 6.6-5
eb  8 09:48:14 trog cifs.upcall: key description: cifs.spnego;0;0;39010000;ver=0x2;host=smb.physics.wisc.edu;ip4=128.104.160.17;sec=krb5;uid=0x0;creduid=0x0;user=smbadmin at PHYSICS.WISC.EDU;pid=0x67d2
Feb  8 09:48:14 trog cifs.upcall: ver=2
Feb  8 09:48:14 trog cifs.upcall: host=smb.physics.wisc.edu
Feb  8 09:48:14 trog cifs.upcall: ip=128.104.160.17
Feb  8 09:48:14 trog cifs.upcall: sec=1
Feb  8 09:48:14 trog cifs.upcall: uid=0
Feb  8 09:48:14 trog cifs.upcall: creduid=0
Feb  8 09:48:14 trog cifs.upcall: user=smbadmin at PHYSICS.WISC.EDU
Feb  8 09:48:14 trog cifs.upcall: pid=26578
Feb  8 09:48:14 trog cifs.upcall: get_tgt_time: unable to get principal
Feb  8 09:48:14 trog cifs.upcall: handle_krb5_mech: getting service ticket for smb.physics.wisc.edu
Feb  8 09:48:14 trog cifs.upcall: handle_krb5_mech: obtained service ticket
Feb  8 09:48:14 trog cifs.upcall: Exit status 0
Feb  8 09:48:14 trog cifs.upcall: key description: cifs.spnego;0;0;39010000;ver=0x2;host=smb.physics.wisc.edu;ip4=128.104.160.17;sec=krb5;uid=0x0;creduid=0x0;user=smbadmin at PHYSICS.WISC.EDU;pid=0x67d2
Feb  8 09:48:14 trog cifs.upcall: ver=2
Feb  8 09:48:14 trog cifs.upcall: host=smb.physics.wisc.edu
Feb  8 09:48:14 trog cifs.upcall: ip=128.104.160.17
Feb  8 09:48:14 trog cifs.upcall: sec=1
Feb  8 09:48:14 trog cifs.upcall: uid=0
Feb  8 09:48:14 trog cifs.upcall: creduid=0
Feb  8 09:48:14 trog cifs.upcall: user=smbadmin at PHYSICS.WISC.EDU
Feb  8 09:48:14 trog cifs.upcall: pid=26578
Feb  8 09:48:14 trog cifs.upcall: handle_krb5_mech: getting service ticket for smb.physics.wisc.edu
Feb  8 09:48:14 trog cifs.upcall: handle_krb5_mech: obtained service ticket
Feb  8 09:48:14 trog cifs.upcall: Exit status 0
Feb  8 09:48:14 trog cifs.upcall: key description: cifs.spnego;0;0;39010000;ver=0x2;host=smb.physics.wisc.edu;ip4=128.104.160.17;sec=krb5;uid=0x5d6;creduid=0x5d6;pid=0x6725
Feb  8 09:48:14 trog cifs.upcall: ver=2
Feb  8 09:48:14 trog cifs.upcall: host=smb.physics.wisc.edu
Feb  8 09:48:14 trog kernel: [223018.425633] CIFS VFS: Send error in SessSetup = -126
Feb  8 09:48:14 trog cifs.upcall: ip=128.104.160.17
Feb  8 09:48:14 trog cifs.upcall: sec=1
Feb  8 09:48:14 trog cifs.upcall: uid=1494
Feb  8 09:48:14 trog cifs.upcall: creduid=1494
Feb  8 09:48:14 trog cifs.upcall: pid=26405
Feb  8 09:48:14 trog cifs.upcall: get_tgt_time: unable to get principal
Feb  8 09:48:14 trog cifs.upcall: Exit status 1


-- System Information:
Debian Release: 9.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

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

Versions of packages cifs-utils depends on:
ii  libc6         2.24-9
ii  libcap-ng0    0.7.7-3
ii  libkeyutils1  1.5.9-9
ii  libkrb5-3     1.15-1
ii  libpam0g      1.1.8-3.5
ii  libtalloc2    2.1.8-1
ii  libwbclient0  2:4.5.4+dfsg-1
ii  samba-common  2:4.5.4+dfsg-1

cifs-utils recommends no packages.

Versions of packages cifs-utils suggests:
ii  keyutils   1.5.9-9
ii  smbclient  2:4.5.4+dfsg-1
pn  winbind    <none>

-- debconf-show failed



More information about the Pkg-samba-maint mailing list