summaryrefslogtreecommitdiff
path: root/docs/htmldocs/diagnosis.html
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2003-04-30 22:52:23 +0000
committerAlexander Bokovoy <ab@samba.org>2003-04-30 22:52:23 +0000
commit94f33628d8251b614d47b75fd4fd19d1a9965ffa (patch)
tree227349f40958db9cd63c92fd247edef6da2e5434 /docs/htmldocs/diagnosis.html
parent721195f77b49e7c341970ad78834a71641ae9577 (diff)
downloadsamba-94f33628d8251b614d47b75fd4fd19d1a9965ffa.tar.gz
samba-94f33628d8251b614d47b75fd4fd19d1a9965ffa.tar.bz2
samba-94f33628d8251b614d47b75fd4fd19d1a9965ffa.zip
Rebuild docs
(This used to be commit 7cafdf9e9576f7988d72fccbc2fad3fbcd3c67df)
Diffstat (limited to 'docs/htmldocs/diagnosis.html')
-rw-r--r--docs/htmldocs/diagnosis.html1115
1 files changed, 253 insertions, 862 deletions
diff --git a/docs/htmldocs/diagnosis.html b/docs/htmldocs/diagnosis.html
index 3c3b3ee4bc..35c0ea11ac 100644
--- a/docs/htmldocs/diagnosis.html
+++ b/docs/htmldocs/diagnosis.html
@@ -1,912 +1,303 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<HTML
-><HEAD
-><TITLE
->The samba checklist</TITLE
-><META
-NAME="GENERATOR"
-CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
-REL="HOME"
-TITLE="SAMBA Project Documentation"
-HREF="samba-howto-collection.html"><LINK
-REL="UP"
-TITLE="Appendixes"
-HREF="appendixes.html"><LINK
-REL="PREVIOUS"
-TITLE="Samba performance issues"
-HREF="speed.html"><LINK
-REL="NEXT"
-TITLE="Analysing and solving samba problems"
-HREF="problems.html"></HEAD
-><BODY
-CLASS="CHAPTER"
-BGCOLOR="#FFFFFF"
-TEXT="#000000"
-LINK="#0000FF"
-VLINK="#840084"
-ALINK="#0000FF"
-><DIV
-CLASS="NAVHEADER"
-><TABLE
-SUMMARY="Header navigation table"
-WIDTH="100%"
-BORDER="0"
-CELLPADDING="0"
-CELLSPACING="0"
-><TR
-><TH
-COLSPAN="3"
-ALIGN="center"
->SAMBA Project Documentation</TH
-></TR
-><TR
-><TD
-WIDTH="10%"
-ALIGN="left"
-VALIGN="bottom"
-><A
-HREF="speed.html"
-ACCESSKEY="P"
->Prev</A
-></TD
-><TD
-WIDTH="80%"
-ALIGN="center"
-VALIGN="bottom"
-></TD
-><TD
-WIDTH="10%"
-ALIGN="right"
-VALIGN="bottom"
-><A
-HREF="problems.html"
-ACCESSKEY="N"
->Next</A
-></TD
-></TR
-></TABLE
-><HR
-ALIGN="LEFT"
-WIDTH="100%"></DIV
-><DIV
-CLASS="CHAPTER"
-><H1
-><A
-NAME="DIAGNOSIS"
-></A
->Chapter 33. The samba checklist</H1
-><DIV
-CLASS="TOC"
-><DL
-><DT
-><B
->Table of Contents</B
-></DT
-><DT
->33.1. <A
-HREF="diagnosis.html#AEN4781"
->Introduction</A
-></DT
-><DT
->33.2. <A
-HREF="diagnosis.html#AEN4786"
->Assumptions</A
-></DT
-><DT
->33.3. <A
-HREF="diagnosis.html#AEN4805"
->The tests</A
-></DT
-><DT
->33.4. <A
-HREF="diagnosis.html#AEN4972"
->Still having troubles?</A
-></DT
-></DL
-></DIV
-><DIV
-CLASS="SECT1"
-><H1
-CLASS="SECT1"
-><A
-NAME="AEN4781"
->33.1. Introduction</A
-></H1
-><P
->This file contains a list of tests you can perform to validate your
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 27. The samba checklist</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.59.1"><link rel="home" href="index.html" title="SAMBA Project Documentation"><link rel="up" href="troubleshooting.html" title="Part IV. Troubleshooting"><link rel="previous" href="troubleshooting.html" title="Part IV. Troubleshooting"><link rel="next" href="problems.html" title="Chapter 28. Analysing and solving samba problems"></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 27. The samba checklist</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="troubleshooting.html">Prev</a> </td><th width="60%" align="center">Part IV. Troubleshooting</th><td width="20%" align="right"> <a accesskey="n" href="problems.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><h2 class="title"><a name="diagnosis"></a>Chapter 27. The samba checklist</h2></div><div><div class="author"><h3 class="author">Andrew Tridgell</h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><tt>&lt;<a href="mailto:tridge@samba.org">tridge@samba.org</a>&gt;</tt></p></div></div></div></div><div><div class="author"><h3 class="author">Jelmer R. Vernooij</h3><div class="affiliation"><span class="orgname">The Samba Team<br></span><div class="address"><p><tt>&lt;<a href="mailto:jelmer@samba.org">jelmer@samba.org</a>&gt;</tt></p></div></div></div></div><div><p class="pubdate">Wed Jan 15</p></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><a href="diagnosis.html#id2901594">Introduction</a></dt><dt><a href="diagnosis.html#id2901628">Assumptions</a></dt><dt><a href="diagnosis.html#id2902640">The tests</a></dt><dt><a href="diagnosis.html#id2903749">Still having troubles?</a></dt></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="id2901594"></a>Introduction</h2></div></div><p>
+This file contains a list of tests you can perform to validate your
Samba server. It also tells you what the likely cause of the problem
is if it fails any one of these steps. If it passes all these tests
-then it is probably working fine.</P
-><P
->You should do ALL the tests, in the order shown. We have tried to
+then it is probably working fine.
+</p><p>
+You should do ALL the tests, in the order shown. We have tried to
carefully choose them so later tests only use capabilities verified in
-the earlier tests.</P
-><P
->If you send one of the samba mailing lists an email saying "it doesn't work"
+the earlier tests. However, do not stop at the first error as there
+have been some instances when continuing with the tests has helped
+to solve a problem.
+</p><p>
+If you send one of the samba mailing lists an email saying &quot;it doesn't work&quot;
and you have not followed this test procedure then you should not be surprised
-your email is ignored.</P
-></DIV
-><DIV
-CLASS="SECT1"
-><H1
-CLASS="SECT1"
-><A
-NAME="AEN4786"
->33.2. Assumptions</A
-></H1
-><P
->In all of the tests it is assumed you have a Samba server called
-BIGSERVER and a PC called ACLIENT both in workgroup TESTGROUP.</P
-><P
->The procedure is similar for other types of clients.</P
-><P
->It is also assumed you know the name of an available share in your
-<TT
-CLASS="FILENAME"
->smb.conf</TT
->. I will assume this share is called <VAR
-CLASS="REPLACEABLE"
->tmp</VAR
->.
-You can add a <VAR
-CLASS="REPLACEABLE"
->tmp</VAR
-> share like by adding the
-following to <TT
-CLASS="FILENAME"
->smb.conf</TT
->:</P
-><P
-><PRE
-CLASS="PROGRAMLISTING"
->&#13;[tmp]
+if your email is ignored.
+</p></div><div class="sect1" lang="en"><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="id2901628"></a>Assumptions</h2></div></div><p>
+In all of the tests it is assumed you have a Samba server called
+BIGSERVER and a PC called ACLIENT both in workgroup TESTGROUP.
+</p><p>
+The procedure is similar for other types of clients.
+</p><p>
+It is also assumed you know the name of an available share in your
+<tt>smb.conf</tt>. I will assume this share is called <i><tt>tmp</tt></i>.
+You can add a <i><tt>tmp</tt></i> share like this by adding the
+following to <tt>smb.conf</tt>:
+</p><pre class="programlisting">
+
+[tmp]
comment = temporary files
path = /tmp
- read only = yes&#13;</PRE
-></P
-><DIV
-CLASS="NOTE"
-><P
-></P
-><TABLE
-CLASS="NOTE"
-WIDTH="100%"
-BORDER="0"
-><TR
-><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="/usr/share/sgml/docbook/stylesheet/dsssl/modular/images/note.gif"
-HSPACE="5"
-ALT="Note"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
-><P
->These tests assume version 3.0 or later of the samba suite. Some commands shown did not exist in earlier versions. </P
-></TD
-></TR
-></TABLE
-></DIV
-><P
->Please pay attention to the error messages you receive. If any error message
-reports that your server is being unfriendly you should first check that you
-IP name resolution is correctly set up. eg: Make sure your <TT
-CLASS="FILENAME"
->/etc/resolv.conf</TT
->
-file points to name servers that really do exist.</P
-><P
->Also, if you do not have DNS server access for name resolution please check
-that the settings for your <TT
-CLASS="FILENAME"
->smb.conf</TT
-> file results in <B
-CLASS="COMMAND"
->dns proxy = no</B
->. The
-best way to check this is with <KBD
-CLASS="USERINPUT"
->testparm smb.conf</KBD
->.</P
-></DIV
-><DIV
-CLASS="SECT1"
-><H1
-CLASS="SECT1"
-><A
-NAME="AEN4805"
->33.3. The tests</A
-></H1
-><DIV
-CLASS="PROCEDURE"
-><P
-><B
->Diagnosing your samba server</B
-></P
-><OL
-TYPE="1"
-><LI
-><P
->In the directory in which you store your <TT
-CLASS="FILENAME"
->smb.conf</TT
-> file, run the command
-<KBD
-CLASS="USERINPUT"
->testparm smb.conf</KBD
->. If it reports any errors then your <TT
-CLASS="FILENAME"
->smb.conf</TT
->
-configuration file is faulty.</P
-><DIV
-CLASS="NOTE"
-><P
-></P
-><TABLE
-CLASS="NOTE"
-WIDTH="100%"
-BORDER="0"
-><TR
-><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="/usr/share/sgml/docbook/stylesheet/dsssl/modular/images/note.gif"
-HSPACE="5"
-ALT="Note"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
-><P
->Your <TT
-CLASS="FILENAME"
->smb.conf</TT
-> file may be located in: <TT
-CLASS="FILENAME"
->/etc/samba</TT
->
-Or in: <TT
-CLASS="FILENAME"
->/usr/local/samba/lib</TT
-></P
-></TD
-></TR
-></TABLE
-></DIV
-></LI
-><LI
-><P
->Run the command <KBD
-CLASS="USERINPUT"
->ping BIGSERVER</KBD
-> from the PC and
-<KBD
-CLASS="USERINPUT"
->ping ACLIENT</KBD
-> from
+ read only = yes
+
+</pre><p>
+</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
+These tests assume version 3.0 or later of the samba suite.
+Some commands shown did not exist in earlier versions.
+</p></div><p>
+Please pay attention to the error messages you receive. If any error message
+reports that your server is being unfriendly you should first check that your
+IP name resolution is correctly set up. eg: Make sure your <tt>/etc/resolv.conf</tt>
+file points to name servers that really do exist.
+</p><p>
+Also, if you do not have DNS server access for name resolution please check
+that the settings for your <tt>smb.conf</tt> file results in <b>dns proxy = no</b>. The
+best way to check this is with <b><tt>testparm smb.conf</tt></b>.
+</p><p>
+It is helpful to monitor the log files during testing by using the
+<b>tail -F <i><tt>log_file_name</tt></i></b> in a separate
+terminal console (use ctrl-alt-F1 through F6 or multiple terminals in X).
+Relevant log files can be found (for default installations) in
+<tt>/usr/local/samba/var</tt>. Also, connection logs from
+machines can be found here or possibly in <tt>/var/log/samba</tt>
+depending on how or if you specified logging in your <tt>smb.conf</tt> file.
+</p><p>
+If you make changes to your <tt>smb.conf</tt> file while going through these test,
+don't forget to restart smbd and nmbd.
+</p></div><div class="sect1" lang="en"><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="id2902640"></a>The tests</h2></div></div><div class="procedure"><p class="title"><b>Procedure 27.1. Diagnosing your samba server</b></p><ol type="1"><li><p>
+In the directory in which you store your <tt>smb.conf</tt> file, run the command
+<b><tt>testparm smb.conf</tt></b>. If it reports any errors then your <tt>smb.conf</tt>
+configuration file is faulty.
+</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
+Your <tt>smb.conf</tt> file may be located in: <tt>/etc/samba</tt>
+Or in: <tt>/usr/local/samba/lib</tt>
+</p></div></li><li><p>
+Run the command <b><tt>ping BIGSERVER</tt></b> from the PC and
+<b><tt>ping ACLIENT</tt></b> from
the unix box. If you don't get a valid response then your TCP/IP
-software is not correctly installed. </P
-><P
->Note that you will need to start a "dos prompt" window on the PC to
-run ping.</P
-><P
->If you get a message saying "host not found" or similar then your DNS
-software or <TT
-CLASS="FILENAME"
->/etc/hosts</TT
-> file is not correctly setup.
+software is not correctly installed.
+</p><p>
+Note that you will need to start a &quot;dos prompt&quot; window on the PC to
+run ping.
+</p><p>
+If you get a message saying &quot;host not found&quot; or similar then your DNS
+software or <tt>/etc/hosts</tt> file is not correctly setup.
It is possible to
run samba without DNS entries for the server and client, but I assume
-you do have correct entries for the remainder of these tests. </P
-><P
->Another reason why ping might fail is if your host is running firewall
+you do have correct entries for the remainder of these tests.
+</p><p>
+Another reason why ping might fail is if your host is running firewall
software. You will need to relax the rules to let in the workstation
in question, perhaps by allowing access from another subnet (on Linux
-this is done via the <SPAN
-CLASS="APPLICATION"
->ipfwadm</SPAN
-> program.)</P
-></LI
-><LI
-><P
->Run the command <KBD
-CLASS="USERINPUT"
->smbclient -L BIGSERVER</KBD
-> on the unix box. You
-should get a list of available shares back. </P
-><P
->If you get a error message containing the string "Bad password" then
-you probably have either an incorrect <B
-CLASS="COMMAND"
->hosts allow</B
->,
-<B
-CLASS="COMMAND"
->hosts deny</B
-> or <B
-CLASS="COMMAND"
->valid users</B
-> line in your
-<TT
-CLASS="FILENAME"
->smb.conf</TT
->, or your guest account is not
-valid. Check what your guest account is using <SPAN
-CLASS="APPLICATION"
->testparm</SPAN
-> and
-temporarily remove any <B
-CLASS="COMMAND"
->hosts allow</B
->, <B
-CLASS="COMMAND"
->hosts deny</B
->, <B
-CLASS="COMMAND"
->valid users</B
-> or <B
-CLASS="COMMAND"
->invalid users</B
-> lines.</P
-><P
->If you get a "connection refused" response then the smbd server may
+this is done via the ipfwadm program.)
+</p><p>
+Note: Modern Linux distributions install ipchains/iptables by default.
+This is a common problem that is often overlooked.
+</p></li><li><p>
+Run the command <b><tt>smbclient -L BIGSERVER</tt></b> on the unix box. You
+should get a list of available shares back.
+</p><p>
+If you get a error message containing the string &quot;Bad password&quot; then
+you probably have either an incorrect <b>hosts allow</b>,
+<b>hosts deny</b> or <b>valid users</b> line in your
+<tt>smb.conf</tt>, or your guest account is not
+valid. Check what your guest account is using testparm and
+temporarily remove any <b>hosts allow</b>, <b>hosts deny</b>, <b>valid users</b> or <b>invalid users</b> lines.
+</p><p>
+If you get a &quot;connection refused&quot; response then the smbd server may
not be running. If you installed it in inetd.conf then you probably edited
that file incorrectly. If you installed it as a daemon then check that
it is running, and check that the netbios-ssn port is in a LISTEN
-state using <KBD
-CLASS="USERINPUT"
->netstat -a</KBD
->.</P
-><P
->If you get a "session request failed" then the server refused the
-connection. If it says "Your server software is being unfriendly" then
-its probably because you have invalid command line parameters to <SPAN
-CLASS="APPLICATION"
->smbd</SPAN
->,
-or a similar fatal problem with the initial startup of <SPAN
-CLASS="APPLICATION"
->smbd</SPAN
->. Also
-check your config file (<TT
-CLASS="FILENAME"
->smb.conf</TT
->) for syntax errors with <SPAN
-CLASS="APPLICATION"
->testparm</SPAN
->
+state using <b><tt>netstat -a</tt></b>.
+</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
+Some Unix / Linux systems use <b>xinetd</b> in place of
+<b>inetd</b>. Check your system documentation for the location
+of the control file/s for your particular system implementation of
+this network super daemon.
+</p></div><p>
+If you get a &quot;session request failed&quot; then the server refused the
+connection. If it says &quot;Your server software is being unfriendly&quot; then
+its probably because you have invalid command line parameters to smbd,
+or a similar fatal problem with the initial startup of smbd. Also
+check your config file (<tt>smb.conf</tt>) for syntax errors with testparm
and that the various directories where samba keeps its log and lock
-files exist.</P
-><P
->There are a number of reasons for which smbd may refuse or decline
+files exist.
+</p><p>
+There are a number of reasons for which smbd may refuse or decline
a session request. The most common of these involve one or more of
-the following <TT
-CLASS="FILENAME"
->smb.conf</TT
-> file entries:</P
-><P
-><PRE
-CLASS="PROGRAMLISTING"
-> hosts deny = ALL
+the following <tt>smb.conf</tt> file entries:
+</p><pre class="programlisting">
+ hosts deny = ALL
hosts allow = xxx.xxx.xxx.xxx/yy
- bind interfaces only = Yes</PRE
-></P
-><P
->In the above, no allowance has been made for any session requests that
+ bind interfaces only = Yes
+</pre><p>
+In the above, no allowance has been made for any session requests that
will automatically translate to the loopback adaptor address 127.0.0.1.
-To solve this problem change these lines to:</P
-><P
-><PRE
-CLASS="PROGRAMLISTING"
-> hosts deny = ALL
- hosts allow = xxx.xxx.xxx.xxx/yy 127.</PRE
-></P
-><P
->Do NOT use the <B
-CLASS="COMMAND"
->bind interfaces only</B
-> parameter where you
+To solve this problem change these lines to:
+</p><pre class="programlisting">
+ hosts deny = ALL
+ hosts allow = xxx.xxx.xxx.xxx/yy 127.
+</pre><p>
+Do NOT use the <b>bind interfaces only</b> parameter where you
may wish to
-use the samba password change facility, or where <SPAN
-CLASS="APPLICATION"
->smbclient</SPAN
-> may need to
-access local service for name resolution or for local resource
-connections. (Note: the <B
-CLASS="COMMAND"
->bind interfaces only</B
-> parameter deficiency
+use the samba password change facility, or where smbclient may need to
+access a local service for name resolution or for local resource
+connections. (Note: the <b>bind interfaces only</b> parameter deficiency
where it will not allow connections to the loopback address will be
-fixed soon).</P
-><P
->Another common cause of these two errors is having something already running
-on port 139, such as Samba (ie: smbd is running from <SPAN
-CLASS="APPLICATION"
->inetd</SPAN
-> already) or
-something like Digital's Pathworks. Check your <TT
-CLASS="FILENAME"
->inetd.conf</TT
-> file before trying
-to start <SPAN
-CLASS="APPLICATION"
->smbd</SPAN
-> as a daemon, it can avoid a lot of frustration!</P
-><P
->And yet another possible cause for failure of this test is when the subnet mask
+fixed soon).
+</p><p>
+Another common cause of these two errors is having something already running
+on port 139, such as Samba (ie: smbd is running from inetd already) or
+something like Digital's Pathworks. Check your <tt>inetd.conf</tt> file before trying
+to start smbd as a daemon, it can avoid a lot of frustration!
+</p><p>
+And yet another possible cause for failure of this test is when the subnet mask
and / or broadcast address settings are incorrect. Please check that the
network interface IP Address / Broadcast Address / Subnet Mask settings are
-correct and that Samba has correctly noted these in the <TT
-CLASS="FILENAME"
->log.nmb</TT
-> file.</P
-></LI
-><LI
-><P
->Run the command <KBD
-CLASS="USERINPUT"
->nmblookup -B BIGSERVER __SAMBA__</KBD
->. You should get the
-IP address of your Samba server back.</P
-><P
->If you don't then nmbd is incorrectly installed. Check your <TT
-CLASS="FILENAME"
->inetd.conf</TT
->
+correct and that Samba has correctly noted these in the <tt>log.nmb</tt> file.
+</p></li><li><p>
+Run the command <b><tt>nmblookup -B BIGSERVER __SAMBA__</tt></b>. You should get the
+IP address of your Samba server back.
+</p><p>
+If you don't then nmbd is incorrectly installed. Check your <tt>inetd.conf</tt>
if you run it from there, or that the daemon is running and listening
-to udp port 137.</P
-><P
->One common problem is that many inetd implementations can't take many
+to udp port 137.
+</p><p>
+One common problem is that many inetd implementations can't take many
parameters on the command line. If this is the case then create a
one-line script that contains the right parameters and run that from
-inetd.</P
-></LI
-><LI
-><P
->run the command <KBD
-CLASS="USERINPUT"
->nmblookup -B ACLIENT '*'</KBD
-></P
-><P
->You should get the PCs IP address back. If you don't then the client
+inetd.
+</p></li><li><p>run the command <b><tt>nmblookup -B ACLIENT '*'</tt></b></p><p>
+You should get the PCs IP address back. If you don't then the client
software on the PC isn't installed correctly, or isn't started, or you
-got the name of the PC wrong. </P
-><P
->If ACLIENT doesn't resolve via DNS then use the IP address of the
-client in the above test.</P
-></LI
-><LI
-><P
->Run the command <KBD
-CLASS="USERINPUT"
->nmblookup -d 2 '*'</KBD
-></P
-><P
->This time we are trying the same as the previous test but are trying
+got the name of the PC wrong.
+</p><p>
+If ACLIENT doesn't resolve via DNS then use the IP address of the
+client in the above test.
+</p></li><li><p>
+Run the command <b><tt>nmblookup -d 2 '*'</tt></b>
+</p><p>
+This time we are trying the same as the previous test but are trying
it via a broadcast to the default broadcast address. A number of
Netbios/TCPIP hosts on the network should respond, although Samba may
not catch all of the responses in the short time it listens. You
-should see "got a positive name query response" messages from several
-hosts.</P
-><P
->If this doesn't give a similar result to the previous test then
+should see &quot;got a positive name query response&quot; messages from several
+hosts.
+</p><p>
+If this doesn't give a similar result to the previous test then
nmblookup isn't correctly getting your broadcast address through its
-automatic mechanism. In this case you should experiment use the
-<B
-CLASS="COMMAND"
->interfaces</B
-> option in <TT
-CLASS="FILENAME"
->smb.conf</TT
-> to manually configure your IP
-address, broadcast and netmask. </P
-><P
->If your PC and server aren't on the same subnet then you will need to
-use the <VAR
-CLASS="PARAMETER"
->-B</VAR
-> option to set the broadcast address to the that of the PCs
-subnet.</P
-><P
->This test will probably fail if your subnet mask and broadcast address are
-not correct. (Refer to TEST 3 notes above).</P
-></LI
-><LI
-><P
->Run the command <KBD
-CLASS="USERINPUT"
->smbclient //BIGSERVER/TMP</KBD
->. You should
+automatic mechanism. In this case you should experiment with the
+<b>interfaces</b> option in <tt>smb.conf</tt> to manually configure your IP
+address, broadcast and netmask.
+</p><p>
+If your PC and server aren't on the same subnet then you will need to
+use the <i><tt>-B</tt></i> option to set the broadcast address to that of the PCs
+subnet.
+</p><p>
+This test will probably fail if your subnet mask and broadcast address are
+not correct. (Refer to TEST 3 notes above).
+</p></li><li><p>
+Run the command <b><tt>smbclient //BIGSERVER/TMP</tt></b>. You should
then be prompted for a password. You should use the password of the account
you are logged into the unix box with. If you want to test with
-another account then add the <VAR
-CLASS="PARAMETER"
->-U <VAR
-CLASS="REPLACEABLE"
->accountname</VAR
-></VAR
-> option to the end of
+another account then add the <i><tt>-U <i><tt>accountname</tt></i></tt></i> option to the end of
the command line. eg:
-<KBD
-CLASS="USERINPUT"
->smbclient //bigserver/tmp -Ujohndoe</KBD
-></P
-><DIV
-CLASS="NOTE"
-><P
-></P
-><TABLE
-CLASS="NOTE"
-WIDTH="100%"
-BORDER="0"
-><TR
-><TD
-WIDTH="25"
-ALIGN="CENTER"
-VALIGN="TOP"
-><IMG
-SRC="/usr/share/sgml/docbook/stylesheet/dsssl/modular/images/note.gif"
-HSPACE="5"
-ALT="Note"></TD
-><TD
-ALIGN="LEFT"
-VALIGN="TOP"
-><P
->It is possible to specify the password along with the username
+<b><tt>smbclient //bigserver/tmp -Ujohndoe</tt></b>
+</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
+It is possible to specify the password along with the username
as follows:
-<KBD
-CLASS="USERINPUT"
->smbclient //bigserver/tmp -Ujohndoe%secret</KBD
-></P
-></TD
-></TR
-></TABLE
-></DIV
-><P
->Once you enter the password you should get the <SAMP
-CLASS="PROMPT"
->smb&#62;</SAMP
-> prompt. If you
-don't then look at the error message. If it says "invalid network
-name" then the service "tmp" is not correctly setup in your <TT
-CLASS="FILENAME"
->smb.conf</TT
->.</P
-><P
->If it says "bad password" then the likely causes are:</P
-><P
-></P
-><OL
-TYPE="1"
-><LI
-><P
-> you have shadow passords (or some other password system) but didn't
- compile in support for them in <SPAN
-CLASS="APPLICATION"
->smbd</SPAN
->
- </P
-></LI
-><LI
-><P
-> your <B
-CLASS="COMMAND"
->valid users</B
-> configuration is incorrect
- </P
-></LI
-><LI
-><P
-> you have a mixed case password and you haven't enabled the <B
-CLASS="COMMAND"
->password
- level</B
-> option at a high enough level
- </P
-></LI
-><LI
-><P
-> the <B
-CLASS="COMMAND"
->path =</B
-> line in <TT
-CLASS="FILENAME"
->smb.conf</TT
-> is incorrect. Check it with <SPAN
-CLASS="APPLICATION"
->testparm</SPAN
->
- </P
-></LI
-><LI
-><P
-> you enabled password encryption but didn't create the SMB encrypted
+<b><tt>smbclient //bigserver/tmp -Ujohndoe%secret</tt></b>
+</p></div><p>
+Once you enter the password you should get the <tt>smb&gt;</tt> prompt. If you
+don't then look at the error message. If it says &quot;invalid network
+name&quot; then the service &quot;tmp&quot; is not correctly setup in your <tt>smb.conf</tt>.
+</p><p>
+If it says &quot;bad password&quot; then the likely causes are:
+</p><div class="orderedlist"><ol type="1"><li><p>
+ you have shadow passords (or some other password system) but didn't
+ compile in support for them in smbd
+ </p></li><li><p>
+ your <b>valid users</b> configuration is incorrect
+ </p></li><li><p>
+ you have a mixed case password and you haven't enabled the <b>password
+ level</b> option at a high enough level
+ </p></li><li><p>
+ the <b>path =</b> line in <tt>smb.conf</tt> is incorrect. Check it with testparm
+ </p></li><li><p>
+ you enabled password encryption but didn't create the SMB encrypted
password file
- </P
-></LI
-></OL
-><P
->Once connected you should be able to use the commands
-<B
-CLASS="COMMAND"
->dir</B
-> <B
-CLASS="COMMAND"
->get</B
-> <B
-CLASS="COMMAND"
->put</B
-> etc.
-Type <B
-CLASS="COMMAND"
->help <VAR
-CLASS="REPLACEABLE"
->command</VAR
-></B
-> for instructions. You should
+ </p></li></ol></div><p>
+Once connected you should be able to use the commands
+<b>dir</b> <b>get</b> <b>put</b> etc.
+Type <b>help <i><tt>command</tt></i></b> for instructions. You should
especially check that the amount of free disk space shown is correct
-when you type <B
-CLASS="COMMAND"
->dir</B
->.</P
-></LI
-><LI
-><P
->On the PC type the command <KBD
-CLASS="USERINPUT"
->net view \\BIGSERVER</KBD
->. You will
-need to do this from within a "dos prompt" window. You should get back a
-list of available shares on the server.</P
-><P
->If you get a "network name not found" or similar error then netbios
+when you type <b>dir</b>.
+</p></li><li><p>
+On the PC, type the command <b><tt>net view \\BIGSERVER</tt></b>. You will
+need to do this from within a &quot;dos prompt&quot; window. You should get back a
+list of available shares on the server.
+</p><p>
+If you get a &quot;network name not found&quot; or similar error then netbios
name resolution is not working. This is usually caused by a problem in
nmbd. To overcome it you could do one of the following (you only need
-to choose one of them):</P
-><P
-></P
-><OL
-TYPE="1"
-><LI
-><P
-> fixup the <SPAN
-CLASS="APPLICATION"
->nmbd</SPAN
-> installation</P
-></LI
-><LI
-><P
-> add the IP address of BIGSERVER to the <B
-CLASS="COMMAND"
->wins server</B
-> box in the
- advanced tcp/ip setup on the PC.</P
-></LI
-><LI
-><P
-> enable windows name resolution via DNS in the advanced section of
- the tcp/ip setup</P
-></LI
-><LI
-><P
-> add BIGSERVER to your lmhosts file on the PC.</P
-></LI
-></OL
-><P
->If you get a "invalid network name" or "bad password error" then the
-same fixes apply as they did for the <KBD
-CLASS="USERINPUT"
->smbclient -L</KBD
-> test above. In
-particular, make sure your <B
-CLASS="COMMAND"
->hosts allow</B
-> line is correct (see the man
-pages)</P
-><P
->Also, do not overlook that fact that when the workstation requests the
+to choose one of them):
+</p><div class="orderedlist"><ol type="1"><li><p>
+ fixup the nmbd installation
+</p></li><li><p>
+ add the IP address of BIGSERVER to the <b>wins server</b> box in the
+ advanced tcp/ip setup on the PC.
+</p></li><li><p>
+ enable windows name resolution via DNS in the advanced section of
+ the tcp/ip setup
+</p></li><li><p>
+ add BIGSERVER to your lmhosts file on the PC.
+</p></li></ol></div><p>
+If you get a &quot;invalid network name&quot; or &quot;bad password error&quot; then the
+same fixes apply as they did for the <b><tt>smbclient -L</tt></b> test above. In
+particular, make sure your <b>hosts allow</b> line is correct (see the man
+pages)
+</p><p>
+Also, do not overlook that fact that when the workstation requests the
connection to the samba server it will attempt to connect using the
name with which you logged onto your Windows machine. You need to make
sure that an account exists on your Samba server with that exact same
-name and password.</P
-><P
->If you get "specified computer is not receiving requests" or similar
+name and password.
+</p><p>
+If you get &quot;specified computer is not receiving requests&quot; or similar
it probably means that the host is not contactable via tcp services.
Check to see if the host is running tcp wrappers, and if so add an entry in
-the <TT
-CLASS="FILENAME"
->hosts.allow</TT
-> file for your client (or subnet, etc.)</P
-></LI
-><LI
-><P
->Run the command <KBD
-CLASS="USERINPUT"
->net use x: \\BIGSERVER\TMP</KBD
->. You should
-be prompted for a password then you should get a "command completed
-successfully" message. If not then your PC software is incorrectly
-installed or your smb.conf is incorrect. make sure your <B
-CLASS="COMMAND"
->hosts allow</B
->
-and other config lines in <TT
-CLASS="FILENAME"
->smb.conf</TT
-> are correct.</P
-><P
->It's also possible that the server can't work out what user name to
-connect you as. To see if this is the problem add the line <B
-CLASS="COMMAND"
->user =
-<VAR
-CLASS="REPLACEABLE"
->username</VAR
-></B
-> to the <B
-CLASS="COMMAND"
->[tmp]</B
-> section of
-<TT
-CLASS="FILENAME"
->smb.conf</TT
-> where <VAR
-CLASS="REPLACEABLE"
->username</VAR
-> is the
+the <tt>hosts.allow</tt> file for your client (or subnet, etc.)
+</p></li><li><p>
+Run the command <b><tt>net use x: \\BIGSERVER\TMP</tt></b>. You should
+be prompted for a password then you should get a &quot;command completed
+successfully&quot; message. If not then your PC software is incorrectly
+installed or your smb.conf is incorrect. make sure your <b>hosts allow</b>
+and other config lines in <tt>smb.conf</tt> are correct.
+</p><p>
+It's also possible that the server can't work out what user name to
+connect you as. To see if this is the problem add the line <b>user =
+<i><tt>username</tt></i></b> to the <b>[tmp]</b> section of
+<tt>smb.conf</tt> where <i><tt>username</tt></i> is the
username corresponding to the password you typed. If you find this
-fixes things you may need the username mapping option. </P
-><P
->It might also be the case that your client only sends encrypted passwords
-and you have <B
-CLASS="COMMAND"
->encrypt passwords = no</B
-> in <TT
-CLASS="FILENAME"
->smb.conf</TT
->
-Turn it back on to fix.</P
-></LI
-><LI
-><P
->Run the command <KBD
-CLASS="USERINPUT"
->nmblookup -M <VAR
-CLASS="REPLACEABLE"
->testgroup</VAR
-></KBD
-> where
-<VAR
-CLASS="REPLACEABLE"
->testgroup</VAR
-> is the name of the workgroup that your Samba server and
+fixes things you may need the username mapping option.
+</p><p>
+It might also be the case that your client only sends encrypted passwords
+and you have <b>encrypt passwords = no</b> in <tt>smb.conf</tt>
+Turn it back on to fix.
+</p></li><li><p>
+Run the command <b><tt>nmblookup -M <i><tt>testgroup</tt></i></tt></b> where
+<i><tt>testgroup</tt></i> is the name of the workgroup that your Samba server and
Windows PCs belong to. You should get back the IP address of the
-master browser for that workgroup.</P
-><P
->If you don't then the election process has failed. Wait a minute to
+master browser for that workgroup.
+</p><p>
+If you don't then the election process has failed. Wait a minute to
see if it is just being slow then try again. If it still fails after
-that then look at the browsing options you have set in <TT
-CLASS="FILENAME"
->smb.conf</TT
->. Make
-sure you have <B
-CLASS="COMMAND"
->preferred master = yes</B
-> to ensure that
-an election is held at startup.</P
-></LI
-><LI
-><P
->From file manager try to browse the server. Your samba server should
+that then look at the browsing options you have set in <tt>smb.conf</tt>. Make
+sure you have <b>preferred master = yes</b> to ensure that
+an election is held at startup.
+</p></li><li><p>
+&gt;From file manager try to browse the server. Your samba server should
appear in the browse list of your local workgroup (or the one you
specified in smb.conf). You should be able to double click on the name
-of the server and get a list of shares. If you get a "invalid
-password" error when you do then you are probably running WinNT and it
+of the server and get a list of shares. If you get a &quot;invalid
+password&quot; error when you do then you are probably running WinNT and it
is refusing to browse a server that has no encrypted password
capability and is in user level security mode. In this case either set
-<B
-CLASS="COMMAND"
->security = server</B
-> AND
-<B
-CLASS="COMMAND"
->password server = Windows_NT_Machine</B
-> in your
-<TT
-CLASS="FILENAME"
->smb.conf</TT
-> file, or make sure <B
-CLASS="COMMAND"
->encrypted passwords</B
-> is
-set to "yes".</P
-></LI
-></OL
-></DIV
-></DIV
-><DIV
-CLASS="SECT1"
-><H1
-CLASS="SECT1"
-><A
-NAME="AEN4972"
->33.4. Still having troubles?</A
-></H1
-><P
->Read the chapter on
-<A
-HREF="problems.html"
->Analysing and Solving Problems</A
->.</P
-></DIV
-></DIV
-><DIV
-CLASS="NAVFOOTER"
-><HR
-ALIGN="LEFT"
-WIDTH="100%"><TABLE
-SUMMARY="Footer navigation table"
-WIDTH="100%"
-BORDER="0"
-CELLPADDING="0"
-CELLSPACING="0"
-><TR
-><TD
-WIDTH="33%"
-ALIGN="left"
-VALIGN="top"
-><A
-HREF="speed.html"
-ACCESSKEY="P"
->Prev</A
-></TD
-><TD
-WIDTH="34%"
-ALIGN="center"
-VALIGN="top"
-><A
-HREF="samba-howto-collection.html"
-ACCESSKEY="H"
->Home</A
-></TD
-><TD
-WIDTH="33%"
-ALIGN="right"
-VALIGN="top"
-><A
-HREF="problems.html"
-ACCESSKEY="N"
->Next</A
-></TD
-></TR
-><TR
-><TD
-WIDTH="33%"
-ALIGN="left"
-VALIGN="top"
->Samba performance issues</TD
-><TD
-WIDTH="34%"
-ALIGN="center"
-VALIGN="top"
-><A
-HREF="appendixes.html"
-ACCESSKEY="U"
->Up</A
-></TD
-><TD
-WIDTH="33%"
-ALIGN="right"
-VALIGN="top"
->Analysing and solving samba problems</TD
-></TR
-></TABLE
-></DIV
-></BODY
-></HTML
-> \ No newline at end of file
+<b>security = server</b> AND
+<b>password server = Windows_NT_Machine</b> in your
+<tt>smb.conf</tt> file, or make sure <b>encrypted passwords</b> is
+set to &quot;yes&quot;.
+</p></li></ol></div></div><div class="sect1" lang="en"><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="id2903749"></a>Still having troubles?</h2></div></div><p>Read the chapter on
+<a href="problems.html" title="Chapter 28. Analysing and solving samba problems">Analysing and Solving Problems</a>.
+</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="troubleshooting.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="troubleshooting.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="problems.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Part IV. Troubleshooting </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 28. Analysing and solving samba problems</td></tr></table></div></body></html>