sync packagaing with SAMBA_3_0
[kai/samba.git] / docs / faq / errors.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <HTML
3 ><HEAD
4 ><TITLE
5 >Common errors</TITLE
6 ><META
7 NAME="GENERATOR"
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
9 "><LINK
10 REL="HOME"
11 TITLE="Samba FAQ"
12 HREF="samba-faq.html"><LINK
13 REL="PREVIOUS"
14 TITLE="Specific client application problems"
15 HREF="clientapp.html"><LINK
16 REL="NEXT"
17 TITLE="Features"
18 HREF="features.html"></HEAD
19 ><BODY
20 CLASS="CHAPTER"
21 BGCOLOR="#FFFFFF"
22 TEXT="#000000"
23 LINK="#0000FF"
24 VLINK="#840084"
25 ALINK="#0000FF"
26 ><DIV
27 CLASS="NAVHEADER"
28 ><TABLE
29 SUMMARY="Header navigation table"
30 WIDTH="100%"
31 BORDER="0"
32 CELLPADDING="0"
33 CELLSPACING="0"
34 ><TR
35 ><TH
36 COLSPAN="3"
37 ALIGN="center"
38 >Samba FAQ</TH
39 ></TR
40 ><TR
41 ><TD
42 WIDTH="10%"
43 ALIGN="left"
44 VALIGN="bottom"
45 ><A
46 HREF="clientapp.html"
47 ACCESSKEY="P"
48 >Prev</A
49 ></TD
50 ><TD
51 WIDTH="80%"
52 ALIGN="center"
53 VALIGN="bottom"
54 ></TD
55 ><TD
56 WIDTH="10%"
57 ALIGN="right"
58 VALIGN="bottom"
59 ><A
60 HREF="features.html"
61 ACCESSKEY="N"
62 >Next</A
63 ></TD
64 ></TR
65 ></TABLE
66 ><HR
67 ALIGN="LEFT"
68 WIDTH="100%"></DIV
69 ><DIV
70 CLASS="CHAPTER"
71 ><H1
72 ><A
73 NAME="ERRORS">Chapter 5. Common errors</H1
74 ><DIV
75 CLASS="SECT1"
76 ><H1
77 CLASS="SECT1"
78 ><A
79 NAME="AEN205">5.1. Not listening for calling name</H1
80 ><P
81 ><PRE
82 CLASS="PROGRAMLISTING"
83 >Session request failed (131,129) with myname=HOBBES destname=CALVIN
84 Not listening for calling name</PRE
85 ></P
86 ><P
87 >If you get this when talking to a Samba box then it means that your
88 global "hosts allow" or "hosts deny" settings are causing the Samba 
89 server to refuse the connection. </P
90 ><P
91 >Look carefully at your "hosts allow" and "hosts deny" lines in the
92 global section of smb.conf. </P
93 ><P
94 >It can also be a problem with reverse DNS lookups not functioning 
95 correctly, leading to the remote host identity not being able to
96 be confirmed, but that is less likely.</P
97 ></DIV
98 ><DIV
99 CLASS="SECT1"
100 ><H1
101 CLASS="SECT1"
102 ><A
103 NAME="AEN212">5.2. System Error 1240</H1
104 ><P
105 >System error 1240 means that the client is refusing to talk
106 to a non-encrypting server. Microsoft changed WinNT in service
107 pack 3 to refuse to connect to servers that do not support
108 SMB password encryption.</P
109 ><P
110 >There are two main solutions:
111 <P
112 ></P
113 ><TABLE
114 BORDER="0"
115 ><TBODY
116 ><TR
117 ><TD
118 >enable SMB password encryption in Samba. See the encryption part of 
119 the samba HOWTO Collection</TD
120 ></TR
121 ><TR
122 ><TD
123 >disable this new behaviour in NT. See the section about 
124 Windows NT in the chapter "Portability" of the samba HOWTO collection</TD
125 ></TR
126 ></TBODY
127 ></TABLE
128 ><P
129 ></P
130 ></P
131 ></DIV
132 ><DIV
133 CLASS="SECT1"
134 ><H1
135 CLASS="SECT1"
136 ><A
137 NAME="AEN219">5.3. smbclient ignores -N !</H1
138 ><P
139 ><SPAN
140 CLASS="QUOTE"
141 >"When getting the list of shares available on a host using the command
142 <B
143 CLASS="COMMAND"
144 >smbclient -N -L</B
145 >
146 the program always prompts for the password if the server is a Samba server.
147 It also ignores the "-N" argument when querying some (but not all) of our
148 NT servers."</SPAN
149 ></P
150 ><P
151 >No, it does not ignore -N, it is just that your server rejected the 
152 null password in the connection, so smbclient prompts for a password
153 to try again.</P
154 ><P
155 >To get the behaviour that you probably want use <B
156 CLASS="COMMAND"
157 >smbclient -L host -U%</B
158 ></P
159 ><P
160 >This will set both the username and password to null, which is
161 an anonymous login for SMB. Using -N would only set the password
162 to null, and this is not accepted as an anonymous login for most
163 SMB servers.</P
164 ></DIV
165 ><DIV
166 CLASS="SECT1"
167 ><H1
168 CLASS="SECT1"
169 ><A
170 NAME="AEN228">5.4. The data on the CD-Drive I've shared seems to be corrupted!</H1
171 ><P
172 >Some OSes (notably Linux) default to auto detection of file type on
173 cdroms and do cr/lf translation. This is a very bad idea when use with
174 Samba. It causes all sorts of stuff ups.</P
175 ><P
176 >To overcome this problem use conv=binary when mounting the cdrom
177 before exporting it with Samba.</P
178 ></DIV
179 ><DIV
180 CLASS="SECT1"
181 ><H1
182 CLASS="SECT1"
183 ><A
184 NAME="AEN232">5.5. Why can users access home directories of other users?</H1
185 ><P
186 ><SPAN
187 CLASS="QUOTE"
188 >"We are unable to keep individual users from mapping to any other user's
189 home directory once they have supplied a valid password! They only need
190 to enter their own password. I have not found *any* method that I can
191 use to configure samba to enforce that only a user may map their own
192 home directory."</SPAN
193 ></P
194 ><P
195 ><SPAN
196 CLASS="QUOTE"
197 >"User xyzzy can map his home directory. Once mapped user xyzzy can also map
198 *anyone* elses home directory!"</SPAN
199 ></P
200 ><P
201 >This is not a security flaw, it is by design. Samba allows
202 users to have *exactly* the same access to the UNIX filesystem
203 as they would if they were logged onto the UNIX box, except
204 that it only allows such views onto the file system as are
205 allowed by the defined shares.</P
206 ><P
207 >This means that if your UNIX home directories are set up
208 such that one user can happily cd into another users
209 directory and do an ls, the UNIX security solution is to 
210 change the UNIX file permissions on the users home directories
211 such that the cd and ls would be denied.</P
212 ><P
213 >Samba tries very hard not to second guess the UNIX administrators
214 security policies, and trusts the UNIX admin to set
215 the policies and permissions he or she desires.</P
216 ><P
217 >Samba does allow the setup you require when you have set the
218 "only user = yes" option on the share, is that you have not set the
219 valid users list for the share.</P
220 ><P
221 >Note that only user works in conjunction with the users= list,
222 so to get the behavior you require, add the line :
223 <PRE
224 CLASS="PROGRAMLISTING"
225 >users = %S</PRE
226 >
227 this is equivalent to:
228 <PRE
229 CLASS="PROGRAMLISTING"
230 >valid users = %S</PRE
231 >
232 to the definition of the [homes] share, as recommended in
233 the smb.conf man page.</P
234 ></DIV
235 ><DIV
236 CLASS="SECT1"
237 ><H1
238 CLASS="SECT1"
239 ><A
240 NAME="AEN245">5.6. Until a few minutes after samba has started, clients get the error "Domain Controller Unavailable"</H1
241 ><P
242 >A domain controller has to announce on the network who it is. This usually takes a while.</P
243 ></DIV
244 ><DIV
245 CLASS="SECT1"
246 ><H1
247 CLASS="SECT1"
248 ><A
249 NAME="AEN248">5.7. I'm getting "open_oplock_ipc: Failed to get local UDP socket for address 100007f. Error was Cannot assign requested" in the logs</H1
250 ><P
251 >Your loopback device isn't working correctly. Make sure it's running.</P
252 ></DIV
253 ></DIV
254 ><DIV
255 CLASS="NAVFOOTER"
256 ><HR
257 ALIGN="LEFT"
258 WIDTH="100%"><TABLE
259 SUMMARY="Footer navigation table"
260 WIDTH="100%"
261 BORDER="0"
262 CELLPADDING="0"
263 CELLSPACING="0"
264 ><TR
265 ><TD
266 WIDTH="33%"
267 ALIGN="left"
268 VALIGN="top"
269 ><A
270 HREF="clientapp.html"
271 ACCESSKEY="P"
272 >Prev</A
273 ></TD
274 ><TD
275 WIDTH="34%"
276 ALIGN="center"
277 VALIGN="top"
278 ><A
279 HREF="samba-faq.html"
280 ACCESSKEY="H"
281 >Home</A
282 ></TD
283 ><TD
284 WIDTH="33%"
285 ALIGN="right"
286 VALIGN="top"
287 ><A
288 HREF="features.html"
289 ACCESSKEY="N"
290 >Next</A
291 ></TD
292 ></TR
293 ><TR
294 ><TD
295 WIDTH="33%"
296 ALIGN="left"
297 VALIGN="top"
298 >Specific client application problems</TD
299 ><TD
300 WIDTH="34%"
301 ALIGN="center"
302 VALIGN="top"
303 >&nbsp;</TD
304 ><TD
305 WIDTH="33%"
306 ALIGN="right"
307 VALIGN="top"
308 >Features</TD
309 ></TR
310 ></TABLE
311 ></DIV
312 ></BODY
313 ></HTML
314 >