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 am unable to list windows shares from terminal. I am getting the following error,

root@ITSTA2:~# smbclient -L 172.XX.XX.XX -U john
params.c:Parameter() - Ignoring badly formed line in configuration file: # Samba config file
WARNING: The "Share modes" option is deprecated
Unknown parameter encountered: "read Size"
Ignoring unknown parameter "read Size"
Enter john's password: 
Unknown socket option SO_KEEPLIVE
session setup failed: NT_STATUS_LOGON_FAILURE

Someone sort out the problem pls..

share|improve this question
    
There seem to be some errors in your smb.conf configuration file (e.g., there's a spelling error: SO_KEEPLIVE instead of SO_KEEPALIVE). It's hard to tell anything more specific without seeing the actaul file; can you post it here or on some pastebin? –  Riccardo Murri Jun 26 '11 at 13:00
    
Sure i will paste my configuration file tonight.. –  karthick87 Jun 26 '11 at 13:03
    
My samba configuration. –  karthick87 Jul 1 '11 at 3:49

2 Answers 2

up vote 1 down vote accepted

You need to specify the name of the remote machine to -L. If you want to force the use of a specific IP, pass it with -I.

share|improve this answer

I had to use a domain\\username notice the extra slash there. if I did an Alt-F2 and put in smb://Servername/sharename I had to add a \ before the username.

share|improve this answer

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.