This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.
[tprouty/samba.git] / docs / docbook / faq / errors.xml
1 <chapter id="FAQ-errors">
2
3 <title>Common errors</title>
4
5 <sect1>
6 <title>Not listening for calling name</title>
7
8 <para>
9 <programlisting>
10 Session request failed (131,129) with myname=HOBBES destname=CALVIN
11 Not listening for calling name
12 </programlisting>
13 </para>
14
15 <para>
16 If you get this when talking to a Samba box then it means that your
17 global "hosts allow" or "hosts deny" settings are causing the Samba 
18 server to refuse the connection. 
19 </para>
20
21 <para>
22 Look carefully at your "hosts allow" and "hosts deny" lines in the
23 global section of smb.conf. 
24 </para>
25
26 <para>
27 It can also be a problem with reverse DNS lookups not functioning 
28 correctly, leading to the remote host identity not being able to
29 be confirmed, but that is less likely.
30 </para>
31 </sect1>
32
33 <sect1>
34 <title>System Error 1240</title>
35
36 <para>
37 System error 1240 means that the client is refusing to talk
38 to a non-encrypting server. Microsoft changed WinNT in service
39 pack 3 to refuse to connect to servers that do not support
40 SMB password encryption.
41 </para>
42
43 <para>There are two main solutions:
44 <simplelist>
45 <member>enable SMB password encryption in Samba. See the encryption part of 
46 the samba HOWTO Collection</member>
47
48 <member>disable this behaviour in NT. See the section about 
49 Windows NT in the chapter "Portability" of the samba HOWTO collection
50 </member>
51 </simplelist>
52 </para>
53 </sect1>
54
55 <sect1>
56 <title>smbclient ignores -N !</title>
57
58 <para>
59 <quote>When getting the list of shares available on a host using the command
60 <command>smbclient -N -L</command>
61 the program always prompts for the password if the server is a Samba server.
62 It also ignores the "-N" argument when querying some (but not all) of our
63 NT servers.
64 </quote>
65 </para>
66 <para>
67 No, it does not ignore -N, it is just that your server rejected the 
68 null password in the connection, so smbclient prompts for a password
69 to try again.
70 </para>
71
72 <para>
73 To get the behaviour that you probably want use <command>smbclient -L host -U%</command>
74 </para>
75
76 <para>
77 This will set both the username and password to null, which is
78 an anonymous login for SMB. Using -N would only set the password
79 to null, and this is not accepted as an anonymous login for most
80 SMB servers.
81 </para>
82
83 </sect1>
84
85 <sect1>
86 <title>The data on the CD-Drive I've shared seems to be corrupted!</title>
87
88 <para>
89 Some OSes (notably Linux) default to auto detection of file type on
90 cdroms and do cr/lf translation. This is a very bad idea when use with
91 Samba. It causes all sorts of stuff ups.
92 </para>
93
94 <para>
95 To overcome this problem use conv=binary when mounting the cdrom
96 before exporting it with Samba.
97 </para>
98
99 </sect1>
100
101 </chapter>