Page 1 of 1

smbclient error: "session setup failed: SUCCESS - 0"

Posted: Mon Aug 18, 2014 1:43 pm
by ^rooker
[PROBLEM]
I tried to access Samba running on localhost, using smbclient:

Code: Select all

$ smbclient -L 127.0.0.1
After entering some credentials, I got the following error message:
session setup failed: SUCCESS - 0
A good thing to start with, is to turn up smbclient's debug-level, using the "-d" parameter:

Code: Select all

$ smbclient -d 7 -L 127.0.0.1
One of the interesting lines in that output was:
SPNEGO login failed: NT_STATUS_IO_TIMEOUT
[SOLUTION]
In my case, the problem was caused due to a broken name resolution: The DNS servers listed in /etc/resolv.conf weren't reachable.
After I've fixed that, the Samba issue went away, too.

Long story short:
If you run in this error: Check your name resolution! :)

Links: