[CentOS] Samba Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE SessSetup = -13

Wed Apr 15 13:37:24 UTC 2020
Jonathan Billings <billings at negate.org>

On Wed, Apr 15, 2020 at 06:46:00AM +0200, Ralf Prengel wrote:
> Apr 15 05:37:52 6805ca01a270 kernel: Status code returned 0xc000006d
> NT_STATUS_LOGON_FAILURE
> Apr 15 05:37:52 6805ca01a270 kernel: CIFS VFS: Send error in SessSetup = -13
> Apr 15 05:37:52 6805ca01a270 kernel: CIFS VFS: cifs_mount failed w/return
> code = -13

I the thing to see is NT_STATUS_LOGIN_FAILURE.  errno -13 is EACCESS I
believe, so it's just telling you that you don't have access.  Samba
is replying that there's a login failure.  So you need to make sure
you've got the correct credentials set up in the mount.  Also, make
sure you aren't trying to use SMB1.

For what it's worth, Samba has making inroads into providing a real
POSIX filesystem with SMB3.1.1  w/ the posix option.  (See
https://wiki.samba.org/index.php/SMB3-Linux )

In some ways it's a lot better than NFS.  Runs all over one port, full
kerberos support and support for complex acls.  Hopefully more vendors
adopt the POSIX extension so linux becomes a first class citizen in
the SMB world.

-- 
Jonathan Billings <billings at negate.org>