1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter�4.�Common errors</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.61.2"><link rel="home" href="samba-faq.html" title="Samba FAQ"><link rel="up" href="samba-faq.html" title="Samba FAQ"><link rel="previous" href="FAQ-ClientApp.html" title="Chapter�3.�Specific client application problems"><link rel="next" href="FAQ-features.html" title="Chapter�5.�Features"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter�4.�Common errors</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="FAQ-ClientApp.html">Prev</a>�</td><th width="60%" align="center">�</th><td width="20%" align="right">�<a accesskey="n" href="FAQ-features.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="FAQ-errors"></a>Chapter�4.�Common errors</h2></div></div><div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><a href="FAQ-errors.html#id2819236">Not listening for calling name</a></dt><dt><a href="FAQ-errors.html#id2819221">System Error 1240</a></dt><dt><a href="FAQ-errors.html#id2820651">smbclient ignores -N !</a></dt><dt><a href="FAQ-errors.html#id2819326">The data on the CD-Drive I've shared seems to be corrupted!</a></dt></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2819236"></a>Not listening for calling name</h2></div></div><div></div></div><p> 2</p><pre class="programlisting"> 3Session request failed (131,129) with myname=HOBBES destname=CALVIN 4Not listening for calling name 5</pre><p> 6</p><p> 7If you get this when talking to a Samba box then it means that your 8global "hosts allow" or "hosts deny" settings are causing the Samba 9server to refuse the connection. 10</p><p> 11Look carefully at your "hosts allow" and "hosts deny" lines in the 12global section of smb.conf. 13</p><p> 14It can also be a problem with reverse DNS lookups not functioning 15correctly, leading to the remote host identity not being able to 16be confirmed, but that is less likely. 17</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2819221"></a>System Error 1240</h2></div></div><div></div></div><p> 18System error 1240 means that the client is refusing to talk 19to a non-encrypting server. Microsoft changed WinNT in service 20pack 3 to refuse to connect to servers that do not support 21SMB password encryption. 22</p><p>There are two main solutions: 23</p><table class="simplelist" border="0" summary="Simple list"><tr><td>enable SMB password encryption in Samba. See the encryption part of 24the samba HOWTO Collection</td></tr><tr><td>disable this behaviour in NT. See the section about 25Windows NT in the chapter "Portability" of the samba HOWTO collection 26</td></tr></table><p> 27</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2820651"></a>smbclient ignores -N !</h2></div></div><div></div></div><p> 28“<span class="quote">When getting the list of shares available on a host using the command 29<b class="command">smbclient -N -L</b> 30the program always prompts for the password if the server is a Samba server. 31It also ignores the "-N" argument when querying some (but not all) of our 32NT servers. 33</span>” 34</p><p> 35No, it does not ignore -N, it is just that your server rejected the 36null password in the connection, so smbclient prompts for a password 37to try again. 38</p><p> 39To get the behaviour that you probably want use <b class="command">smbclient -L host -U%</b> 40</p><p> 41This will set both the username and password to null, which is 42an anonymous login for SMB. Using -N would only set the password 43to null, and this is not accepted as an anonymous login for most 44SMB servers. 45</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2819326"></a>The data on the CD-Drive I've shared seems to be corrupted!</h2></div></div><div></div></div><p> 46Some OSes (notably Linux) default to auto detection of file type on 47cdroms and do cr/lf translation. This is a very bad idea when use with 48Samba. It causes all sorts of stuff ups. 49</p><p> 50To overcome this problem use conv=binary when mounting the cdrom 51before exporting it with Samba. 52</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="FAQ-ClientApp.html">Prev</a>�</td><td width="20%" align="center"><a accesskey="u" href="samba-faq.html">Up</a></td><td width="40%" align="right">�<a accesskey="n" href="FAQ-features.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter�3.�Specific client application problems�</td><td width="20%" align="center"><a accesskey="h" href="samba-faq.html">Home</a></td><td width="40%" align="right" valign="top">�Chapter�5.�Features</td></tr></table></div></body></html> 53