Docbook XML conversion: manpages
[Samba/gebeck_regimport.git] / docs / docbook / projdoc / Problems.sgml
blobeb43b63b636b5cb39d8f5e5abd43198b208270a0
1 <chapter id="problems">
3 <chapterinfo>
4 &author.jerry;
5 &author.jelmer;
6 <author>
7 <firstname>David</firstname><surname>Bannon</surname>
8 <affiliation>
9 <orgname>Samba Team</orgname>
10 <address><email>dbannon@samba.org</email></address>
11 </affiliation>
12 </author>
13 <pubdate>8 Apr 2003</pubdate>
14 </chapterinfo>
16 <title>Analysing and solving samba problems</title>
18 <para>
19 There are many sources of information available in the form
20 of mailing lists, RFC's and documentation. The docs that come
21 with the samba distribution contain very good explanations of
22 general SMB topics such as browsing.</para>
24 <sect1>
25 <title>Diagnostics tools</title>
27 <para>
28 One of the best diagnostic tools for debugging problems is Samba itself.
29 You can use the -d option for both smbd and nmbd to specify what
30 'debug level' at which to run. See the man pages on smbd, nmbd and
31 smb.conf for more information on debugging options. The debug
32 level can range from 1 (the default) to 10 (100 for debugging passwords).
33 </para>
35 <para>
36 Another helpful method of debugging is to compile samba using the
37 <command>gcc -g </command> flag. This will include debug
38 information in the binaries and allow you to attach gdb to the
39 running smbd / nmbd process. In order to attach gdb to an smbd
40 process for an NT workstation, first get the workstation to make the
41 connection. Pressing ctrl-alt-delete and going down to the domain box
42 is sufficient (at least, on the first time you join the domain) to
43 generate a 'LsaEnumTrustedDomains'. Thereafter, the workstation
44 maintains an open connection, and therefore there will be an smbd
45 process running (assuming that you haven't set a really short smbd
46 idle timeout) So, in between pressing ctrl alt delete, and actually
47 typing in your password, you can attach gdb and continue.
48 </para>
50 <para>
51 Some useful samba commands worth investigating:
52 </para>
54 <itemizedlist>
55 <listitem><para>testparam | more</para></listitem>
56 <listitem><para>smbclient -L //{netbios name of server}</para></listitem>
57 </itemizedlist>
59 <para>
60 An SMB enabled version of tcpdump is available from
61 <ulink url="http://www.tcpdump.org/">http://www.tcpdup.org/</ulink>.
62 Ethereal, another good packet sniffer for Unix and Win32
63 hosts, can be downloaded from <ulink
64 url="http://www.ethereal.com/">http://www.ethereal.com</ulink>.
65 </para>
67 <para>
68 For tracing things on the Microsoft Windows NT, Network Monitor
69 (aka. netmon) is available on the Microsoft Developer Network CD's,
70 the Windows NT Server install CD and the SMS CD's. The version of
71 netmon that ships with SMS allows for dumping packets between any two
72 computers (i.e. placing the network interface in promiscuous mode).
73 The version on the NT Server install CD will only allow monitoring
74 of network traffic directed to the local NT box and broadcasts on the
75 local subnet. Be aware that Ethereal can read and write netmon
76 formatted files.
77 </para>
79 </sect1>
81 <sect1>
82 <title>Installing 'Network Monitor' on an NT Workstation or a Windows 9x box</title>
84 <para>
85 Installing netmon on an NT workstation requires a couple
86 of steps. The following are for installing Netmon V4.00.349, which comes
87 with Microsoft Windows NT Server 4.0, on Microsoft Windows NT
88 Workstation 4.0. The process should be similar for other versions of
89 Windows NT / Netmon. You will need both the Microsoft Windows
90 NT Server 4.0 Install CD and the Workstation 4.0 Install CD.
91 </para>
93 <para>
94 Initially you will need to install 'Network Monitor Tools and Agent'
95 on the NT Server. To do this
96 </para>
98 <itemizedlist>
99 <listitem><para>Goto Start - Settings - Control Panel -
100 Network - Services - Add </para></listitem>
102 <listitem><para>Select the 'Network Monitor Tools and Agent' and
103 click on 'OK'.</para></listitem>
105 <listitem><para>Click 'OK' on the Network Control Panel.
106 </para></listitem>
108 <listitem><para>Insert the Windows NT Server 4.0 install CD
109 when prompted.</para></listitem>
110 </itemizedlist>
112 <para>
113 At this point the Netmon files should exist in
114 <filename>%SYSTEMROOT%\System32\netmon\*.*</filename>.
115 Two subdirectories exist as well, <filename>parsers\</filename>
116 which contains the necessary DLL's for parsing the netmon packet
117 dump, and <filename>captures\</filename>.
118 </para>
120 <para>
121 In order to install the Netmon tools on an NT Workstation, you will
122 first need to install the 'Network Monitor Agent' from the Workstation
123 install CD.
124 </para>
126 <itemizedlist>
127 <listitem><para>Goto Start - Settings - Control Panel -
128 Network - Services - Add</para></listitem>
130 <listitem><para>Select the 'Network Monitor Agent' and click
131 on 'OK'.</para></listitem>
133 <listitem><para>Click 'OK' on the Network Control Panel.
134 </para></listitem>
136 <listitem><para>Insert the Windows NT Workstation 4.0 install
137 CD when prompted.</para></listitem>
138 </itemizedlist>
140 <para>
141 Now copy the files from the NT Server in %SYSTEMROOT%\System32\netmon\*.*
142 to %SYSTEMROOT%\System32\netmon\*.* on the Workstation and set
143 permissions as you deem appropriate for your site. You will need
144 administrative rights on the NT box to run netmon.
145 </para>
147 <para>
148 To install Netmon on a Windows 9x box install the network monitor agent
149 from the Windows 9x CD (\admin\nettools\netmon). There is a readme
150 file located with the netmon driver files on the CD if you need
151 information on how to do this. Copy the files from a working
152 Netmon installation.
153 </para>
155 </sect1>
157 <sect1>
158 <title>Useful URL's</title>
159 <itemizedlist>
161 <listitem><para>Home of Samba site <ulink url="http://samba.org">
162 http://samba.org</ulink>. We have a mirror near you !</para></listitem>
164 <listitem><para> The <emphasis>Development</emphasis> document
165 on the Samba mirrors might mention your problem. If so,
166 it might mean that the developers are working on it.</para></listitem>
168 <listitem><para>See how Scott Merrill simulates a BDC behavior at
169 <ulink url="http://www.skippy.net/linux/smb-howto.html">
170 http://www.skippy.net/linux/smb-howto.html</ulink>. </para></listitem>
172 <listitem><para>Although 2.0.7 has almost had its day as a PDC, David Bannon will
173 keep the 2.0.7 PDC pages at <ulink url="http://bioserve.latrobe.edu.au/samba">
174 http://bioserve.latrobe.edu.au/samba</ulink> going for a while yet.</para></listitem>
176 <listitem><para>Misc links to CIFS information
177 <ulink url="http://samba.org/cifs/">http://samba.org/cifs/</ulink></para></listitem>
179 <listitem><para>NT Domains for Unix <ulink url="http://mailhost.cb1.com/~lkcl/ntdom/">
180 http://mailhost.cb1.com/~lkcl/ntdom/</ulink></para></listitem>
182 <listitem><para>FTP site for older SMB specs:
183 <ulink url="ftp://ftp.microsoft.com/developr/drg/CIFS/">
184 ftp://ftp.microsoft.com/developr/drg/CIFS/</ulink></para></listitem>
186 </itemizedlist>
188 </sect1>
190 <sect1>
191 <title>Getting help from the mailing lists</title>
193 <para>
194 There are a number of Samba related mailing lists. Go to <ulink
195 url="http://samba.org">http://samba.org</ulink>, click on your nearest mirror
196 and then click on <command>Support</command> and then click on <command>
197 Samba related mailing lists</command>.
198 </para>
200 <para>
201 For questions relating to Samba TNG go to
202 <ulink url="http://www.samba-tng.org/">http://www.samba-tng.org/</ulink>
203 It has been requested that you don't post questions about Samba-TNG to the
204 main stream Samba lists.</para>
206 <para>
207 If you post a message to one of the lists please observe the following guide lines :
208 </para>
210 <itemizedlist>
212 <listitem><para> Always remember that the developers are volunteers, they are
213 not paid and they never guarantee to produce a particular feature at
214 a particular time. Any time lines are 'best guess' and nothing more.
215 </para></listitem>
217 <listitem><para> Always mention what version of samba you are using and what
218 operating system its running under. You should probably list the
219 relevant sections of your &smb.conf; file, at least the options
220 in [global] that affect PDC support.</para></listitem>
222 <listitem><para>In addition to the version, if you obtained Samba via
223 CVS mention the date when you last checked it out.</para></listitem>
225 <listitem><para> Try and make your question clear and brief, lots of long,
226 convoluted questions get deleted before they are completely read !
227 Don't post html encoded messages (if you can select colour or font
228 size its html).</para></listitem>
230 <listitem><para> If you run one of those nifty 'I'm on holidays' things when
231 you are away, make sure its configured to not answer mailing lists.
232 </para></listitem>
234 <listitem><para> Don't cross post. Work out which is the best list to post to
235 and see what happens, i.e. don't post to both samba-ntdom and samba-technical.
236 Many people active on the lists subscribe to more
237 than one list and get annoyed to see the same message two or more times.
238 Often someone will see a message and thinking it would be better dealt
239 with on another, will forward it on for you.</para></listitem>
241 <listitem><para>You might include <emphasis>partial</emphasis>
242 log files written at a debug level set to as much as 20.
243 Please don't send the entire log but enough to give the context of the
244 error messages.</para></listitem>
246 <listitem><para>(Possibly) If you have a complete netmon trace ( from the opening of
247 the pipe to the error ) you can send the *.CAP file as well.</para></listitem>
249 <listitem><para>Please think carefully before attaching a document to an email.
250 Consider pasting the relevant parts into the body of the message. The samba
251 mailing lists go to a huge number of people, do they all need a copy of your
252 smb.conf in their attach directory?</para></listitem>
254 </itemizedlist>
256 </sect1>
258 <sect1>
259 <title>How to get off the mailinglists</title>
261 <para>To have your name removed from a samba mailing list, go to the
262 same place you went to to get on it. Go to <ulink
263 url="http://lists.samba.org/">http://lists.samba.org</ulink>,
264 click on your nearest mirror and then click on <command>Support</command> and
265 then click on <command> Samba related mailing lists</command>. Or perhaps see
266 <ulink url="http://lists.samba.org/mailman/roster/samba-ntdom">here</ulink>
267 </para>
269 <para>
270 Please don't post messages to the list asking to be removed, you will just
271 be referred to the above address (unless that process failed in some way...)
272 </para>
274 </sect1>
276 </chapter>