Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm running smbclient on Ubuntu, trying to connect to a Windows box, and I'm getting "session setup failed: NT_STATUS_LOGON_FAILURE".

I've verifed that I can ping the box and telnet to ports 139/445, so I'm pretty sure that it's not a firewall issue. And my client says that they can connect to this Windows box from another Windows box with the userid/password combination without issue. Also, this box can connect via smbclient to other Windows boxes that this client has.

Any other ideas for why this isn't working?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Have you checked your smb.conf?

Make sure your workgroup and security settings are properly set. If you are working with a a computer as part of a domain, authentication requests are first passed through your domain controller, so make sure you have something similiar to:

security = domain
workgroup = WORKGROUP

Hope this helps!

share|improve this answer
    
Turns out adding the domain did the trick. Apparently some versions of Windows require the domain and others don't? But, thanks! –  David Jaquay Mar 3 '12 at 19:03
    
note that the 'security = domain' bit is unnecessary here. Apart from specifying the workgroup in smb.conf, you can also specify it on the command line to smbclient. –  jelmer Mar 3 '12 at 20:09
    
Yes, the -W option to smbclient is what I used to get it working. –  David Jaquay Mar 5 '12 at 2:16
2  
DOMAIN/username should also work. –  Calmarius Apr 5 '13 at 15:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.