[Samba] cifs-utils: regression in (mulituser?) mounting 'CIFS VFS: Send error in SessSetup = -126'

Chad William Seys cwseys at physics.wisc.edu
Wed Feb 8 22:29:00 UTC 2017


Hello,
   On Debian 9 (stretch prerelease) 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



More information about the samba mailing list