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

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

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

Post 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:
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply