- Timestamp:
- May 27, 2009, 9:08:03 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/docs/htmldocs/Samba3-HOWTO/diagnosis.html
r226 r231 1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 38. The Samba Checklist</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.7 3.1"><link rel="start" href="index.html" title="The Official Samba 3.2.x HOWTO and Reference Guide"><link rel="up" href="troubleshooting.html" title="Part V. Troubleshooting"><link rel="prev" href="troubleshooting.html" title="Part V. Troubleshooting"><link rel="next" href="problems.html" title="Chapter 39. Analyzing 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 38. 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 V. 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><div><h2 class="title"><a name="diagnosis"></a>Chapter 38. The Samba Checklist</h2></div><div><div class="author"><h3 class="author"><span class="firstname">Andrew</span> <span class="surname">Tridgell</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:tridge@samba.org">tridge@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Jelmer</span> <span class="othername">R.</span> <span class="surname">Vernooij</span></h3><div class="affiliation"><span class="orgname">The Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:jelmer@samba.org">jelmer@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Dan</span> <span class="surname">Shearer</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:dan@samba.org">dan@samba.org</a>></code></p></div></div></div></div><div><p class="pubdate">Wed Jan 15</p></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="diagnosis.html#id2675751">Introduction</a></span></dt><dt><span class="sect1"><a href="diagnosis.html#id2675790">Assumptions</a></span></dt><dt><span class="sect1"><a href="diagnosis.html#id2676083">The Tests</a></span></dt></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2675751"></a>Introduction</h2></div></div></div><p>2 <a class="indexterm" name="id26 75759"></a>1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 38. The Samba Checklist</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"><link rel="home" href="index.html" title="The Official Samba 3.2.x HOWTO and Reference Guide"><link rel="up" href="troubleshooting.html" title="Part V. Troubleshooting"><link rel="prev" href="troubleshooting.html" title="Part V. Troubleshooting"><link rel="next" href="problems.html" title="Chapter 39. Analyzing 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 38. 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 V. 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><div><h2 class="title"><a name="diagnosis"></a>Chapter 38. The Samba Checklist</h2></div><div><div class="author"><h3 class="author"><span class="firstname">Andrew</span> <span class="orgname">Samba Team</span> <span class="surname">Tridgell</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:tridge@samba.org">tridge@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Jelmer</span> <span class="othername">R.</span> <span class="orgname">The Samba Team</span> <span class="surname">Vernooij</span></h3><div class="affiliation"><span class="orgname">The Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:jelmer@samba.org">jelmer@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Dan</span> <span class="orgname">Samba Team</span> <span class="surname">Shearer</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:dan@samba.org">dan@samba.org</a>></code></p></div></div></div></div><div><p class="pubdate">Wed Jan 15</p></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="diagnosis.html#id2682745">Introduction</a></span></dt><dt><span class="sect1"><a href="diagnosis.html#id2682784">Assumptions</a></span></dt><dt><span class="sect1"><a href="diagnosis.html#id2683077">The Tests</a></span></dt></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2682745"></a>Introduction</h2></div></div></div><p> 2 <a class="indexterm" name="id2682753"></a> 3 3 This file contains a list of tests you can perform to validate your 4 4 Samba server. It also tells you what the likely cause of the problem … … 15 15 and you have not followed this test procedure, you should not be surprised 16 16 if your email is ignored. 17 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id26 75790"></a>Assumptions</h2></div></div></div><p>17 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2682784"></a>Assumptions</h2></div></div></div><p> 18 18 In all of the tests, it is assumed you have a Samba server called 19 19 BIGSERVER and a PC called ACLIENT, both in workgroup TESTGROUP. … … 25 25 You can add a <em class="parameter"><code>tmp</code></em> share like this by adding the 26 26 lines shown in <a class="link" href="diagnosis.html#tmpshare" title="Example 38.1. smb.conf with [tmp] Share">the next example</a>. 27 </p><div class="example"><a name="tmpshare"></a><p class="title"><b>Example 38.1. smb.conf with [tmp] Share</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[tmp]</code></em></td></tr><tr><td><a class="indexterm" name="id26 75862"></a><em class="parameter"><code>comment = temporary files </code></em></td></tr><tr><td><a class="indexterm" name="id2675873"></a><em class="parameter"><code>path = /tmp</code></em></td></tr><tr><td><a class="indexterm" name="id2675885"></a><em class="parameter"><code>read only = yes</code></em></td></tr></table></div></div><br class="example-break"><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>27 </p><div class="example"><a name="tmpshare"></a><p class="title"><b>Example 38.1. smb.conf with [tmp] Share</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[tmp]</code></em></td></tr><tr><td><a class="indexterm" name="id2682855"></a><em class="parameter"><code>comment = temporary files </code></em></td></tr><tr><td><a class="indexterm" name="id2682867"></a><em class="parameter"><code>path = /tmp</code></em></td></tr><tr><td><a class="indexterm" name="id2682878"></a><em class="parameter"><code>read only = yes</code></em></td></tr></table></div></div><br class="example-break"><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p> 28 28 These tests assume version 3.0.0 or later of the Samba suite. 29 29 Some commands shown did not exist in earlier versions. 30 30 </p></div><p> 31 <a class="indexterm" name="id26 75906"></a>32 <a class="indexterm" name="id26 75913"></a>33 <a class="indexterm" name="id26 75920"></a>31 <a class="indexterm" name="id2682899"></a> 32 <a class="indexterm" name="id2682906"></a> 33 <a class="indexterm" name="id2682913"></a> 34 34 Please pay attention to the error messages you receive. If any error message 35 35 reports that your server is being unfriendly, you should first check that your … … 37 37 file points to name servers that really do exist. 38 38 </p><p> 39 <a class="indexterm" name="id26 75941"></a>40 <a class="indexterm" name="id26 75948"></a>41 <a class="indexterm" name="id26 75954"></a>42 <a class="indexterm" name="id26 75961"></a>39 <a class="indexterm" name="id2682934"></a> 40 <a class="indexterm" name="id2682941"></a> 41 <a class="indexterm" name="id2682948"></a> 42 <a class="indexterm" name="id2682954"></a> 43 43 Also, if you do not have DNS server access for name resolution, please check 44 44 that the settings for your <code class="filename">smb.conf</code> file results in <em class="parameter"><code>dns proxy = no</code></em>. The 45 45 best way to check this is with <code class="literal">testparm smb.conf</code>. 46 46 </p><p> 47 <a class="indexterm" name="id26 75992"></a>48 <a class="indexterm" name="id26 75999"></a>49 <a class="indexterm" name="id26 76005"></a>50 <a class="indexterm" name="id26 76012"></a>51 <a class="indexterm" name="id26 76019"></a>47 <a class="indexterm" name="id2682985"></a> 48 <a class="indexterm" name="id2682992"></a> 49 <a class="indexterm" name="id2682999"></a> 50 <a class="indexterm" name="id2683006"></a> 51 <a class="indexterm" name="id2683013"></a> 52 52 It is helpful to monitor the log files during testing by using the 53 53 <code class="literal">tail -F log_file_name</code> in a separate … … 60 60 If you make changes to your <code class="filename">smb.conf</code> file while going through these test, 61 61 remember to restart <span class="application">smbd</span> and <span class="application">nmbd</span>. 62 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id26 76083"></a>The Tests</h2></div></div></div><div class="procedure"><a name="id2676089"></a><p class="title"><b>Procedure 38.1. Diagnosing Your Samba Server</b></p><ol type="1"><li><p>63 <a class="indexterm" name="id26 76102"></a>62 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2683077"></a>The Tests</h2></div></div></div><div class="procedure"><a name="id2683082"></a><p class="title"><b>Procedure 38.1. Diagnosing Your Samba Server</b></p><ol type="1"><li><p> 63 <a class="indexterm" name="id2683095"></a> 64 64 In the directory in which you store your <code class="filename">smb.conf</code> file, run the command 65 65 <code class="literal">testparm smb.conf</code>. If it reports any errors, then your <code class="filename">smb.conf</code> 66 66 configuration file is faulty. 67 67 </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p> 68 <a class="indexterm" name="id26 76133"></a>69 <a class="indexterm" name="id26 76140"></a>68 <a class="indexterm" name="id2683126"></a> 69 <a class="indexterm" name="id2683133"></a> 70 70 Your <code class="filename">smb.conf</code> file may be located in <code class="filename">/etc/samba</code> 71 71 or in <code class="filename">/usr/local/samba/lib</code>. 72 72 </p></div></li><li><p> 73 <a class="indexterm" name="id26 76174"></a>73 <a class="indexterm" name="id2683167"></a> 74 74 Run the command <code class="literal">ping BIGSERVER</code> from the PC and 75 75 <code class="literal">ping ACLIENT</code> from the UNIX box. If you do not get a valid response, … … 78 78 You will need to start a “<span class="quote">DOS prompt</span>” window on the PC to run ping. 79 79 </p><p> 80 <a class="indexterm" name="id26 76206"></a>81 <a class="indexterm" name="id26 76213"></a>82 <a class="indexterm" name="id26 76220"></a>80 <a class="indexterm" name="id2683199"></a> 81 <a class="indexterm" name="id2683206"></a> 82 <a class="indexterm" name="id2683213"></a> 83 83 If you get a message saying “<span class="quote"><span class="errorname">host not found</span></span>” or a similar message, then 84 84 your DNS software or <code class="filename">/etc/hosts</code> file is not correctly set up. If using DNS, check that … … 87 87 remainder of these tests. 88 88 </p><p> 89 <a class="indexterm" name="id26 76252"></a>90 <a class="indexterm" name="id26 76259"></a>91 <a class="indexterm" name="id26 76266"></a>89 <a class="indexterm" name="id2683245"></a> 90 <a class="indexterm" name="id2683252"></a> 91 <a class="indexterm" name="id2683259"></a> 92 92 Another reason why ping might fail is if your host is running firewall 93 93 software. You will need to relax the rules to let in the workstation … … 99 99 This is a common problem that is often overlooked. 100 100 </p></div><p> 101 <a class="indexterm" name="id26 76301"></a>102 <a class="indexterm" name="id26 76307"></a>101 <a class="indexterm" name="id2683294"></a> 102 <a class="indexterm" name="id2683301"></a> 103 103 If you wish to check what firewall rules may be present in a system under test, simply run 104 104 <code class="literal">iptables -L -v</code>, or if <em class="parameter"><code>ipchains</code></em>-based firewall rules are in use, … … 134 134 on the UNIX box. You should get back a list of available shares. 135 135 </p><p> 136 <a class="indexterm" name="id26 76399"></a>137 <a class="indexterm" name="id26 76406"></a>138 <a class="indexterm" name="id26 76413"></a>139 <a class="indexterm" name="id26 76420"></a>140 <a class="indexterm" name="id26 76426"></a>141 <a class="indexterm" name="id26 76433"></a>136 <a class="indexterm" name="id2683392"></a> 137 <a class="indexterm" name="id2683399"></a> 138 <a class="indexterm" name="id2683406"></a> 139 <a class="indexterm" name="id2683413"></a> 140 <a class="indexterm" name="id2683420"></a> 141 <a class="indexterm" name="id2683427"></a> 142 142 If you get an error message containing the string “<span class="quote">bad password</span>”, then 143 143 you probably have either an incorrect <em class="parameter"><code>hosts allow</code></em>, … … 147 147 <em class="parameter"><code>valid users</code></em>, or <em class="parameter"><code>invalid users</code></em> lines. 148 148 </p><p> 149 <a class="indexterm" name="id26 76504"></a>149 <a class="indexterm" name="id2683497"></a> 150 150 If you get a message <code class="literal">connection refused</code> response, then the <code class="literal">smbd</code> server may 151 151 not be running. If you installed it in <code class="filename">inetd.conf</code>, then you probably edited … … 154 154 state using <code class="literal">netstat -a</code>. 155 155 </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p> 156 <a class="indexterm" name="id26 76543"></a>157 <a class="indexterm" name="id26 76550"></a>156 <a class="indexterm" name="id2683536"></a> 157 <a class="indexterm" name="id2683543"></a> 158 158 Some UNIX/Linux systems use <code class="literal">xinetd</code> in place of 159 159 <code class="literal">inetd</code>. Check your system documentation for the location … … 172 172 a session request. The most common of these involve one or more of 173 173 the <code class="filename">smb.conf</code> file entries as shown in <a class="link" href="diagnosis.html#modif1" title="Example 38.2. Configuration for Allowing Connections Only from a Certain Subnet">the next example</a>. 174 </p><div class="example"><a name="modif1"></a><p class="title"><b>Example 38.2. Configuration for Allowing Connections Only from a Certain Subnet</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[globals]</code></em></td></tr><tr><td><a class="indexterm" name="id26 76663"></a><em class="parameter"><code>hosts deny = ALL</code></em></td></tr><tr><td><a class="indexterm" name="id2676674"></a><em class="parameter"><code>hosts allow = xxx.xxx.xxx.xxx/yy</code></em></td></tr><tr><td><a class="indexterm" name="id2676686"></a><em class="parameter"><code>interfaces = eth0</code></em></td></tr><tr><td><a class="indexterm" name="id2676698"></a><em class="parameter"><code>bind interfaces only = Yes</code></em></td></tr></table></div></div><br class="example-break"><p>175 <a class="indexterm" name="id26 76713"></a>174 </p><div class="example"><a name="modif1"></a><p class="title"><b>Example 38.2. Configuration for Allowing Connections Only from a Certain Subnet</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[globals]</code></em></td></tr><tr><td><a class="indexterm" name="id2683656"></a><em class="parameter"><code>hosts deny = ALL</code></em></td></tr><tr><td><a class="indexterm" name="id2683667"></a><em class="parameter"><code>hosts allow = xxx.xxx.xxx.xxx/yy</code></em></td></tr><tr><td><a class="indexterm" name="id2683679"></a><em class="parameter"><code>interfaces = eth0</code></em></td></tr><tr><td><a class="indexterm" name="id2683691"></a><em class="parameter"><code>bind interfaces only = Yes</code></em></td></tr></table></div></div><br class="example-break"><p> 175 <a class="indexterm" name="id2683706"></a> 176 176 In <a class="link" href="diagnosis.html#modif1" title="Example 38.2. Configuration for Allowing Connections Only from a Certain Subnet">Configuration for Allowing Connections Only from a Certain Subnet</a>, no 177 177 allowance has been made for any session requests that will automatically translate to the loopback adapter 178 178 address 127.0.0.1. To solve this problem, change these lines as shown in <a class="link" href="diagnosis.html#modif2" title="Example 38.3. Configuration for Allowing Connections from a Certain Subnet and localhost">the following 179 179 example</a>. 180 </p><div class="example"><a name="modif2"></a><p class="title"><b>Example 38.3. Configuration for Allowing Connections from a Certain Subnet and localhost</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[globals]</code></em></td></tr><tr><td><a class="indexterm" name="id26 76765"></a><em class="parameter"><code>hosts deny = ALL</code></em></td></tr><tr><td><a class="indexterm" name="id2676776"></a><em class="parameter"><code>hosts allow = xxx.xxx.xxx.xxx/yy 127.</code></em></td></tr><tr><td><a class="indexterm" name="id2676788"></a><em class="parameter"><code>interfaces = eth0 lo</code></em></td></tr></table></div></div><br class="example-break"><p>181 <a class="indexterm" name="id26 76803"></a>182 <a class="indexterm" name="id26 76810"></a>180 </p><div class="example"><a name="modif2"></a><p class="title"><b>Example 38.3. Configuration for Allowing Connections from a Certain Subnet and localhost</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[globals]</code></em></td></tr><tr><td><a class="indexterm" name="id2683758"></a><em class="parameter"><code>hosts deny = ALL</code></em></td></tr><tr><td><a class="indexterm" name="id2683770"></a><em class="parameter"><code>hosts allow = xxx.xxx.xxx.xxx/yy 127.</code></em></td></tr><tr><td><a class="indexterm" name="id2683782"></a><em class="parameter"><code>interfaces = eth0 lo</code></em></td></tr></table></div></div><br class="example-break"><p> 181 <a class="indexterm" name="id2683797"></a> 182 <a class="indexterm" name="id2683803"></a> 183 183 Another common cause of these two errors is having something already running on port <code class="constant">139</code>, 184 184 such as Samba (<span class="application">smbd</span> is running from <span class="application">inetd</span> already) or Digital's Pathworks. Check … … 186 186 lot of frustration! 187 187 </p><p> 188 <a class="indexterm" name="id26 76855"></a>189 <a class="indexterm" name="id26 76861"></a>190 <a class="indexterm" name="id26 76868"></a>191 <a class="indexterm" name="id26 76875"></a>192 <a class="indexterm" name="id26 76882"></a>188 <a class="indexterm" name="id2683848"></a> 189 <a class="indexterm" name="id2683854"></a> 190 <a class="indexterm" name="id2683861"></a> 191 <a class="indexterm" name="id2683868"></a> 192 <a class="indexterm" name="id2683875"></a> 193 193 And yet another possible cause for failure of this test is when the subnet mask and/or broadcast address 194 194 settings are incorrect. Please check that the network interface IP address/broadcast address/subnet mask 195 195 settings are correct and that Samba has correctly noted these in the <code class="filename">log.nmbd</code> file. 196 196 </p></li><li><p> 197 <a class="indexterm" name="id26 76908"></a>197 <a class="indexterm" name="id2683901"></a> 198 198 Run the command <code class="literal">nmblookup -B BIGSERVER __SAMBA__</code>. 199 199 You should get back the IP address of your Samba server. 200 200 </p><p> 201 <a class="indexterm" name="id26 76925"></a>202 <a class="indexterm" name="id26 76932"></a>203 <a class="indexterm" name="id26 76939"></a>201 <a class="indexterm" name="id2683919"></a> 202 <a class="indexterm" name="id2683926"></a> 203 <a class="indexterm" name="id2683933"></a> 204 204 If you do not, then <span class="application">nmbd</span> is incorrectly installed. Check your <code class="filename">inetd.conf</code> 205 205 if you run it from there, or that the daemon is running and listening to UDP port 137. … … 210 210 inetd. 211 211 </p></li><li><p> 212 <a class="indexterm" name="id26 76976"></a>212 <a class="indexterm" name="id2683969"></a> 213 213 Run the command <code class="literal">nmblookup -B ACLIENT `*'</code>. 214 214 </p><p> … … 229 229 messages from several hosts. 230 230 </p><p> 231 <a class="indexterm" name="id26 77033"></a>231 <a class="indexterm" name="id2684027"></a> 232 232 If this does not give a result similar to the previous test, then nmblookup isn't correctly getting your 233 broadcast address through its automatic mechanism. In this case you should experiment with the <a class="link" href="smb.conf.5.html#INTERFACES" >interfaces</a> option in <code class="filename">smb.conf</code> to manually configure your IP address, broadcast, and netmask.233 broadcast address through its automatic mechanism. In this case you should experiment with the <a class="link" href="smb.conf.5.html#INTERFACES" target="_top">interfaces</a> option in <code class="filename">smb.conf</code> to manually configure your IP address, broadcast, and netmask. 234 234 </p><p> 235 235 If your PC and server aren't on the same subnet, then you will need to use the … … 239 239 not correct. (Refer to test 3 notes above). 240 240 </p></li><li><p> 241 <a class="indexterm" name="id26 77085"></a>241 <a class="indexterm" name="id2684079"></a> 242 242 Run the command <code class="literal">smbclient //BIGSERVER/TMP</code>. You should 243 243 then be prompted for a password. You should use the password of the account … … 258 258 compile in support for them in <span class="application">smbd</span>. 259 259 </p></li><li><p> 260 Your <a class="link" href="smb.conf.5.html#VALIDUSERS" >valid users</a> configuration is incorrect.260 Your <a class="link" href="smb.conf.5.html#VALIDUSERS" target="_top">valid users</a> configuration is incorrect. 261 261 </p></li><li><p> 262 You have a mixed-case password and you haven't enabled the <a class="link" href="smb.conf.5.html#PASSWORDLEVEL" >password level</a> option at a high enough level.262 You have a mixed-case password and you haven't enabled the <a class="link" href="smb.conf.5.html#PASSWORDLEVEL" target="_top">password level</a> option at a high enough level. 263 263 </p></li><li><p> 264 The <a class="link" href="smb.conf.5.html#PATH" >path</a> line in <code class="filename">smb.conf</code> is incorrect. Check it with <span class="application">testparm</span>.264 The <a class="link" href="smb.conf.5.html#PATH" target="_top">path</a> line in <code class="filename">smb.conf</code> is incorrect. Check it with <span class="application">testparm</span>. 265 265 </p></li><li><p> 266 266 You enabled password encryption but didn't map UNIX to Samba users. Run 267 267 <code class="literal">smbpasswd -a username</code> 268 268 </p></li></ol></div><p> 269 <a class="indexterm" name="id26 77270"></a>270 <a class="indexterm" name="id26 77277"></a>271 <a class="indexterm" name="id26 77284"></a>272 <a class="indexterm" name="id26 77290"></a>269 <a class="indexterm" name="id2684264"></a> 270 <a class="indexterm" name="id2684271"></a> 271 <a class="indexterm" name="id2684278"></a> 272 <a class="indexterm" name="id2684284"></a> 273 273 Once connected, you should be able to use the commands <code class="literal">dir</code>, <code class="literal">get</code>, 274 274 <code class="literal">put</code>, and so on. Type <code class="literal">help command</code> for instructions. You should 275 275 especially check that the amount of free disk space shown is correct when you type <code class="literal">dir</code>. 276 276 </p></li><li><p> 277 <a class="indexterm" name="id26 77337"></a>277 <a class="indexterm" name="id2684331"></a> 278 278 On the PC, type the command <code class="literal">net view \\BIGSERVER</code>. You will 279 279 need to do this from within a DOS prompt window. You should get back a 280 280 list of shares available on the server. 281 281 </p><p> 282 <a class="indexterm" name="id26 77356"></a>282 <a class="indexterm" name="id2684350"></a> 283 283 If you get a message <code class="literal">network name not found</code> or similar error, then NetBIOS 284 284 name resolution is not working. This is usually caused by a problem in <code class="literal">nmbd</code>. … … 318 318 It's also possible that the server can't work out what username to connect you as. 319 319 To see if this is the problem, add the line 320 <a class="link" href="smb.conf.5.html#USER" >user = username</a> to the320 <a class="link" href="smb.conf.5.html#USER" target="_top">user = username</a> to the 321 321 <em class="parameter"><code>[tmp]</code></em> section of 322 322 <code class="filename">smb.conf</code> where <em class="parameter"><code>username</code></em> is the … … 325 325 </p><p> 326 326 It might also be the case that your client only sends encrypted passwords 327 and you have <a class="link" href="smb.conf.5.html#ENCRYPTPASSWORDS" >encrypt passwords = no</a> in <code class="filename">smb.conf</code>.327 and you have <a class="link" href="smb.conf.5.html#ENCRYPTPASSWORDS" target="_top">encrypt passwords = no</a> in <code class="filename">smb.conf</code>. 328 328 Change this setting to `yes' to fix this. 329 329 </p></li><li><p> … … 336 336 see if it is just being slow, then try again. If it still fails after 337 337 that, then look at the browsing options you have set in <code class="filename">smb.conf</code>. Make 338 sure you have <a class="link" href="smb.conf.5.html#PREFERREDMASTER" >preferred master = yes</a> to ensure that338 sure you have <a class="link" href="smb.conf.5.html#PREFERREDMASTER" target="_top">preferred master = yes</a> to ensure that 339 339 an election is held at startup. 340 340 </p></li><li><p> … … 346 346 is refusing to browse a server that has no encrypted password 347 347 capability and is in user-level security mode. In this case, either set 348 <a class="link" href="smb.conf.5.html#SECURITY" >security = server</a> and349 <a class="link" href="smb.conf.5.html#PASSWORDSERVER" >password server = Windows_NT_Machine</a> in your350 <code class="filename">smb.conf</code> file or make sure <a class="link" href="smb.conf.5.html#ENCRYPTPASSWORDS" >encrypt passwords</a> is348 <a class="link" href="smb.conf.5.html#SECURITY" target="_top">security = server</a> and 349 <a class="link" href="smb.conf.5.html#PASSWORDSERVER" target="_top">password server = Windows_NT_Machine</a> in your 350 <code class="filename">smb.conf</code> file or make sure <a class="link" href="smb.conf.5.html#ENCRYPTPASSWORDS" target="_top">encrypt passwords</a> is 351 351 set to “<span class="quote">yes</span>”. 352 352 </p></li></ol></div></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 V. Troubleshooting </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 39. Analyzing and Solving Samba Problems</td></tr></table></div></body></html>
Note:
See TracChangeset
for help on using the changeset viewer.