Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.