| 1 | <html>
|
|---|
| 2 | <body bgcolor="#ffffff">
|
|---|
| 3 |
|
|---|
| 4 | <img src="samba2_xs.gif" border="0" alt=" " height="100" width="76"
|
|---|
| 5 | hspace="10" align="left" />
|
|---|
| 6 |
|
|---|
| 7 | <h1 class="head0">Chapter 3. Configuring Windows Clients</h1>
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 | <p><a name="INDEX-1"/><a name="INDEX-2"/>Configuring Windows to use
|
|---|
| 11 | your new Samba server is really quite simple. SMB is
|
|---|
| 12 | Microsoft's native language for resource sharing on
|
|---|
| 13 | a local area network, so much of the installation and setup on the
|
|---|
| 14 | Windows client side have been taken care of already.</p>
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 | <div class="sect1"><a name="samba2-CHP-3-SECT-1"/>
|
|---|
| 18 |
|
|---|
| 19 | <h2 class="head1">Windows Networking Concepts</h2>
|
|---|
| 20 |
|
|---|
| 21 | <p><a name="INDEX-3"/><a name="INDEX-4"/>Windows is different from Unix in
|
|---|
| 22 | many ways, including how it supports networking. Before we get into
|
|---|
| 23 | the hands-on task of clicking our way through the dialog boxes to
|
|---|
| 24 | configure each version of Windows, we need to provide you with a
|
|---|
| 25 | common foundation of networking technologies and concepts that apply
|
|---|
| 26 | to the entire family of Windows operating systems.</p>
|
|---|
| 27 |
|
|---|
| 28 | <p>For each Windows version, these are the main issues we will be
|
|---|
| 29 | dealing with:</p>
|
|---|
| 30 |
|
|---|
| 31 | <ul><li>
|
|---|
| 32 | <p>Making sure required networking components are installed and bound to
|
|---|
| 33 | the network adapter</p>
|
|---|
| 34 | </li><li>
|
|---|
| 35 | <p>Configuring networking with a valid IP address, netmask and gateway,
|
|---|
| 36 | and WINS and DNS name servers</p>
|
|---|
| 37 | </li><li>
|
|---|
| 38 | <p>Assigning workgroup and computer names</p>
|
|---|
| 39 | </li><li>
|
|---|
| 40 | <p>Setting the username(s) and password(s)</p>
|
|---|
| 41 | </li></ul>
|
|---|
| 42 | <p>In addition, some minor issues involving communication and
|
|---|
| 43 | coordination between Windows and Unix are different among Windows
|
|---|
| 44 | versions.</p>
|
|---|
| 45 |
|
|---|
| 46 | <p>One can go crazy thinking about the ways in which Unix is different
|
|---|
| 47 | from Windows, or the ways in which members of the Windows family are
|
|---|
| 48 | different from each other in underlying technology, behavior, or
|
|---|
| 49 | appearance. For now let's just focus on their
|
|---|
| 50 | similarities and see if we can find some common ground.</p>
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 | <div class="sect2"><a name="samba2-CHP-3-SECT-1.1"/>
|
|---|
| 54 |
|
|---|
| 55 | <h3 class="head2">Components</h3>
|
|---|
| 56 |
|
|---|
| 57 | <p><a name="INDEX-5"/><a name="INDEX-6"/>Unix
|
|---|
| 58 | systems historically have been monolithic in nature, requiring
|
|---|
| 59 | recompilation or relinking to create a kernel with a customized
|
|---|
| 60 | feature set. However, modern versions have the ability to load or
|
|---|
| 61 | unload device drivers or various other operating-system features as
|
|---|
| 62 | modules while the system is running, without even needing to reboot.</p>
|
|---|
| 63 |
|
|---|
| 64 | <p>Windows allows for configuration by installing or uninstalling
|
|---|
| 65 | <em class="firstterm">components</em>. As far as networking goes,
|
|---|
| 66 | components can be one of three things:<a name="FNPTR-1"/><a href="#FOOTNOTE-1">[1]</a></p>
|
|---|
| 67 |
|
|---|
| 68 | <ul><li>
|
|---|
| 69 | <p>Protocols</p>
|
|---|
| 70 | </li><li>
|
|---|
| 71 | <p>Clients</p>
|
|---|
| 72 | </li><li>
|
|---|
| 73 | <p>Services</p>
|
|---|
| 74 | </li></ul>
|
|---|
| 75 | <p>Since Samba works using the TCP/IP protocol, of course
|
|---|
| 76 | we'll want to have that installed. In some cases, we
|
|---|
| 77 | also will want to find protocols to <em class="emphasis">uninstall</em>.
|
|---|
| 78 | For example, if Netware protocol (IPX/SPX) is not required on the
|
|---|
| 79 | network, it might as well be removed.</p>
|
|---|
| 80 |
|
|---|
| 81 | <p><a name="INDEX-7"/><a name="INDEX-8"/>NetBEUI protocol should be removed if
|
|---|
| 82 | possible. Having NetBEUI running at the same time as NetBIOS over
|
|---|
| 83 | TCP/IP causes the system to look for services under two different
|
|---|
| 84 | protocols, only one of which is likely to be in use. When Windows is
|
|---|
| 85 | configured with one or more unused protocols, 30-second delays will
|
|---|
| 86 | result when Windows tries to communicate with the unused protocol.
|
|---|
| 87 | Eventually, it times out and tries another one, until it finds one
|
|---|
| 88 | that works. This fruitless searching results in terrible performance.</p>
|
|---|
| 89 |
|
|---|
| 90 | <p>The other two items in the list, client and service components, are
|
|---|
| 91 | pretty much what you'd expect. Client components
|
|---|
| 92 | perform tasks related to connecting with network servers, and service
|
|---|
| 93 | components are for making the local system into a server of resources
|
|---|
| 94 | on the network. In <a href="ch01.html">Chapter 1</a> we told you that SMB
|
|---|
| 95 | systems can act as both clients and servers, offering resources on
|
|---|
| 96 | the network at the same time they request resources. In accordance
|
|---|
| 97 | with that, it is possible to install a component for SMB client
|
|---|
| 98 | services and, separately, a service component that allows file and
|
|---|
| 99 | printer shares on the local system to be accessible from other
|
|---|
| 100 | systems on the network.</p>
|
|---|
| 101 |
|
|---|
| 102 |
|
|---|
| 103 | <div class="sect3"><a name="samba2-CHP-3-SECT-1.1.1"/>
|
|---|
| 104 |
|
|---|
| 105 | <h3 class="head3">Bindings</h3>
|
|---|
| 106 |
|
|---|
| 107 | <p><a name="INDEX-9"/><a name="INDEX-10"/><a name="INDEX-11"/>Once
|
|---|
| 108 | a networking component is installed, it must be
|
|---|
| 109 | <em class="firstterm">bound</em> to a hardware interface, or
|
|---|
| 110 | <em class="firstterm">adapter</em>, to be used on the network. At first
|
|---|
| 111 | this might seem like an odd complication; however, it is a conceptual
|
|---|
| 112 | model that allows the associations between hardware and software to
|
|---|
| 113 | be clearly displayed and easily modified through a graphical
|
|---|
| 114 | interface.</p>
|
|---|
| 115 |
|
|---|
| 116 | <p>We will want to make sure that your Windows client has both TCP/IP
|
|---|
| 117 | and the client component for SMB networking installed and also that
|
|---|
| 118 | it is bound to the network adapter that connects to our Samba
|
|---|
| 119 | network, which in most cases will be an Ethernet adapter.</p>
|
|---|
| 120 |
|
|---|
| 121 |
|
|---|
| 122 | </div>
|
|---|
| 123 |
|
|---|
| 124 |
|
|---|
| 125 | </div>
|
|---|
| 126 |
|
|---|
| 127 |
|
|---|
| 128 | <div class="sect2"><a name="samba2-CHP-3-SECT-1.2"/>
|
|---|
| 129 |
|
|---|
| 130 | <h3 class="head2">IP Address</h3>
|
|---|
| 131 |
|
|---|
| 132 | <p>Just like any Unix system (or any other system that is using TCP/IP),
|
|---|
| 133 | your Windows systems will need an <a name="INDEX-12"/>IP address. If you are using
|
|---|
| 134 | <a name="INDEX-13"/>DHCP
|
|---|
| 135 | on your network, you can configure Windows to obtain its IP address
|
|---|
| 136 | automatically by using a DHCP server. Otherwise, you will need to
|
|---|
| 137 | assign a static IP address manually along with a netmask.<a name="FNPTR-2"/><a href="#FOOTNOTE-2">[2]</a></p>
|
|---|
| 138 |
|
|---|
| 139 | <p>If you are on a private network where you have the authority to
|
|---|
| 140 | assign your own IP addresses, you can select from addresses in one of
|
|---|
| 141 | three ranges:<a name="FNPTR-3"/><a href="#FOOTNOTE-3">[3]</a></p>
|
|---|
| 142 |
|
|---|
| 143 | <ul><li>
|
|---|
| 144 | <p>10.0.0.1 through 10.255.255.254</p>
|
|---|
| 145 | </li><li>
|
|---|
| 146 | <p>172.16.0.1 through 172.31.255.254</p>
|
|---|
| 147 | </li><li>
|
|---|
| 148 | <p>192.168.0.1 through 192.168.255.254</p>
|
|---|
| 149 | </li></ul>
|
|---|
| 150 | <p>These address ranges are reserved for private networks not directly
|
|---|
| 151 | connected to the Internet. For more information on using these
|
|---|
| 152 | private network addresses, see RFC 1918.</p>
|
|---|
| 153 |
|
|---|
| 154 | <p>If you're not maintaining your own separate network,
|
|---|
| 155 | see your system administrator for some available addresses on your
|
|---|
| 156 | network, as well as for the proper netmask to use.</p>
|
|---|
| 157 |
|
|---|
| 158 | <p>You should also be prepared to enter the IP address of the default
|
|---|
| 159 | gateway for the network. In some networks, the default gateway is the
|
|---|
| 160 | system or router that connects the LAN to the Internet. In other
|
|---|
| 161 | cases, the default gateway connects a subnet into a larger
|
|---|
| 162 | departmental or enterprise network.</p>
|
|---|
| 163 |
|
|---|
| 164 |
|
|---|
| 165 | </div>
|
|---|
| 166 |
|
|---|
| 167 |
|
|---|
| 168 | <div class="sect2"><a name="samba2-CHP-3-SECT-1.3"/>
|
|---|
| 169 |
|
|---|
| 170 | <h3 class="head2">Name Resolution</h3>
|
|---|
| 171 |
|
|---|
| 172 | <p><a name="INDEX-14"/><a name="INDEX-15"/>Name resolution is the function of
|
|---|
| 173 | translating human-friendly hostnames, such as
|
|---|
| 174 | <em class="emphasis">hopi</em>, or fully qualified domain names (FQDNs),
|
|---|
| 175 | such as <tt class="literal">mixtec.metran.cx</tt>, into IP addresses, such
|
|---|
| 176 | as 172.16.1.11 or 172.16.1.7.</p>
|
|---|
| 177 |
|
|---|
| 178 | <p>Unix systems can perform name resolution using an
|
|---|
| 179 | <em class="filename">/etc/hosts</em><a name="INDEX-16"/><a name="INDEX-17"/> file at the minimum, and more commonly can
|
|---|
| 180 | also incorporate services such as
|
|---|
| 181 | <a name="INDEX-18"/>DNS (Domain Name System)
|
|---|
| 182 | and <a name="INDEX-19"/>NIS (Network Information Service).
|
|---|
| 183 | Thus, name resolution is not necessarily performed by one isolated
|
|---|
| 184 | part of the operating system or one daemon, but is a system that can
|
|---|
| 185 | have a number of dispersed parts (although the
|
|---|
| 186 | <a name="INDEX-20"/>name
|
|---|
| 187 | service switch, with its
|
|---|
| 188 | <em class="filename">/etc/nsswitch.conf</em><a name="INDEX-21"/><a name="INDEX-22"/> configuration file, helps to tie them
|
|---|
| 189 | together).</p>
|
|---|
| 190 |
|
|---|
| 191 | <p>Although the specific implementation is different, name resolution in
|
|---|
| 192 | Windows is also performed by querying a number of resources, some of
|
|---|
| 193 | which are similar (or even identical) to their Unix counterparts.</p>
|
|---|
| 194 |
|
|---|
| 195 |
|
|---|
| 196 | <div class="sect3"><a name="samba2-CHP-3-SECT-1.3.1"/>
|
|---|
| 197 |
|
|---|
| 198 | <h3 class="head3">Broadcast name resolution</h3>
|
|---|
| 199 |
|
|---|
| 200 | <p>On the other hand, there is one way in which Windows is not at all
|
|---|
| 201 | similar to Unix. If a Windows workstation is set up with no WINS name
|
|---|
| 202 | server, it will use the broadcast method of
|
|---|
| 203 | <a name="INDEX-23"/><a name="INDEX-24"/>name resolution, as described in <a href="ch01.html">Chapter 1</a>,<a name="FNPTR-4"/><a href="#FOOTNOTE-4">[4]</a> probably resulting in a
|
|---|
| 204 | very busy network. And even if you provide name servers for your
|
|---|
| 205 | Windows system to use, it might still resort to broadcast name
|
|---|
| 206 | resolution if it is unsuccessful at querying the name servers. For
|
|---|
| 207 | this reason, we recommend that you provide multiple reliable name
|
|---|
| 208 | servers for your Windows computers on the network.</p>
|
|---|
| 209 |
|
|---|
| 210 | <p>If that weren't enough to get you interested in
|
|---|
| 211 | setting up WINS and DNS servers, broadcast name resolution is usually
|
|---|
| 212 | limited to working on the local subnet because routers are usually
|
|---|
| 213 | configured not to forward broadcast packets to other networks.</p>
|
|---|
| 214 |
|
|---|
| 215 |
|
|---|
| 216 | </div>
|
|---|
| 217 |
|
|---|
| 218 |
|
|---|
| 219 |
|
|---|
| 220 | <div class="sect3"><a name="samba2-CHP-3-SECT-1.3.2"/>
|
|---|
| 221 |
|
|---|
| 222 | <h3 class="head3">WINS</h3>
|
|---|
| 223 |
|
|---|
| 224 | <p>We've already told you about WINS in <a href="ch01.html">Chapter 1</a>, and we don't have much more
|
|---|
| 225 | to say about it here. WINS can translate simple NetBIOS computer
|
|---|
| 226 | names such as <em class="emphasis">huastec</em> or
|
|---|
| 227 | <em class="emphasis">navajo</em> into IP addresses, as required on an SMB
|
|---|
| 228 | network. Of course, the interesting thing here is that Samba can act
|
|---|
| 229 | as a WINS server if you include the line:</p>
|
|---|
| 230 |
|
|---|
| 231 | <blockquote><pre class="code">wins support = yes</pre></blockquote>
|
|---|
| 232 |
|
|---|
| 233 | <p>in your Samba server's
|
|---|
| 234 | <em class="filename">smb.conf</em><a name="INDEX-25"/><a name="INDEX-26"/> file.
|
|---|
| 235 | This can be a good thing, to be sure, and we highly recommend it. Not
|
|---|
| 236 | only will you have a reliable WINS server to reduce the number of
|
|---|
| 237 | broadcast packets, but you won't need to run Windows
|
|---|
| 238 | NT/2000/XP to get it.</p>
|
|---|
| 239 | <a name="samba2-CHP-3-NOTE-91"/><blockquote class="note"><h4 class="objtitle">WARNING</h4>
|
|---|
| 240 | <p>One caveat about using Samba as a <a name="INDEX-27"/><a name="INDEX-28"/>WINS server is that Samba (up to Version
|
|---|
| 241 | 2.2, at least) cannot synchronize with other WINS servers. So if you
|
|---|
| 242 | specify a Samba server as your Windows system's WINS
|
|---|
| 243 | server, you must be careful not to specify any additional (i.e.,
|
|---|
| 244 | secondary) WINS servers. If you do, you are likely to run into
|
|---|
| 245 | problems because the servers will not be able to synchronize their
|
|---|
| 246 | databases with each other. In Samba's defense, if
|
|---|
| 247 | you are using a Samba WINS server (running on a typically reliable
|
|---|
| 248 | Unix host), you will probably have little need for a secondary WINS
|
|---|
| 249 | server anyway.</p>
|
|---|
| 250 | </blockquote>
|
|---|
| 251 |
|
|---|
| 252 |
|
|---|
| 253 | </div>
|
|---|
| 254 |
|
|---|
| 255 |
|
|---|
| 256 |
|
|---|
| 257 | <div class="sect3"><a name="samba2-CHP-3-SECT-1.3.3"/>
|
|---|
| 258 |
|
|---|
| 259 | <h3 class="head3">LMHOSTS</h3>
|
|---|
| 260 |
|
|---|
| 261 | <p>All Windows versions support a backup method of name resolution, in
|
|---|
| 262 | the form of a file called
|
|---|
| 263 | <em class="filename">LMHOSTS</em><a name="INDEX-29"/> <em class="emphasis"><a name="FNPTR-5"/><a href="#FOOTNOTE-5">[5]</a></em>
|
|---|
| 264 | that contains a lookup table of computer names and IP addresses. This
|
|---|
| 265 | exists for "historical purposes,"
|
|---|
| 266 | and is a rather awkward method of name resolution because it requires
|
|---|
| 267 | the administrator (i.e., you!) to keep copies of
|
|---|
| 268 | <em class="filename">LMHOSTS</em> up to date on every single Windows
|
|---|
| 269 | system on the network. To be fully effective,
|
|---|
| 270 | <em class="filename">LMHOSTS</em> would have to be updated every time a
|
|---|
| 271 | new system were added to (or removed from) the network. Of course,
|
|---|
| 272 | there might be ways to automate that process, but a better option
|
|---|
| 273 | would be simply to run a WINS name server that is intentionally
|
|---|
| 274 | designed to solve that specific problem.</p>
|
|---|
| 275 |
|
|---|
| 276 | <p>There are perhaps a couple of reasons why you might want to bother
|
|---|
| 277 | with <em class="filename">LMHOSTS</em> files. In rare situations, there
|
|---|
| 278 | might be no WINS server on the network. Or maybe a WINS server
|
|---|
| 279 | exists, but it's unreliable. In both cases, if the
|
|---|
| 280 | Windows system has a valid <em class="filename">LMHOSTS</em> file, it can
|
|---|
| 281 | help to avoid your network bogging down from those dreaded broadcast
|
|---|
| 282 | name queries.</p>
|
|---|
| 283 |
|
|---|
| 284 | <p>The format of the <em class="filename">LMHOSTS</em> file is simple and
|
|---|
| 285 | similar to the <em class="filename">/etc/hosts</em> file with which you
|
|---|
| 286 | might be familiar from running Unix systems. Here are the contents of
|
|---|
| 287 | a sample <em class="filename">LMHOSTS</em> file:</p>
|
|---|
| 288 |
|
|---|
| 289 | <blockquote><pre class="code">172.16.1.1 toltec
|
|---|
| 290 | 172.16.1.2 aztec
|
|---|
| 291 | 172.16.1.3 mixtec
|
|---|
| 292 | 172.16.1.4 zapotec
|
|---|
| 293 | 172.16.1.5 huastec
|
|---|
| 294 | 172.16.1.6 maya
|
|---|
| 295 | 172.16.1.7 olmec
|
|---|
| 296 | 172.16.1.8 chichimec
|
|---|
| 297 | 172.16.1.11 hopi
|
|---|
| 298 | 172.16.1.12 zuni
|
|---|
| 299 | 172.16.1.13 dine
|
|---|
| 300 | 172.16.1.14 pima
|
|---|
| 301 | 172.16.1.15 apache
|
|---|
| 302 | 172.16.1.21 inca
|
|---|
| 303 | 172.16.1.22 qero</pre></blockquote>
|
|---|
| 304 |
|
|---|
| 305 | <p>As you can see, the format is like that of
|
|---|
| 306 | <em class="filename">/etc/hosts</em>, except that instead of an FQDN
|
|---|
| 307 | (e.g., <tt class="literal">toltec.metran.cx</tt>), only a NetBIOS computer
|
|---|
| 308 | name (<tt class="literal">toltec</tt>) is given. One way to create an
|
|---|
| 309 | <em class="filename">LMHOSTS</em> file for your Windows systems is to copy
|
|---|
| 310 | a <em class="filename">/etc/hosts</em> file and edit out the parts you
|
|---|
| 311 | don't need. This will work great if your network
|
|---|
| 312 | doesn't have a DNS (or NIS) name server and the Unix
|
|---|
| 313 | system is dependent on <em class="filename">/etc/hosts</em> for its own
|
|---|
| 314 | name service. But if your Unix system is querying a DNS server (which
|
|---|
| 315 | is the most frequent case on anything larger than the very smallest
|
|---|
| 316 | networks), you would be better advised to look in the DNS
|
|---|
| 317 | server's configuration files for your source of
|
|---|
| 318 | computer names and IP addresses.</p>
|
|---|
| 319 |
|
|---|
| 320 | <p>If you do not have administrative access to your
|
|---|
| 321 | network's DNS server, you might be able to use tools
|
|---|
| 322 | such as <em class="emphasis">nslookup</em><a name="INDEX-30"/>,
|
|---|
| 323 | <em class="emphasis">nmap</em><a name="INDEX-31"/>, and
|
|---|
| 324 | <em class="emphasis">dig</em><a name="INDEX-32"/> to query the server and obtain the
|
|---|
| 325 | information you need.</p>
|
|---|
| 326 |
|
|---|
| 327 |
|
|---|
| 328 | </div>
|
|---|
| 329 |
|
|---|
| 330 |
|
|---|
| 331 |
|
|---|
| 332 | <div class="sect3"><a name="samba2-CHP-3-SECT-1.3.4"/>
|
|---|
| 333 |
|
|---|
| 334 | <h3 class="head3">DNS</h3>
|
|---|
| 335 |
|
|---|
| 336 | <p>The <a name="INDEX-33"/><a name="INDEX-34"/>DNS
|
|---|
| 337 | is responsible for translating human-readable, Internet-style
|
|---|
| 338 | hostnames such as <tt class="literal">pima.metran.cx</tt> or
|
|---|
| 339 | <tt class="literal">sales.oreilly.com</tt> into IP addresses.</p>
|
|---|
| 340 |
|
|---|
| 341 | <p>On your first reading of this section, you might be wondering what a
|
|---|
| 342 | section on DNS is doing in a book about NetBIOS and SMB networking.
|
|---|
| 343 | Remember, we told you that Windows can use more than WINS (NetBIOS
|
|---|
| 344 | Name Service) in its strategy for performing name resolution. Because
|
|---|
| 345 | DNS is also able to supply IP addresses for simple hostnames (which
|
|---|
| 346 | are usually the same as NetBIOS computer names), it can be helpful to
|
|---|
| 347 | configure Windows to know about a DNS server on your network. This is
|
|---|
| 348 | slightly more important for newer Windows versions than older ones,
|
|---|
| 349 | and more so for Windows NT/2000/XP than for Windows 95/98/Me, because
|
|---|
| 350 | nowadays Microsoft is focusing more on TCP/IP as the standard
|
|---|
| 351 | protocol and DNS as the primary name service.</p>
|
|---|
| 352 |
|
|---|
| 353 | <p>To find the address of your DNS server, look at the file
|
|---|
| 354 | <em class="emphasis">/etc/resolv.conf</em><a name="INDEX-35"/><a name="INDEX-36"/> on your Samba server or any other Unix
|
|---|
| 355 | system on the local network that is using DNS. It looks like the
|
|---|
| 356 | following:</p>
|
|---|
| 357 |
|
|---|
| 358 | <blockquote><pre class="code">#resolv.conf
|
|---|
| 359 | domain metran.cx
|
|---|
| 360 | nameserver 127.0.0.1
|
|---|
| 361 | nameserver 172.16.1.53</pre></blockquote>
|
|---|
| 362 |
|
|---|
| 363 | <p>In this example, the first name server in the list is 127.0.0.1,
|
|---|
| 364 | which indicates that the Samba server is also a DNS server for this
|
|---|
| 365 | LAN.<a name="FNPTR-6"/><a href="#FOOTNOTE-6">[6]</a> In that case, you would use its network IP
|
|---|
| 366 | address (not <a name="INDEX-37"/><a name="INDEX-38"/>127.0.0.1, its localhost address)
|
|---|
| 367 | for your DNS server when configuring Windows. Otherwise, use the
|
|---|
| 368 | other addresses you find in the lines beginning with
|
|---|
| 369 | <tt class="literal">nameserver</tt>. Try to select ones on your own
|
|---|
| 370 | network. Any name servers listed in
|
|---|
| 371 | <em class="emphasis">/etc/resolv.conf</em> should work, but
|
|---|
| 372 | you'll get better performance by using a server
|
|---|
| 373 | nearby.</p>
|
|---|
| 374 |
|
|---|
| 375 | <p>All versions of Windows can be configured to know of multiple domain
|
|---|
| 376 | name servers, and you might wish to take advantage of this for
|
|---|
| 377 | increased reliability. If the first domain name server does not
|
|---|
| 378 | respond, Windows can try others in its list.</p>
|
|---|
| 379 |
|
|---|
| 380 |
|
|---|
| 381 | </div>
|
|---|
| 382 |
|
|---|
| 383 |
|
|---|
| 384 |
|
|---|
| 385 | <div class="sect3"><a name="samba2-CHP-3-SECT-1.3.5"/>
|
|---|
| 386 |
|
|---|
| 387 | <h3 class="head3"><em class="filename">HOSTS</em></h3>
|
|---|
| 388 |
|
|---|
| 389 | <p>Similar to how the <em class="filename">LMHOSTS</em> file can be added to
|
|---|
| 390 | supplement WINS, the
|
|---|
| 391 | <em class="filename">HOSTS</em><a name="INDEX-39"/> file on a Windows system can be optionally
|
|---|
| 392 | added to supplement DNS name resolution. Most of our comments
|
|---|
| 393 | regarding <em class="filename">LMHOSTS</em> also apply here.</p>
|
|---|
| 394 |
|
|---|
| 395 | <p>This time the format of the file is not just similar to that of
|
|---|
| 396 | <em class="filename">/etc/hosts</em> found on Unix—the format is
|
|---|
| 397 | <em class="emphasis">exactly</em> the same. You can simply copy
|
|---|
| 398 | <em class="filename">/etc/hosts</em> from your Samba server or other Unix
|
|---|
| 399 | system to the proper directory on your Windows system.</p>
|
|---|
| 400 |
|
|---|
| 401 | <p>On Windows 95/98/Me, the <em class="filename">HOSTS</em> file goes in the
|
|---|
| 402 | Windows installation directory, which is usually
|
|---|
| 403 | <em class="filename">C:\Windows</em>. Note that a file called
|
|---|
| 404 | <em class="filename">hosts.sam</em><a name="INDEX-40"/> is already there, which is a sample
|
|---|
| 405 | <em class="filename">HOSTS</em> file provided by Microsoft.</p>
|
|---|
| 406 |
|
|---|
| 407 | <p>On Windows NT/2000/XP, the <em class="filename">HOSTS</em> file goes in
|
|---|
| 408 | the <em class="filename">\system32\drivers\etc</em> directory under the
|
|---|
| 409 | Windows installation directory, which is usually
|
|---|
| 410 | <em class="filename">C:\WINNT</em>.</p>
|
|---|
| 411 |
|
|---|
| 412 |
|
|---|
| 413 | </div>
|
|---|
| 414 |
|
|---|
| 415 |
|
|---|
| 416 | </div>
|
|---|
| 417 |
|
|---|
| 418 |
|
|---|
| 419 | <div class="sect2"><a name="samba2-CHP-3-SECT-1.4"/>
|
|---|
| 420 |
|
|---|
| 421 | <h3 class="head2">Passwords</h3>
|
|---|
| 422 |
|
|---|
| 423 | <p><a name="INDEX-41"/><a name="INDEX-42"/><a name="INDEX-43"/>Unix systems use
|
|---|
| 424 | username and password pairs to authenticate users either on a local
|
|---|
| 425 | system or in an NIS domain. Windows NT/2000/XP are very similar; a
|
|---|
| 426 | user supplies his username and password to log on to the local system
|
|---|
| 427 | or to a Windows domain.</p>
|
|---|
| 428 |
|
|---|
| 429 | <p>When the SMB network is set up as a workgroup, things are different.
|
|---|
| 430 | There is no domain to log on to, although shares on the network can
|
|---|
| 431 | be password-protected. In this case, one password is associated with
|
|---|
| 432 | each password-protected share, rather than with individual users.</p>
|
|---|
| 433 |
|
|---|
| 434 | <p>Samba's default user-level
|
|---|
| 435 | <a name="INDEX-44"/>authentication in a workgroup is
|
|---|
| 436 | different from that of Windows. To access shares on the Samba host,
|
|---|
| 437 | users are required to supply a valid username and password for an
|
|---|
| 438 | account on the Samba host. This will be discussed in more detail in
|
|---|
| 439 | <a href="ch09.html">Chapter 9</a>.</p>
|
|---|
| 440 |
|
|---|
| 441 | <p><a name="INDEX-45"/>An unfortunate
|
|---|
| 442 | complication arises with passwords. In the first release of Windows
|
|---|
| 443 | 95 and in Windows NT 4.0 with Service Pack 2 (SP2) or less, as well
|
|---|
| 444 | as in all previous versions of Windows, passwords are allowed to be
|
|---|
| 445 | sent over the network in plain text. But in Windows 95 with the
|
|---|
| 446 | network redirector update,<a name="FNPTR-7"/><a href="#FOOTNOTE-7">[7]</a></p>
|
|---|
| 447 |
|
|---|
| 448 | <p>Windows NT 4.0 SP3 or later, and all subsequent releases of Windows,
|
|---|
| 449 | a registry setting must be <a name="INDEX-46"/><a name="INDEX-47"/><a name="INDEX-48"/>modified to enable plain-text
|
|---|
| 450 | passwords. These more modern versions of Windows prefer to send
|
|---|
| 451 | encrypted passwords, and if you are working with one of them (and
|
|---|
| 452 | don't want to have to modify the registry), you must
|
|---|
| 453 | have the line:</p>
|
|---|
| 454 |
|
|---|
| 455 | <blockquote><pre class="code">encrypt passwords = yes</pre></blockquote>
|
|---|
| 456 |
|
|---|
| 457 | <p>in the <tt class="literal">[global]</tt> section of your
|
|---|
| 458 | <em class="filename">smb.conf</em><a name="INDEX-49"/><a name="INDEX-50"/> file. In addition, you must run the
|
|---|
| 459 | command:</p>
|
|---|
| 460 |
|
|---|
| 461 | <blockquote><pre class="code"># <tt class="userinput"><b>smbpasswd -a <em class="replaceable">username</em></b></tt></pre></blockquote>
|
|---|
| 462 |
|
|---|
| 463 | <p>for each user on the Samba host to add their passwords to
|
|---|
| 464 | Samba's collection of encrypted passwords. We showed
|
|---|
| 465 | you how to do this in <a href="ch02.html">Chapter 2</a>.</p>
|
|---|
| 466 |
|
|---|
| 467 | <p>If your first attempt to access a Samba share results in a dialog box
|
|---|
| 468 | asking for a password for
|
|---|
| 469 | <tt class="literal">IPC$</tt><a name="INDEX-51"/><a name="INDEX-52"/>, as shown in <a href="ch03.html#samba2-CHP-3-FIG-1">Figure 3-1</a>, it is probably because you neglected either
|
|---|
| 470 | or both of these two steps, and the Samba server did not recognize
|
|---|
| 471 | the encrypted password that the Windows system sent to it. Another
|
|---|
| 472 | possible dialog box that might come up is the one shown in <a href="ch03.html#samba2-CHP-3-FIG-2">Figure 3-2</a>, which was presented by a Windows 2000 client.</p>
|
|---|
| 473 |
|
|---|
| 474 | <div class="figure"><a name="samba2-CHP-3-FIG-1"/><img src="figs/sam2_0301.gif"/></div><h4 class="head4">Figure 3-1. Windows 98 asking for IPC$ password</h4>
|
|---|
| 475 |
|
|---|
| 476 | <div class="figure"><a name="samba2-CHP-3-FIG-2"/><img src="figs/sam2_0302.gif"/></div><h4 class="head4">Figure 3-2. Windows 2000 logon error dialog</h4>
|
|---|
| 477 |
|
|---|
| 478 | <p>The rest of this chapter is divided into four sections. The first
|
|---|
| 479 | section covers setting up Windows 95/98/Me computers, and the rest of
|
|---|
| 480 | the sections cover Windows NT 4.0, Windows 2000, and Windows XP
|
|---|
| 481 | individually. Each section roughly parallels the order in which
|
|---|
| 482 | we've introduced networking concepts in this
|
|---|
| 483 | section. You need to read only the section that applies to the
|
|---|
| 484 | Windows version with which you are working, and once you have
|
|---|
| 485 | finished reading it, you can continue at the beginning of the next
|
|---|
| 486 | chapter where we will start covering more advanced Samba features and
|
|---|
| 487 | networking issues.</p>
|
|---|
| 488 |
|
|---|
| 489 | <a name="samba2-CHP-3-NOTE-92"/><blockquote class="note"><h4 class="objtitle">TIP</h4>
|
|---|
| 490 | <p>Keep in mind that we are continuing our example from <a href="ch02.html">Chapter 2</a>, in which we are setting up a very simple
|
|---|
| 491 | prototype network using a workgroup that has very lax security. After
|
|---|
| 492 | you have the basics working, we recommend you continue with later
|
|---|
| 493 | chapters to learn how to implement both better security and a Samba
|
|---|
| 494 | domain. <a name="INDEX-53"/></p>
|
|---|
| 495 | </blockquote>
|
|---|
| 496 |
|
|---|
| 497 |
|
|---|
| 498 | </div>
|
|---|
| 499 |
|
|---|
| 500 |
|
|---|
| 501 | </div>
|
|---|
| 502 |
|
|---|
| 503 |
|
|---|
| 504 |
|
|---|
| 505 | <div class="sect1"><a name="samba2-CHP-3-SECT-2"/>
|
|---|
| 506 |
|
|---|
| 507 | <h2 class="head1">Setting Up Windows 95/98/Me Computers</h2>
|
|---|
| 508 |
|
|---|
| 509 | <p>The <a name="INDEX-54"/>Windows 95/98/Me operating systems are very
|
|---|
| 510 | similar to each other, and as far as this chapter is concerned, it is
|
|---|
| 511 | possible to treat them with a common set of directions.</p>
|
|---|
| 512 |
|
|---|
| 513 |
|
|---|
| 514 | <div class="sect2"><a name="samba2-CHP-3-SECT-2.1"/>
|
|---|
| 515 |
|
|---|
| 516 | <h3 class="head2">Setting Up the Network</h3>
|
|---|
| 517 |
|
|---|
| 518 | <p>Samba uses TCP/IP to communicate with clients on the network, so you
|
|---|
| 519 | will need to make sure there is support for TCP/IP on each Windows
|
|---|
| 520 | client. Unlike Unix operating systems, Windows does not necessarily
|
|---|
| 521 | have support for TCP/IP installed. However, when Windows is installed
|
|---|
| 522 | on a computer with a network card or a network card is added to a
|
|---|
| 523 | system already running Windows, TCP/IP support is installed by
|
|---|
| 524 | default, along with the Client for Microsoft Networks, which supports
|
|---|
| 525 | SMB file and printer sharing.</p>
|
|---|
| 526 |
|
|---|
| 527 | <p>To make sure both services are installed on your Windows system,
|
|---|
| 528 | double-click the Network icon in the Control Panel to open the
|
|---|
| 529 | Network dialog box, as shown in <a href="ch03.html#samba2-CHP-3-FIG-3">Figure 3-3</a>.</p>
|
|---|
| 530 |
|
|---|
| 531 | <div class="figure"><a name="samba2-CHP-3-FIG-3"/><img src="figs/sam2_0303.gif"/></div><h4 class="head4">Figure 3-3. The Windows 95/98/Me Network dialog</h4>
|
|---|
| 532 |
|
|---|
| 533 | <p>You should see at least the Client for Microsoft Networks component
|
|---|
| 534 | installed on the system, and hopefully a networking device
|
|---|
| 535 | (preferably an Ethernet card) bound to the TCP/IP protocol. If there
|
|---|
| 536 | is only one networking hardware device, you'll see
|
|---|
| 537 | the TCP/IP protocol listed below the device to which it is bound, as
|
|---|
| 538 | shown in <a href="ch03.html#samba2-CHP-3-FIG-1">Figure 3-1</a>.</p>
|
|---|
| 539 |
|
|---|
| 540 | <p>You might also see "File and printer sharing for
|
|---|
| 541 | Microsoft Networks," which is used to make the
|
|---|
| 542 | system into a server. In addition, you might see NetBEUI or Novell
|
|---|
| 543 | Networking. Definitely remove NetBEUI unless you are sure you need
|
|---|
| 544 | it, and if you don't have any Novell servers on your
|
|---|
| 545 | network, you can remove Novell (IPX/SPX) as well. To remove a
|
|---|
| 546 | service, simply click its name and then click the Remove button.</p>
|
|---|
| 547 |
|
|---|
| 548 |
|
|---|
| 549 | <div class="sect3"><a name="samba2-CHP-3-SECT-2.1.1"/>
|
|---|
| 550 |
|
|---|
| 551 | <h3 class="head3">Adding TCP/IP</h3>
|
|---|
| 552 |
|
|---|
| 553 | <p><a name="INDEX-55"/><a name="INDEX-56"/>If
|
|---|
| 554 | you don't see TCP/IP listed, you'll
|
|---|
| 555 | need to install the protocol.</p>
|
|---|
| 556 |
|
|---|
| 557 | <p>You can add the protocol by inserting the Windows distribution CD-ROM
|
|---|
| 558 | in your CD-ROM drive and clicking the Add button below the component
|
|---|
| 559 | window. Indicate that you wish to add a protocol by selecting
|
|---|
| 560 | Protocol and clicking "Add..." on
|
|---|
| 561 | the following dialog box, which should look similar to <a href="ch03.html#samba2-CHP-3-FIG-4">Figure 3-4</a>.</p>
|
|---|
| 562 |
|
|---|
| 563 | <div class="figure"><a name="samba2-CHP-3-FIG-4"/><img src="figs/sam2_0304.gif"/></div><h4 class="head4">Figure 3-4. Selecting a component type</h4>
|
|---|
| 564 |
|
|---|
| 565 | <p>After that, select manufacturer Microsoft, then protocol TCP/IP, as
|
|---|
| 566 | shown in <a href="ch03.html#samba2-CHP-3-FIG-3">Figure 3-3</a>, then click OK. After doing so,
|
|---|
| 567 | you will be returned to the network dialog. Click OK to close the
|
|---|
| 568 | dialog box, and Windows will install the necessary components from
|
|---|
| 569 | the CD-ROM and request that the system be rebooted. Go ahead and
|
|---|
| 570 | reboot the system, and you're set.</p>
|
|---|
| 571 |
|
|---|
| 572 | <p>If Client for Microsoft Networks is not in the list, you can add it
|
|---|
| 573 | similarly. The only significant difference is that you are adding a
|
|---|
| 574 | client instead of a protocol, so make sure to select
|
|---|
| 575 | "Client" rather than
|
|---|
| 576 | "Protocol" when asked.</p>
|
|---|
| 577 |
|
|---|
| 578 |
|
|---|
| 579 | </div>
|
|---|
| 580 |
|
|---|
| 581 |
|
|---|
| 582 |
|
|---|
| 583 | <div class="sect3"><a name="samba2-CHP-3-SECT-2.1.2"/>
|
|---|
| 584 |
|
|---|
| 585 | <h3 class="head3">Configuring TCP/IP</h3>
|
|---|
| 586 |
|
|---|
| 587 | <p><a name="INDEX-57"/><a name="INDEX-58"/>If you have more than one networking
|
|---|
| 588 | device (for example, both an Ethernet card and a modem for dial-up
|
|---|
| 589 | networking), the protocol to hardware bindings will be indicated by
|
|---|
| 590 | arrows, as shown in <a href="ch03.html#samba2-CHP-3-FIG-5">Figure 3-5</a>.</p>
|
|---|
| 591 |
|
|---|
| 592 | <div class="figure"><a name="samba2-CHP-3-FIG-5"/><img src="figs/sam2_0305.gif"/></div><h4 class="head4">Figure 3-5. Selecting a protocol to install</h4>
|
|---|
| 593 |
|
|---|
| 594 | <p>Select the TCP/IP protocol linked to the networking device that will
|
|---|
| 595 | be accessing the Samba network. If you have only one networking
|
|---|
| 596 | device, simply click the TCP/IP item. Now click the Properties button
|
|---|
| 597 | to open the TCP/IP Properties dialog. You should see something
|
|---|
| 598 | similar to <a href="ch03.html#samba2-CHP-3-FIG-6">Figure 3-6</a>.</p>
|
|---|
| 599 |
|
|---|
| 600 | <div class="figure"><a name="samba2-CHP-3-FIG-6"/><img src="figs/sam2_0306.gif"/></div><h4 class="head4">Figure 3-6. Selecting the correct TCP/IP protocol</h4>
|
|---|
| 601 |
|
|---|
| 602 |
|
|---|
| 603 | </div>
|
|---|
| 604 |
|
|---|
| 605 |
|
|---|
| 606 |
|
|---|
| 607 | <div class="sect3"><a name="samba2-CHP-3-SECT-2.1.3"/>
|
|---|
| 608 |
|
|---|
| 609 | <h3 class="head3">IP Address tab</h3>
|
|---|
| 610 |
|
|---|
| 611 | <p><a name="INDEX-59"/><a name="INDEX-60"/>The
|
|---|
| 612 | IP Address tab is shown in <a href="ch03.html#samba2-CHP-3-FIG-7">Figure 3-7</a>.</p>
|
|---|
| 613 |
|
|---|
| 614 | <div class="figure"><a name="samba2-CHP-3-FIG-7"/><img src="figs/sam2_0307.gif"/></div><h4 class="head4">Figure 3-7. The IP Address tab</h4>
|
|---|
| 615 |
|
|---|
| 616 | <p>If you use DHCP on your network to provide IP addresses automatically
|
|---|
| 617 | to Windows systems, select the "Obtain an IP address
|
|---|
| 618 | automatically" radio button. Otherwise, click the
|
|---|
| 619 | "Specify an IP address" radio
|
|---|
| 620 | button and enter the client's address and subnet
|
|---|
| 621 | mask in the space provided. You or your network manager should have
|
|---|
| 622 | selected an address for the client on the same subnet (LAN) as the
|
|---|
| 623 | Samba server.</p>
|
|---|
| 624 |
|
|---|
| 625 |
|
|---|
| 626 | </div>
|
|---|
| 627 |
|
|---|
| 628 |
|
|---|
| 629 |
|
|---|
| 630 | <div class="sect3"><a name="samba2-CHP-3-SECT-2.1.4"/>
|
|---|
| 631 |
|
|---|
| 632 | <h3 class="head3">WINS Configuration tab</h3>
|
|---|
| 633 |
|
|---|
| 634 | <p><a name="INDEX-61"/><a name="INDEX-62"/>If you've
|
|---|
| 635 | enabled WINS on Samba or are choosing to make use of another WINS
|
|---|
| 636 | server on your network, you must tell Windows the
|
|---|
| 637 | server's address. After selecting the WINS
|
|---|
| 638 | Configuration tab, you will see the dialog box shown in <a href="ch03.html#samba2-CHP-3-FIG-8">Figure 3-8</a>.</p>
|
|---|
| 639 |
|
|---|
| 640 | <div class="figure"><a name="samba2-CHP-3-FIG-8"/><img src="figs/sam2_0308.gif"/></div><h4 class="head4">Figure 3-8. The WINS Configuration tab</h4>
|
|---|
| 641 |
|
|---|
| 642 | <p>This is for Windows 98/Me; Windows 95 is just a little different,
|
|---|
| 643 | having separate spaces for the primary and backup WINS server IP
|
|---|
| 644 | addresses.</p>
|
|---|
| 645 |
|
|---|
| 646 | <p>Select the "Enable WINS Resolution"
|
|---|
| 647 | radio button, and enter the WINS server's address in
|
|---|
| 648 | the space provided, then click the Add button. Do not enter anything
|
|---|
| 649 | in the Scope ID field.</p>
|
|---|
| 650 | <a name="samba2-CHP-3-NOTE-93"/><blockquote class="note"><h4 class="objtitle">WARNING</h4>
|
|---|
| 651 | <p>A bug in Windows 95/98 sometimes causes the IP address of the WINS
|
|---|
| 652 | server to disappear after the OK button is clicked. This happens only
|
|---|
| 653 | when only a primary WINS server has been specified. The workaround is
|
|---|
| 654 | to fill in the fields for both primary and secondary WINS servers,
|
|---|
| 655 | using the same IP address for each.</p>
|
|---|
| 656 | </blockquote>
|
|---|
| 657 |
|
|---|
| 658 |
|
|---|
| 659 | </div>
|
|---|
| 660 |
|
|---|
| 661 |
|
|---|
| 662 |
|
|---|
| 663 | <div class="sect3"><a name="samba2-CHP-3-SECT-2.1.5"/>
|
|---|
| 664 |
|
|---|
| 665 | <h3 class="head3">DNS Configuration tab</h3>
|
|---|
| 666 |
|
|---|
| 667 | <p><a name="INDEX-63"/><a name="INDEX-64"/>Unless you are using DHCP, you
|
|---|
| 668 | will need to provide the IP address of one or more DNS servers. Click
|
|---|
| 669 | the DNS tab, then click the "Enable
|
|---|
| 670 | DNS" radio button, and type the IP address of one or
|
|---|
| 671 | more DNS servers into the appropriate field, shown in <a href="ch03.html#samba2-CHP-3-FIG-9">Figure 3-9</a>, to add the server's address
|
|---|
| 672 | to the top DNS Server Search Order field.</p>
|
|---|
| 673 |
|
|---|
| 674 | <div class="figure"><a name="samba2-CHP-3-FIG-9"/><img src="figs/sam2_0309.gif"/></div><h4 class="head4">Figure 3-9. The DNS Configuration tab</h4>
|
|---|
| 675 |
|
|---|
| 676 | <p>Also, provide the hostname (which is the same as the NetBIOS computer
|
|---|
| 677 | name) of the Windows 95/98/Me computer and your Internet domain. (You
|
|---|
| 678 | will need to enter the computer name again later, along with the
|
|---|
| 679 | workgroup. Make sure to enter the same name each time.) You can
|
|---|
| 680 | safely ignore the Domain Suffix Search Order field for anything
|
|---|
| 681 | related to Samba.</p>
|
|---|
| 682 |
|
|---|
| 683 |
|
|---|
| 684 | </div>
|
|---|
| 685 |
|
|---|
| 686 |
|
|---|
| 687 |
|
|---|
| 688 | <div class="sect3"><a name="samba2-CHP-3-SECT-2.1.6"/>
|
|---|
| 689 |
|
|---|
| 690 | <h3 class="head3">LMHOSTS file</h3>
|
|---|
| 691 |
|
|---|
| 692 | <p><a name="INDEX-65"/><a name="INDEX-66"/>If
|
|---|
| 693 | you want to install an <em class="filename">LMHOSTS</em> file, it must be
|
|---|
| 694 | placed in your Windows installation directory (usually
|
|---|
| 695 | <em class="filename">C:\Windows</em>). In the same directory, Microsoft
|
|---|
| 696 | has provided a sample <em class="filename">LMHOSTS</em> file named
|
|---|
| 697 | <em class="filename">lmhosts.sam</em>, which you might want to look at for
|
|---|
| 698 | further information on the file's format.</p>
|
|---|
| 699 |
|
|---|
| 700 |
|
|---|
| 701 | </div>
|
|---|
| 702 |
|
|---|
| 703 |
|
|---|
| 704 |
|
|---|
| 705 | <div class="sect3"><a name="samba2-CHP-3-SECT-2.1.7"/>
|
|---|
| 706 |
|
|---|
| 707 | <h3 class="head3">NetBIOS tab</h3>
|
|---|
| 708 |
|
|---|
| 709 | <p><a name="INDEX-67"/><a name="INDEX-68"/>This tab
|
|---|
| 710 | appears in Windows 98/Me, but not in Windows 95. All you need to do
|
|---|
| 711 | here is make sure the checkbox is checked, enabling NetBIOS over
|
|---|
| 712 | TCP/IP. If TCP/IP is your only protocol installed (as we recommended
|
|---|
| 713 | earlier), the selection will be grayed out, with the box checked so
|
|---|
| 714 | that you couldn't uncheck it even if you wanted to.</p>
|
|---|
| 715 |
|
|---|
| 716 |
|
|---|
| 717 | </div>
|
|---|
| 718 |
|
|---|
| 719 |
|
|---|
| 720 |
|
|---|
| 721 | <div class="sect3"><a name="samba2-CHP-3-SECT-2.1.8"/>
|
|---|
| 722 |
|
|---|
| 723 | <h3 class="head3">Bindings tab</h3>
|
|---|
| 724 |
|
|---|
| 725 | <p><a name="INDEX-69"/><a name="INDEX-70"/>The
|
|---|
| 726 | final tab to look at is Bindings, as shown in <a href="ch03.html#samba2-CHP-3-FIG-10">Figure 3-10</a>.</p>
|
|---|
| 727 |
|
|---|
| 728 | <div class="figure"><a name="samba2-CHP-3-FIG-10"/><img src="figs/sam2_0310.gif"/></div><h4 class="head4">Figure 3-10. The Bindings tab</h4>
|
|---|
| 729 |
|
|---|
| 730 | <p>You should have a check beside Client for Microsoft Networks,
|
|---|
| 731 | indicating that it's using TCP/IP. If you have
|
|---|
| 732 | "File and printer sharing for Microsoft
|
|---|
| 733 | Networks" in the dialog, it should also be checked,
|
|---|
| 734 | as shown in <a href="ch03.html#samba2-CHP-3-FIG-10">Figure 3-10</a>.</p>
|
|---|
| 735 |
|
|---|
| 736 |
|
|---|
| 737 | </div>
|
|---|
| 738 |
|
|---|
| 739 |
|
|---|
| 740 | </div>
|
|---|
| 741 |
|
|---|
| 742 |
|
|---|
| 743 | <div class="sect2"><a name="samba2-CHP-3-SECT-2.2"/>
|
|---|
| 744 |
|
|---|
| 745 | <h3 class="head2">Setting the Computer Name and Workgroup</h3>
|
|---|
| 746 |
|
|---|
| 747 | <p><a name="INDEX-71"/><a name="INDEX-72"/><a name="INDEX-73"/><a name="INDEX-74"/>Finally, click the OK button in the
|
|---|
| 748 | TCP/IP configuration dialog, and you'll be taken
|
|---|
| 749 | back to the Network Configuration dialog. Then select the
|
|---|
| 750 | Identification tab, which will take you to the dialog box shown in
|
|---|
| 751 | <a href="ch03.html#samba2-CHP-3-FIG-11">Figure 3-11</a>.</p>
|
|---|
| 752 |
|
|---|
| 753 | <div class="figure"><a name="samba2-CHP-3-FIG-11"/><img src="figs/sam2_0311.gif"/></div><h4 class="head4">Figure 3-11. The Identification tab</h4>
|
|---|
| 754 |
|
|---|
| 755 | <p>This is where you set your system's NetBIOS name
|
|---|
| 756 | (which Microsoft likes to call "computer
|
|---|
| 757 | name"). Usually, it is best to make this the same as
|
|---|
| 758 | your DNS hostname, if you are going to have one for this system. For
|
|---|
| 759 | example, if the system's DNS name is
|
|---|
| 760 | <tt class="literal">huastec.metran.cx</tt>, give the computer a NetBIOS
|
|---|
| 761 | name of <tt class="literal">huastec</tt> on this tab.</p>
|
|---|
| 762 |
|
|---|
| 763 | <p>You also set your workgroup name here. In our case,
|
|---|
| 764 | it's METRAN, but if you used a different one in
|
|---|
| 765 | <a href="ch02.html">Chapter 2</a>, when creating the Samba configuration
|
|---|
| 766 | file, use that instead. Just don't call it WORKGROUP
|
|---|
| 767 | (the default workgroup name) or you'll be in the
|
|---|
| 768 | same workgroup as every misconfigured Windows computer on the planet!</p>
|
|---|
| 769 |
|
|---|
| 770 | <p>You can also enter a comment string for this computer. See if you can
|
|---|
| 771 | come up with some way of describing it that will remind you of what
|
|---|
| 772 | and where it is when you see the comment in a list displayed on
|
|---|
| 773 | another computer. Everyone on the network will be able to see your
|
|---|
| 774 | comment, so be careful not to include any information that might be
|
|---|
| 775 | useful to crackers.</p>
|
|---|
| 776 |
|
|---|
| 777 | <p>Finally, click the OK button and follow whatever instructions Windows
|
|---|
| 778 | provides. (You might have to insert your Windows distribution CD-ROM
|
|---|
| 779 | and/or reboot.)</p>
|
|---|
| 780 |
|
|---|
| 781 |
|
|---|
| 782 | </div>
|
|---|
| 783 |
|
|---|
| 784 |
|
|---|
| 785 | <div class="sect2"><a name="samba2-CHP-3-SECT-2.3"/>
|
|---|
| 786 |
|
|---|
| 787 | <h3 class="head2">Username and Password</h3>
|
|---|
| 788 |
|
|---|
| 789 | <p><a name="INDEX-75"/><a name="INDEX-76"/><a name="INDEX-77"/>You have probably already given
|
|---|
| 790 | Windows a username and password by now. However, to authenticate with
|
|---|
| 791 | the Samba server, your Windows username and password must match with
|
|---|
| 792 | a valid account on the Samba server.</p>
|
|---|
| 793 |
|
|---|
| 794 | <p>It is simple to add a new user and password to a Windows 95/98/Me
|
|---|
| 795 | system. Just reboot or log out, and when you are prompted for a
|
|---|
| 796 | username and password, enter your Unix username and password. (If you
|
|---|
| 797 | are using encrypted passwords, you must run
|
|---|
| 798 | <em class="emphasis">smbpasswd</em> on the Unix host to enter them into
|
|---|
| 799 | Samba's password database, if you have not already
|
|---|
| 800 | done so.) You can use this method to add as many users as you want,
|
|---|
| 801 | so as to allow more than one user to use the Windows system to gain
|
|---|
| 802 | access to the Samba shares.</p>
|
|---|
| 803 |
|
|---|
| 804 | <p>If you mistakenly entered the wrong password or your Unix password
|
|---|
| 805 | changes, you can change your password on the Windows system by going
|
|---|
| 806 | to the Control Panel and double-clicking the Passwords icon. This
|
|---|
| 807 | will bring up the Passwords Properties dialog. Click the Change
|
|---|
| 808 | Passwords tab, and you will see the dialog shown in <a href="ch03.html#samba2-CHP-3-FIG-12">Figure 3-12</a>. Now click the "Change
|
|---|
| 809 | Windows Password..." button, which will bring up the
|
|---|
| 810 | Change Windows Password dialog box, shown in <a href="ch03.html#samba2-CHP-3-FIG-13">Figure 3-13</a>. As indicated by the text entry fields in the
|
|---|
| 811 | dialog, enter your old password, and then the new password, and again
|
|---|
| 812 | to confirm it. Click the OK button and then the Close button on the
|
|---|
| 813 | Password Properties dialog box. Reboot or log out, and use your new
|
|---|
| 814 | password when you log in again.</p>
|
|---|
| 815 |
|
|---|
| 816 | <div class="figure"><a name="samba2-CHP-3-FIG-12"/><img src="figs/sam2_0312.gif"/></div><h4 class="head4">Figure 3-12. The Password Properties dialog</h4>
|
|---|
| 817 |
|
|---|
| 818 | <div class="figure"><a name="samba2-CHP-3-FIG-13"/><img src="figs/sam2_0313.gif"/></div><h4 class="head4">Figure 3-13. The Change Windows Password dialog</h4>
|
|---|
| 819 |
|
|---|
| 820 |
|
|---|
| 821 | <div class="sect3"><a name="samba2-CHP-3-SECT-2.3.1"/>
|
|---|
| 822 |
|
|---|
| 823 | <h3 class="head3">Logging in for the first time</h3>
|
|---|
| 824 |
|
|---|
| 825 | <p>If you don't have a Change Passwords tab in the
|
|---|
| 826 | Passwords Properties window, it is because networking is not fully
|
|---|
| 827 | set up yet. Assuming you've followed all the
|
|---|
| 828 | directions given so far, you just need to reboot; when the system
|
|---|
| 829 | comes up, it will ask you to log in with a username and a password.</p>
|
|---|
| 830 |
|
|---|
| 831 | <p>Now for the big moment. Your Samba server is running, and you have
|
|---|
| 832 | set up your Windows 95/98/Me client to communicate with it.</p>
|
|---|
| 833 |
|
|---|
| 834 |
|
|---|
| 835 | </div>
|
|---|
| 836 |
|
|---|
| 837 |
|
|---|
| 838 |
|
|---|
| 839 | <div class="sect3"><a name="samba2-CHP-3-SECT-2.3.2"/>
|
|---|
| 840 |
|
|---|
| 841 | <h3 class="head3">Accessing the Samba Server from Windows 95/98</h3>
|
|---|
| 842 |
|
|---|
| 843 | <p><a name="INDEX-78"/><a name="INDEX-79"/>Double-click the Network Neighborhood
|
|---|
| 844 | icon on the desktop. You should see your Samba server listed as a
|
|---|
| 845 | member of the workgroup, as shown in <a href="ch03.html#samba2-CHP-3-FIG-14">Figure 3-14</a>.</p>
|
|---|
| 846 |
|
|---|
| 847 | <div class="figure"><a name="samba2-CHP-3-FIG-14"/><img src="figs/sam2_0314.gif"/></div><h4 class="head4">Figure 3-14. Windows 95/98 Network Neighborhood</h4>
|
|---|
| 848 |
|
|---|
| 849 | <p>Double-clicking the server name will show the resources that the
|
|---|
| 850 | server is offering to the network, as shown in <a href="ch03.html#samba2-CHP-3-FIG-15">Figure 3-15</a> (in this case, the <em class="emphasis">test</em>
|
|---|
| 851 | directory).</p>
|
|---|
| 852 |
|
|---|
| 853 | <div class="figure"><a name="samba2-CHP-3-FIG-15"/><img src="figs/sam2_0315.gif"/></div><h4 class="head4">Figure 3-15. The test shared folder on the Toltec server</h4>
|
|---|
| 854 |
|
|---|
| 855 |
|
|---|
| 856 | </div>
|
|---|
| 857 |
|
|---|
| 858 |
|
|---|
| 859 |
|
|---|
| 860 | <div class="sect3"><a name="samba2-CHP-3-SECT-2.3.3"/>
|
|---|
| 861 |
|
|---|
| 862 | <h3 class="head3">Accessing the Samba Server from Windows Me</h3>
|
|---|
| 863 |
|
|---|
| 864 | <p>Double-click the My Network Places icon on the desktop. You should
|
|---|
| 865 | see the test shared directory as shown in <a href="ch03.html#samba2-CHP-3-FIG-16">Figure 3-16</a>.</p>
|
|---|
| 866 |
|
|---|
| 867 | <div class="figure"><a name="samba2-CHP-3-FIG-16"/><img src="figs/sam2_0316.gif"/></div><h4 class="head4">Figure 3-16. My Network Places on Windows Me</h4>
|
|---|
| 868 |
|
|---|
| 869 | <p>Double-click the Entire Network icon, and you should see an icon for
|
|---|
| 870 | your workgroup, as shown in <a href="ch03.html#samba2-CHP-3-FIG-17">Figure 3-17</a>.</p>
|
|---|
| 871 |
|
|---|
| 872 | <div class="figure"><a name="samba2-CHP-3-FIG-17"/><img src="figs/sam2_0317.gif"/></div><h4 class="head4">Figure 3-17. Entire Network window, showing the Metran workgroup</h4>
|
|---|
| 873 |
|
|---|
| 874 | <p>Double-clicking the workgroup icon will bring up a window showing
|
|---|
| 875 | every computer in the workgroup, which should include your Samba
|
|---|
| 876 | server, as shown in <a href="ch03.html#samba2-CHP-3-FIG-18">Figure 3-18</a>.</p>
|
|---|
| 877 |
|
|---|
| 878 | <div class="figure"><a name="samba2-CHP-3-FIG-18"/><img src="figs/sam2_0318.gif"/></div><h4 class="head4">Figure 3-18. Computers in Metran workgroup</h4>
|
|---|
| 879 |
|
|---|
| 880 | <p>Double-click the Samba server's icon, and you will
|
|---|
| 881 | get a window showing its shared resources (in this case, the test
|
|---|
| 882 | directory) as shown in <a href="ch03.html#samba2-CHP-3-FIG-19">Figure 3-19</a>.</p>
|
|---|
| 883 |
|
|---|
| 884 | <div class="figure"><a name="samba2-CHP-3-FIG-19"/><img src="figs/sam2_0319.gif"/></div><h4 class="head4">Figure 3-19. View of shares on the Toltec server</h4>
|
|---|
| 885 |
|
|---|
| 886 | <p>If you don't see the server listed, it might be that
|
|---|
| 887 | browsing is not working correctly or maybe the server is just taking
|
|---|
| 888 | a few minutes to show up in the browse list. In either case, you can
|
|---|
| 889 | click the Start button, then select
|
|---|
| 890 | "Run...". This will give you a
|
|---|
| 891 | dialog box into which you can type the name of your server and the
|
|---|
| 892 | share name <em class="emphasis">test</em> in the Windows UNC format
|
|---|
| 893 | <em class="filename">\\</em><em class="replaceable">server</em><em class="filename">\test</em>,
|
|---|
| 894 | as we did in <a href="ch01.html">Chapter 1</a>. This should open a window
|
|---|
| 895 | on the desktop showing the contents of the folder. If this does not
|
|---|
| 896 | work, there is likely a problem with name resolution, and you can try
|
|---|
| 897 | using the server's IP address instead of its
|
|---|
| 898 | computer name, like this:</p>
|
|---|
| 899 |
|
|---|
| 900 | <blockquote><pre class="code">\\172.16.1.1\test</pre></blockquote>
|
|---|
| 901 |
|
|---|
| 902 | <p>If things still aren't right, go directly to <a href="ch12.html#samba2-CHP-12-SECT-2">Section 12.2</a> to troubleshoot what is wrong
|
|---|
| 903 | with the network.</p>
|
|---|
| 904 |
|
|---|
| 905 | <p>If it works, congratulations! Try copying files to and from the
|
|---|
| 906 | server using the Windows drag-and-drop functionality. You might be
|
|---|
| 907 | pleasantly surprised how seamlessly everything works. <a name="INDEX-80"/></p>
|
|---|
| 908 |
|
|---|
| 909 |
|
|---|
| 910 | </div>
|
|---|
| 911 |
|
|---|
| 912 |
|
|---|
| 913 | </div>
|
|---|
| 914 |
|
|---|
| 915 |
|
|---|
| 916 | </div>
|
|---|
| 917 |
|
|---|
| 918 |
|
|---|
| 919 |
|
|---|
| 920 | <div class="sect1"><a name="samba2-CHP-3-SECT-3"/>
|
|---|
| 921 |
|
|---|
| 922 | <h2 class="head1">Setting Up Windows NT 4.0 Computers</h2>
|
|---|
| 923 |
|
|---|
| 924 | <p>Configuring <a name="INDEX-81"/>Windows NT
|
|---|
| 925 | is a little different than configuring Windows 95/98/Me. To use Samba
|
|---|
| 926 | with Windows NT, you will need both the Workstation service and the
|
|---|
| 927 | TCP/IP protocol. Both come standard with NT, but
|
|---|
| 928 | we'll work through installing and configuring them
|
|---|
| 929 | to make sure they are configured correctly.</p>
|
|---|
| 930 |
|
|---|
| 931 |
|
|---|
| 932 | <div class="sect2"><a name="samba2-CHP-3-SECT-3.1"/>
|
|---|
| 933 |
|
|---|
| 934 | <h3 class="head2">Basic Configuration</h3>
|
|---|
| 935 |
|
|---|
| 936 | <p><a name="INDEX-82"/>This section presents the steps
|
|---|
| 937 | to follow for TCP/IP-related configuration on Windows NT to get it to
|
|---|
| 938 | cooperate with Samba. If you need more details on Windows NT network
|
|---|
| 939 | administration, refer to Craig <a name="INDEX-83"/>Hunt and Robert Bruce
|
|---|
| 940 | <a name="INDEX-84"/>Thompson's
|
|---|
| 941 | <em class="citetitle">Windows NT TCP/IP Network Administration
|
|---|
| 942 | </em>(O'Reilly), an excellent guide.</p>
|
|---|
| 943 |
|
|---|
| 944 | <p>You should perform the following steps as the
|
|---|
| 945 | <tt class="literal">Administrator</tt> or another user in the
|
|---|
| 946 | <tt class="literal">Administrators</tt> group.</p>
|
|---|
| 947 |
|
|---|
| 948 |
|
|---|
| 949 | <div class="sect3"><a name="samba2-CHP-3-SECT-3.1.1"/>
|
|---|
| 950 |
|
|---|
| 951 | <h3 class="head3">Installing the TCP/IP protocol</h3>
|
|---|
| 952 |
|
|---|
| 953 | <p><a name="INDEX-85"/><a name="INDEX-86"/>From
|
|---|
| 954 | the Control Panel, double-click the Network icon, click the Protocols
|
|---|
| 955 | tab in the Network dialog box, and look to see if you have the TCP/IP
|
|---|
| 956 | protocol installed, as shown in <a href="ch03.html#samba2-CHP-3-FIG-20">Figure 3-20</a>.</p>
|
|---|
| 957 |
|
|---|
| 958 | <div class="figure"><a name="samba2-CHP-3-FIG-20"/><img src="figs/sam2_0320.gif"/></div><h4 class="head4">Figure 3-20. The Protocols tab</h4>
|
|---|
| 959 |
|
|---|
| 960 | <p>If the protocol is not installed, you need to add it. Click the Add
|
|---|
| 961 | button, which will display the Select Network Protocol dialog box
|
|---|
| 962 | shown in <a href="ch03.html#samba2-CHP-3-FIG-21">Figure 3-21</a>. You should immediately see the
|
|---|
| 963 | TCP/IP protocol as one of the last protocols listed.</p>
|
|---|
| 964 |
|
|---|
| 965 | <div class="figure"><a name="samba2-CHP-3-FIG-21"/><img src="figs/sam2_0321.gif"/></div><h4 class="head4">Figure 3-21. Select Network Protocol dialog box</h4>
|
|---|
| 966 |
|
|---|
| 967 | <p>Select TCP/IP as the protocol and confirm it. If
|
|---|
| 968 | possible, install only the TCP/IP protocol. If you see anything other
|
|---|
| 969 | than TCP/IP listed in the Protocols tab and it is not a protocol that
|
|---|
| 970 | you need, you can remove it. If you try to remove a protocol and get
|
|---|
| 971 | an error message saying that the protocol is being used by another
|
|---|
| 972 | service, you need to click the Services tab and remove that service
|
|---|
| 973 | before you can remove the protocol. For example, to remove the NWLink
|
|---|
| 974 | IPX/SPX Compatible Transport protocol, you would need to remove the
|
|---|
| 975 | Client Service for Netware first.</p>
|
|---|
| 976 |
|
|---|
| 977 |
|
|---|
| 978 | </div>
|
|---|
| 979 |
|
|---|
| 980 |
|
|---|
| 981 |
|
|---|
| 982 | <div class="sect3"><a name="samba2-CHP-3-SECT-3.1.2"/>
|
|---|
| 983 |
|
|---|
| 984 | <h3 class="head3">Installing the Workstation service</h3>
|
|---|
| 985 |
|
|---|
| 986 | <p><a name="INDEX-87"/><a name="INDEX-88"/>After installing TCP/IP, click the
|
|---|
| 987 | Services tab in the Network dialog, and check that you have a
|
|---|
| 988 | Workstation service, as shown at the end of the list in <a href="ch03.html#samba2-CHP-3-FIG-22">Figure 3-22</a>.<a name="FNPTR-8"/><a href="#FOOTNOTE-8">[8]</a></p>
|
|---|
| 989 |
|
|---|
| 990 | <div class="figure"><a name="samba2-CHP-3-FIG-22"/><img src="figs/sam2_0322.gif"/></div><h4 class="head4">Figure 3-22. Network Services tab</h4>
|
|---|
| 991 |
|
|---|
| 992 | <p>This service is actually the Microsoft Networking Client, which
|
|---|
| 993 | allows the computer to access SMB services. The Workstation service
|
|---|
| 994 | is mandatory. The service is installed by default on both Windows NT
|
|---|
| 995 | Workstation 4.0 and NT Server 4.0. If it's not
|
|---|
| 996 | there, you can install it much like TCP/IP. In this case you need to
|
|---|
| 997 | click the Add button and then select Workstation Service, as shown in
|
|---|
| 998 | <a href="ch03.html#samba2-CHP-3-FIG-23">Figure 3-23</a>.</p>
|
|---|
| 999 |
|
|---|
| 1000 | <div class="figure"><a name="samba2-CHP-3-FIG-23"/><img src="figs/sam2_0323.gif"/></div><h4 class="head4">Figure 3-23. Select Network Service dialog box</h4>
|
|---|
| 1001 |
|
|---|
| 1002 |
|
|---|
| 1003 | </div>
|
|---|
| 1004 |
|
|---|
| 1005 |
|
|---|
| 1006 |
|
|---|
| 1007 | <div class="sect3"><a name="samba2-CHP-3-SECT-3.1.3"/>
|
|---|
| 1008 |
|
|---|
| 1009 | <h3 class="head3">Configuring TCP/IP</h3>
|
|---|
| 1010 |
|
|---|
| 1011 | <p><a name="INDEX-89"/><a name="INDEX-90"/>After you've installed
|
|---|
| 1012 | the Workstation service, return to the Protocols tab and select the
|
|---|
| 1013 | TCP/IP Protocol entry in the window. Then click the Properties button
|
|---|
| 1014 | below the window. The Microsoft TCP/IP Protocol dialog will be
|
|---|
| 1015 | displayed. There are five tabs in the dialog, and you will need to
|
|---|
| 1016 | work with four of them:</p>
|
|---|
| 1017 |
|
|---|
| 1018 | <ul><li>
|
|---|
| 1019 | <p>IP Address</p>
|
|---|
| 1020 | </li><li>
|
|---|
| 1021 | <p>WINS Address</p>
|
|---|
| 1022 | </li><li>
|
|---|
| 1023 | <p>DNS</p>
|
|---|
| 1024 | </li><li>
|
|---|
| 1025 | <p>Bindings</p>
|
|---|
| 1026 | </li></ul>
|
|---|
| 1027 |
|
|---|
| 1028 | <div class="sect4"><a name="samba2-CHP-3-SECT-3.1.1.1"/>
|
|---|
| 1029 |
|
|---|
| 1030 | <h4 class="head4">IP Address tab</h4>
|
|---|
| 1031 |
|
|---|
| 1032 | <p><a name="INDEX-91"/><a name="INDEX-92"/>The IP
|
|---|
| 1033 | Address tab is shown in <a href="ch03.html#samba2-CHP-3-FIG-24">Figure 3-24</a>.</p>
|
|---|
| 1034 |
|
|---|
| 1035 | <div class="figure"><a name="samba2-CHP-3-FIG-24"/><img src="figs/sam2_0324.gif"/></div><h4 class="head4">Figure 3-24. Microsoft TCP/IP Properties dialog for Windows NT</h4>
|
|---|
| 1036 |
|
|---|
| 1037 | <p>Select the "Specify an IP address"
|
|---|
| 1038 | radio button, and enter the computer's IP address
|
|---|
| 1039 | and netmask in the space provided for the proper adapter (Ethernet
|
|---|
| 1040 | card). You or your network manager should have selected an address
|
|---|
| 1041 | for the client on the same subnet (LAN) as the Samba server. For
|
|---|
| 1042 | example, if the server's address is 172.16.1.1 and
|
|---|
| 1043 | its network mask is 255.255.255.0, you might use the address
|
|---|
| 1044 | 172.16.1.13 (if it is available) for the NT workstation, along with
|
|---|
| 1045 | the same netmask. If you use DHCP on your network, select the
|
|---|
| 1046 | "Obtain an IP Address from a DHCP
|
|---|
| 1047 | server" button instead.</p>
|
|---|
| 1048 |
|
|---|
| 1049 | <p>The gateway field refers to a system typically known as a
|
|---|
| 1050 | <em class="emphasis">router</em>. If you have routers connecting multiple
|
|---|
| 1051 | networks, you should enter the IP address of the one on your subnet.
|
|---|
| 1052 | In our example, the gateway happens to be the same system as the
|
|---|
| 1053 | Samba server, but they do not by any means have to be the same.</p>
|
|---|
| 1054 |
|
|---|
| 1055 |
|
|---|
| 1056 | </div>
|
|---|
| 1057 |
|
|---|
| 1058 |
|
|---|
| 1059 |
|
|---|
| 1060 | <div class="sect4"><a name="samba2-CHP-3-SECT-3.1.1.2"/>
|
|---|
| 1061 |
|
|---|
| 1062 | <h4 class="head4">WINS Address tab</h4>
|
|---|
| 1063 |
|
|---|
| 1064 | <p><a name="INDEX-93"/><a name="INDEX-94"/>Click the
|
|---|
| 1065 | WINS Address tab, shown in <a href="ch03.html#samba2-CHP-3-FIG-25">Figure 3-25</a>, and you can
|
|---|
| 1066 | begin to enter information about name servers. Enter the address of
|
|---|
| 1067 | your WINS server in the space labeled Primary WINS Server. If your
|
|---|
| 1068 | Samba server is providing WINS service (in other words, you have the
|
|---|
| 1069 | line <tt class="literal">wins</tt> <tt class="literal">support</tt>
|
|---|
| 1070 | <tt class="literal">=</tt> <tt class="literal">yes</tt> in the
|
|---|
| 1071 | <em class="emphasis">smb.conf</em> file of your Samba server), provide the
|
|---|
| 1072 | Samba server's IP address here. Otherwise, provide
|
|---|
| 1073 | the address of another WINS server on your network.</p>
|
|---|
| 1074 |
|
|---|
| 1075 | <div class="figure"><a name="samba2-CHP-3-FIG-25"/><img src="figs/sam2_0325.gif"/></div><h4 class="head4">Figure 3-25. The WINS Address tab</h4>
|
|---|
| 1076 |
|
|---|
| 1077 | <p>You probably noticed that there is a field here for the network
|
|---|
| 1078 | adapter. This field must specify the Ethernet adapter on which
|
|---|
| 1079 | you're running TCP/IP so that WINS will provide name
|
|---|
| 1080 | service on the correct network. For example, if you have both a LAN
|
|---|
| 1081 | and a dial-up adapter, make sure you have the LAN's
|
|---|
| 1082 | network card specified here.</p>
|
|---|
| 1083 |
|
|---|
| 1084 | <p>The checkboxes in the lower half of the dialog are for enabling two
|
|---|
| 1085 | other methods of name resolution that Windows can incorporate into
|
|---|
| 1086 | its name service. Samba doesn't require either of
|
|---|
| 1087 | them, but you might want to enable them to increase the reliability
|
|---|
| 1088 | or functionality of name service for your client. See <a href="ch07.html">Chapter 7</a> for further information on name resolution
|
|---|
| 1089 | issues.</p>
|
|---|
| 1090 |
|
|---|
| 1091 | <p>If you'd like to use a DNS server, select the Enable
|
|---|
| 1092 | DNS for Windows Resolution checkbox. In addition, you will need to do
|
|---|
| 1093 | some configuration to allow the Windows system to find the DNS
|
|---|
| 1094 | server, unless you're using DHCP.</p>
|
|---|
| 1095 |
|
|---|
| 1096 |
|
|---|
| 1097 | </div>
|
|---|
| 1098 |
|
|---|
| 1099 |
|
|---|
| 1100 |
|
|---|
| 1101 | <div class="sect4"><a name="samba2-CHP-3-SECT-3.1.1.3"/>
|
|---|
| 1102 |
|
|---|
| 1103 | <h4 class="head4">DNS tab</h4>
|
|---|
| 1104 |
|
|---|
| 1105 | <p><a name="INDEX-95"/><a name="INDEX-96"/>Click
|
|---|
| 1106 | the tab for DNS, as shown in <a href="ch03.html#samba2-CHP-3-FIG-26">Figure 3-26</a>. Enter the
|
|---|
| 1107 | IP addresses for one or more DNS servers in the space provided. Also,
|
|---|
| 1108 | enter the hostname (which should be the same as the NetBIOS computer
|
|---|
| 1109 | name). You will enter this again later in another control panel, so
|
|---|
| 1110 | make sure they match. Finally, enter the DNS domain on which this
|
|---|
| 1111 | system resides. For example, if your workstation has a domain name
|
|---|
| 1112 | such as <em class="emphasis">metran.cx</em>, enter it here. You can safely
|
|---|
| 1113 | ignore the other options.</p>
|
|---|
| 1114 |
|
|---|
| 1115 | <div class="figure"><a name="samba2-CHP-3-FIG-26"/><img src="figs/sam2_0326.gif"/></div><h4 class="head4">Figure 3-26. The DNS tab</h4>
|
|---|
| 1116 |
|
|---|
| 1117 |
|
|---|
| 1118 | </div>
|
|---|
| 1119 |
|
|---|
| 1120 |
|
|---|
| 1121 |
|
|---|
| 1122 | <div class="sect4"><a name="samba2-CHP-3-SECT-3.1.1.4"/>
|
|---|
| 1123 |
|
|---|
| 1124 | <h4 class="head4">The LMHOSTS file</h4>
|
|---|
| 1125 |
|
|---|
| 1126 | <p>If you want to install an
|
|---|
| 1127 | <em class="filename">LMHOSTS</em><a name="INDEX-97"/><a name="INDEX-98"/> file, it
|
|---|
| 1128 | must be placed in the directory
|
|---|
| 1129 | <em class="filename">\system32\drivers\etc</em> under your Windows
|
|---|
| 1130 | installation directory (usually <em class="filename">C:\WINNT</em>). The
|
|---|
| 1131 | easy way to make sure it gets to the proper location is to use the
|
|---|
| 1132 | Import LMHOSTS button on the WINS Address tab. (But if you want to do
|
|---|
| 1133 | it over the network, you will have to do that after file sharing is
|
|---|
| 1134 | configured!) Remember to click the Enable LMHOSTS Lookup checkbox on
|
|---|
| 1135 | the WINS Address tab to enable this functionality.</p>
|
|---|
| 1136 |
|
|---|
| 1137 | <p>When you are satisfied with your settings for IP Address, WINS
|
|---|
| 1138 | Address, and DNS, click OK to return to the Network dialog box.</p>
|
|---|
| 1139 |
|
|---|
| 1140 |
|
|---|
| 1141 | </div>
|
|---|
| 1142 |
|
|---|
| 1143 |
|
|---|
| 1144 |
|
|---|
| 1145 | <div class="sect4"><a name="samba2-CHP-3-SECT-3.1.1.5"/>
|
|---|
| 1146 |
|
|---|
| 1147 | <h4 class="head4">Bindings</h4>
|
|---|
| 1148 |
|
|---|
| 1149 | <p><a name="INDEX-99"/><a name="INDEX-100"/>Now click the
|
|---|
| 1150 | Bindings tab, and check the bindings of network hardware, services,
|
|---|
| 1151 | and protocols. Set the "Show Bindings
|
|---|
| 1152 | for" field to "all
|
|---|
| 1153 | services," and click all the + buttons in the tree.
|
|---|
| 1154 | You should see a display similar to <a href="ch03.html#samba2-CHP-3-FIG-27">Figure 3-27</a>,
|
|---|
| 1155 | which shows that the NetBIOS, Server, and Workstation interface
|
|---|
| 1156 | services are connected to the WINS client running TCP/IP protocol,
|
|---|
| 1157 | and that the WINS client is bound to the Ethernet adapter of the
|
|---|
| 1158 | local area network.</p>
|
|---|
| 1159 |
|
|---|
| 1160 | <div class="figure"><a name="samba2-CHP-3-FIG-27"/><img src="figs/sam2_0327.gif"/></div><h4 class="head4">Figure 3-27. The Bindings tab</h4>
|
|---|
| 1161 |
|
|---|
| 1162 | <p>You can safely leave the default values for the remainder of the tabs
|
|---|
| 1163 | in the Network dialog box. Click the OK button to complete the
|
|---|
| 1164 | configuration. Once the proper files are loaded (if any), you might
|
|---|
| 1165 | need to reboot for your changes to take effect.</p>
|
|---|
| 1166 |
|
|---|
| 1167 |
|
|---|
| 1168 | </div>
|
|---|
| 1169 |
|
|---|
| 1170 |
|
|---|
| 1171 | </div>
|
|---|
| 1172 |
|
|---|
| 1173 |
|
|---|
| 1174 | </div>
|
|---|
| 1175 |
|
|---|
| 1176 |
|
|---|
| 1177 | <div class="sect2"><a name="samba2-CHP-3-SECT-3.2"/>
|
|---|
| 1178 |
|
|---|
| 1179 | <h3 class="head2">Computer Name and Workgroup</h3>
|
|---|
| 1180 |
|
|---|
| 1181 | <p><a name="INDEX-101"/><a name="INDEX-102"/><a name="INDEX-103"/><a name="INDEX-104"/>The next
|
|---|
| 1182 | thing you need to do is to give the system a NetBIOS computer name.
|
|---|
| 1183 | From the Control Panel, double-click the Network icon to open the
|
|---|
| 1184 | Network dialog box. The first tab in this dialog box should be the
|
|---|
| 1185 | Identification tab, as illustrated in <a href="ch03.html#samba2-CHP-3-FIG-28">Figure 3-28</a>.</p>
|
|---|
| 1186 |
|
|---|
| 1187 | <div class="figure"><a name="samba2-CHP-3-FIG-28"/><img src="figs/sam2_0328.gif"/></div><h4 class="head4">Figure 3-28. The Identification tab</h4>
|
|---|
| 1188 |
|
|---|
| 1189 | <p>Here, you need to identify your computer with a name and change the
|
|---|
| 1190 | default workgroup to the one you specified in the
|
|---|
| 1191 | <em class="emphasis">smb.conf</em> file of your Samba server. Click the
|
|---|
| 1192 | Change button below the two text fields. This will open an
|
|---|
| 1193 | Identification Changes dialog box, where you can set the workgroup
|
|---|
| 1194 | and the computer name, as shown in <a href="ch03.html#samba2-CHP-3-FIG-29">Figure 3-29</a>.</p>
|
|---|
| 1195 |
|
|---|
| 1196 | <div class="figure"><a name="samba2-CHP-3-FIG-29"/><img src="figs/sam2_0329.gif"/></div><h4 class="head4">Figure 3-29. The Identification Changes dialog</h4>
|
|---|
| 1197 | <a name="samba2-CHP-3-NOTE-94"/><blockquote class="note"><h4 class="objtitle">WARNING</h4>
|
|---|
| 1198 | <p>You entered the computer name earlier as a DNS hostname while
|
|---|
| 1199 | configuring TCP/IP, so be sure that the two names match. The name you
|
|---|
| 1200 | set here is the NetBIOS name. You're allowed to make
|
|---|
| 1201 | it different from the TCP/IP hostname, but doing so is usually not a
|
|---|
| 1202 | good idea. Don't worry that Windows NT forces the
|
|---|
| 1203 | computer name and the workgroup to be all capital letters;
|
|---|
| 1204 | it's smart enough to figure out what you mean when
|
|---|
| 1205 | it connects to the network.</p>
|
|---|
| 1206 | </blockquote>
|
|---|
| 1207 |
|
|---|
| 1208 |
|
|---|
| 1209 | </div>
|
|---|
| 1210 |
|
|---|
| 1211 |
|
|---|
| 1212 | <div class="sect2"><a name="samba2-CHP-3-SECT-3.3"/>
|
|---|
| 1213 |
|
|---|
| 1214 | <h3 class="head2">Adding a User</h3>
|
|---|
| 1215 |
|
|---|
| 1216 | <p><a name="INDEX-105"/><a name="INDEX-106"/>In all
|
|---|
| 1217 | the previous steps, you were logged into your Windows NT system as
|
|---|
| 1218 | <tt class="literal">Administrator</tt> or another user in the
|
|---|
| 1219 | <tt class="literal">Administrators</tt> group. To access resources on the
|
|---|
| 1220 | Samba server, you will need to have a username and password that the
|
|---|
| 1221 | Samba server recognizes as valid. Generally, the best way to do this
|
|---|
| 1222 | is to add a user to your NT system, with the same username and
|
|---|
| 1223 | password as a user on the Samba host system.</p>
|
|---|
| 1224 |
|
|---|
| 1225 | <a name="samba2-CHP-3-NOTE-95"/><blockquote class="note"><h4 class="objtitle">TIP</h4>
|
|---|
| 1226 | <p>The directions in this section assume that your network is set up as
|
|---|
| 1227 | a workgroup. If you have already set up your network as a domain, as
|
|---|
| 1228 | we describe in <a href="ch04.html">Chapter 4</a>, you do not need to
|
|---|
| 1229 | follow the instructions here for adding a local user on the Windows
|
|---|
| 1230 | NT client system. Simply log on to the domain from the client using a
|
|---|
| 1231 | username and password in Samba's
|
|---|
| 1232 | <em class="filename">smbpasswd</em> account database, and continue with
|
|---|
| 1233 | the next section, <a href="ch03.html#samba2-CHP-3-SECT-3.4">Section 3.3.4</a>.</p>
|
|---|
| 1234 | </blockquote>
|
|---|
| 1235 |
|
|---|
| 1236 | <p>To add a new user, open the Start menu, navigate through the Programs
|
|---|
| 1237 | submenu to Administrative Tools (Common), and select User Manager for
|
|---|
| 1238 | Domains. Click the User menu and select the first item, Add User...,
|
|---|
| 1239 | shown in <a href="ch03.html#samba2-CHP-3-FIG-30">Figure 3-30</a>.</p>
|
|---|
| 1240 |
|
|---|
| 1241 | <div class="figure"><a name="samba2-CHP-3-FIG-30"/><img src="figs/sam2_0330.gif"/></div><h4 class="head4">Figure 3-30. User Manager for Domains window</h4>
|
|---|
| 1242 |
|
|---|
| 1243 | <p>This brings up the New User dialog box shown in <a href="ch03.html#samba2-CHP-3-FIG-31">Figure 3-31</a>.</p>
|
|---|
| 1244 |
|
|---|
| 1245 | <div class="figure"><a name="samba2-CHP-3-FIG-31"/><img src="figs/sam2_0331.gif"/></div><h4 class="head4">Figure 3-31. The New User dialog</h4>
|
|---|
| 1246 |
|
|---|
| 1247 | <p>Fill it out as shown, using the username and password that were added
|
|---|
| 1248 | in the previous chapter, and make sure that only the checkbox labeled
|
|---|
| 1249 | Password Never Expires is checked. (This is not the default!) Click
|
|---|
| 1250 | the Add button to add the user, and then click the Close button. You
|
|---|
| 1251 | should now see your new account added to the list in the User Manager
|
|---|
| 1252 | dialog box.</p>
|
|---|
| 1253 |
|
|---|
| 1254 | <p>Now open the Start menu, select Shut Down, and select the
|
|---|
| 1255 | "Close all programs and log on as a different
|
|---|
| 1256 | user?" radio button. Click the Yes button, then log
|
|---|
| 1257 | in as the user you just added.</p>
|
|---|
| 1258 |
|
|---|
| 1259 |
|
|---|
| 1260 | </div>
|
|---|
| 1261 |
|
|---|
| 1262 |
|
|---|
| 1263 | <div class="sect2"><a name="samba2-CHP-3-SECT-3.4"/>
|
|---|
| 1264 |
|
|---|
| 1265 | <h3 class="head2">Connecting to the Samba Server</h3>
|
|---|
| 1266 |
|
|---|
| 1267 | <p>Now for the big moment. Your <a name="INDEX-107"/><a name="INDEX-108"/>Samba
|
|---|
| 1268 | server is running, and you have set up your NT client to communicate
|
|---|
| 1269 | with it. Double-click the Network Neighborhood icon on the desktop,
|
|---|
| 1270 | and you should see your Samba server listed as a member of the
|
|---|
| 1271 | workgroup, as shown in <a href="ch03.html#samba2-CHP-3-FIG-32">Figure 3-32</a>.</p>
|
|---|
| 1272 |
|
|---|
| 1273 | <div class="figure"><a name="samba2-CHP-3-FIG-32"/><img src="figs/sam2_0332.gif"/></div><h4 class="head4">Figure 3-32. The Windows NT Network Neighborhood</h4>
|
|---|
| 1274 |
|
|---|
| 1275 | <p>Double-clicking the server name will show the resources that the
|
|---|
| 1276 | server is offering to the network, as shown in <a href="ch03.html#samba2-CHP-3-FIG-33">Figure 3-33</a>. In this case, the <em class="filename">test</em>
|
|---|
| 1277 | directory and the default printer are offered to the Windows NT
|
|---|
| 1278 | workstation.</p>
|
|---|
| 1279 |
|
|---|
| 1280 | <div class="figure"><a name="samba2-CHP-3-FIG-33"/><img src="figs/sam2_0333.gif"/></div><h4 class="head4">Figure 3-33. Shares offered by the Toltec server</h4>
|
|---|
| 1281 |
|
|---|
| 1282 | <p>If you don't see the server listed,
|
|---|
| 1283 | don't panic. Select Run... from the Start menu. A
|
|---|
| 1284 | dialog box appears that allows you to type the name of your server
|
|---|
| 1285 | and its share directory in Windows format. For example, you would
|
|---|
| 1286 | enter
|
|---|
| 1287 | <em class="filename">\\</em>toltec<em class="filename">\</em><tt class="literal">test</tt>,
|
|---|
| 1288 | as shown in <a href="ch03.html#samba2-CHP-3-FIG-34">Figure 3-34</a>, and use your
|
|---|
| 1289 | server's hostname instead of
|
|---|
| 1290 | "toltec".</p>
|
|---|
| 1291 |
|
|---|
| 1292 | <div class="figure"><a name="samba2-CHP-3-FIG-34"/><img src="figs/sam2_0334.gif"/></div><h4 class="head4">Figure 3-34. Opening a shared directory, using the server's NetBIOS name in the UNC</h4>
|
|---|
| 1293 |
|
|---|
| 1294 | <p>This will work even if browsing services are not set up right, which
|
|---|
| 1295 | is a common problem. You can also work around a name-service problem
|
|---|
| 1296 | by entering the server's IP Address (such as
|
|---|
| 1297 | 172.16.1.1 in our example) instead of the Samba
|
|---|
| 1298 | server's hostname, as shown in <a href="ch03.html#samba2-CHP-3-FIG-35">Figure 3-35</a>. Go back and check your configuration, and if
|
|---|
| 1299 | things still aren't right, go to <a href="ch12.html#samba2-CHP-12-SECT-2">Section 12.2</a> to troubleshoot what is wrong with the
|
|---|
| 1300 | network.</p>
|
|---|
| 1301 |
|
|---|
| 1302 | <div class="figure"><a name="samba2-CHP-3-FIG-35"/><img src="figs/sam2_0335.gif"/></div><h4 class="head4">Figure 3-35. Opening a shared directory, using the server's IP address in the UNC</h4>
|
|---|
| 1303 |
|
|---|
| 1304 | <p>If it works, congratulations! Try copying files to and from the
|
|---|
| 1305 | server by dragging their icons to and from the folder on the Samba
|
|---|
| 1306 | share. You might be pleasantly surprised how seamlessly everything
|
|---|
| 1307 | works. <a name="INDEX-109"/></p>
|
|---|
| 1308 |
|
|---|
| 1309 |
|
|---|
| 1310 | </div>
|
|---|
| 1311 |
|
|---|
| 1312 |
|
|---|
| 1313 | </div>
|
|---|
| 1314 |
|
|---|
| 1315 |
|
|---|
| 1316 |
|
|---|
| 1317 | <div class="sect1"><a name="samba2-CHP-3-SECT-4"/>
|
|---|
| 1318 |
|
|---|
| 1319 | <h2 class="head1">Setting Up Windows 2000 Computers</h2>
|
|---|
| 1320 |
|
|---|
| 1321 | <p><a name="INDEX-110"/>Although
|
|---|
| 1322 | Windows 2000 is based on NT technology and is similar to Windows NT
|
|---|
| 1323 | in many respects, configuring it for use with Samba is quite
|
|---|
| 1324 | different.</p>
|
|---|
| 1325 |
|
|---|
| 1326 | <p>You should perform the following steps as the
|
|---|
| 1327 | <tt class="literal">Administrator</tt> or another user in the
|
|---|
| 1328 | <tt class="literal">Administrators</tt> group.</p>
|
|---|
| 1329 |
|
|---|
| 1330 |
|
|---|
| 1331 | <div class="sect2"><a name="samba2-CHP-3-SECT-4.1"/>
|
|---|
| 1332 |
|
|---|
| 1333 | <h3 class="head2">Networking Components</h3>
|
|---|
| 1334 |
|
|---|
| 1335 | <p><a name="INDEX-111"/><a name="INDEX-112"/>Go to the Control Panel and
|
|---|
| 1336 | double-click the Network and Dial-up Connections icon. You should see
|
|---|
| 1337 | at least one Local Area Connection icon. If there is more than one,
|
|---|
| 1338 | identify the one that corresponds to the network adapter that is
|
|---|
| 1339 | connected to your Samba network. Right-click the Local Area
|
|---|
| 1340 | Connection icon, and click the Properties button. (Or double-click
|
|---|
| 1341 | the Local Area Connection icon, and then click the Properties button
|
|---|
| 1342 | in the dialog box that comes up.) You should now be looking at the
|
|---|
| 1343 | Local Area Connection Properties dialog box, as shown in <a href="ch03.html#samba2-CHP-3-FIG-36">Figure 3-36</a>.</p>
|
|---|
| 1344 |
|
|---|
| 1345 | <div class="figure"><a name="samba2-CHP-3-FIG-36"/><img src="figs/sam2_0336.gif"/></div><h4 class="head4">Figure 3-36. Windows 2000 Local Area Connection Properties dialog</h4>
|
|---|
| 1346 |
|
|---|
| 1347 | <p>First of all, you might want to click the Configure button under the
|
|---|
| 1348 | field for the network adapter, to make sure you see the message
|
|---|
| 1349 | "This device is working properly"
|
|---|
| 1350 | in the Device status window. If there is a problem, make sure to
|
|---|
| 1351 | correct it before continuing. You should also see the message
|
|---|
| 1352 | "Use this device (enable)" in the
|
|---|
| 1353 | Device usage field of the dialog box. Make sure to set it this way if
|
|---|
| 1354 | it is not already. Click OK or Cancel to get back to the Local Area
|
|---|
| 1355 | Connection Properties dialog box.</p>
|
|---|
| 1356 |
|
|---|
| 1357 | <p>You should see at least the following two components:</p>
|
|---|
| 1358 |
|
|---|
| 1359 | <ul><li>
|
|---|
| 1360 | <p>Client for Microsoft Networks</p>
|
|---|
| 1361 | </li><li>
|
|---|
| 1362 | <p>Internet Protocol (TCP/IP)</p>
|
|---|
| 1363 | </li></ul>
|
|---|
| 1364 | <p>If you do not see either Client for Microsoft Networks or Internet
|
|---|
| 1365 | Protocol (TCP/IP) in your list, you will need to add them. For
|
|---|
| 1366 | either, the method is to click the Install... button, click the type
|
|---|
| 1367 | of component (Client or Protocol), and then click the Add... button.
|
|---|
| 1368 | Next, click the component you want to add, and click the OK button.
|
|---|
| 1369 | You should see the component added to the list with the others.</p>
|
|---|
| 1370 |
|
|---|
| 1371 | <p>Some components should be removed if you see them in the list:</p>
|
|---|
| 1372 |
|
|---|
| 1373 | <ul><li>
|
|---|
| 1374 | <p>NetBEUI Protocol</p>
|
|---|
| 1375 | </li><li>
|
|---|
| 1376 | <p>NWLink NetBIOS</p>
|
|---|
| 1377 | </li><li>
|
|---|
| 1378 | <p>NWLink IPX/SPX/NetBIOS Compatible Transport Protocol</p>
|
|---|
| 1379 | </li><li>
|
|---|
| 1380 | <p>Client Service for Netware</p>
|
|---|
| 1381 | </li></ul>
|
|---|
| 1382 | <p>If you see anything other than TCP/IP listed as a protocol, and it is
|
|---|
| 1383 | not a protocol that you need, you can remove it. Uninstall NetBEUI,
|
|---|
| 1384 | unless you are sure you need it, and the other three if you do not
|
|---|
| 1385 | need to support Netware. If you try to remove a protocol and get an
|
|---|
| 1386 | error message saying that the protocol is being used by another
|
|---|
| 1387 | service, you need to remove that service before you can remove the
|
|---|
| 1388 | protocol. For example, to remove the NWLink IPX/SPX Compatible
|
|---|
| 1389 | Transport Protocol, you would need to remove the Client Service for
|
|---|
| 1390 | Netware first.</p>
|
|---|
| 1391 |
|
|---|
| 1392 | <p>To remove a component, click the component in the list, click the
|
|---|
| 1393 | Uninstall button, and then click Yes in the dialog box that pops up.
|
|---|
| 1394 | In some cases, Windows might need to reboot to put the change into
|
|---|
| 1395 | effect.</p>
|
|---|
| 1396 |
|
|---|
| 1397 |
|
|---|
| 1398 | </div>
|
|---|
| 1399 |
|
|---|
| 1400 |
|
|---|
| 1401 | <div class="sect2"><a name="samba2-CHP-3-SECT-4.2"/>
|
|---|
| 1402 |
|
|---|
| 1403 | <h3 class="head2">Bindings</h3>
|
|---|
| 1404 |
|
|---|
| 1405 | <p><a name="INDEX-113"/><a name="INDEX-114"/>Next to each
|
|---|
| 1406 | client, service, or protocol listed in the window in the Local Area
|
|---|
| 1407 | Connections Properties dialog box, you will see a checkbox. Make sure
|
|---|
| 1408 | the checkbox is checked for both Client for Microsoft Networks and
|
|---|
| 1409 | Internet Protocol (TCP/IP). The check marks indicate the networking
|
|---|
| 1410 | components are bound to the network adapter shown at the top of the
|
|---|
| 1411 | dialog box.</p>
|
|---|
| 1412 |
|
|---|
| 1413 |
|
|---|
| 1414 | </div>
|
|---|
| 1415 |
|
|---|
| 1416 |
|
|---|
| 1417 | <div class="sect2"><a name="samba2-CHP-3-SECT-4.3"/>
|
|---|
| 1418 |
|
|---|
| 1419 | <h3 class="head2">Configuring TCP/IP</h3>
|
|---|
| 1420 |
|
|---|
| 1421 | <p><a name="INDEX-115"/><a name="INDEX-116"/>Now click Internet Protocol (TCP/IP),
|
|---|
| 1422 | and then click Properties to open the Internet Protocol (TCP/IP)
|
|---|
| 1423 | Properties dialog box, shown in <a href="ch03.html#samba2-CHP-3-FIG-37">Figure 3-37</a>.</p>
|
|---|
| 1424 |
|
|---|
| 1425 | <div class="figure"><a name="samba2-CHP-3-FIG-37"/><img src="figs/sam2_0337.gif"/></div><h4 class="head4">Figure 3-37. Internet Protocol (TCP/IP) Properties dialog</h4>
|
|---|
| 1426 |
|
|---|
| 1427 |
|
|---|
| 1428 | <div class="sect3"><a name="samba2-CHP-3-SECT-4.3.1"/>
|
|---|
| 1429 |
|
|---|
| 1430 | <h3 class="head3">IP address</h3>
|
|---|
| 1431 |
|
|---|
| 1432 | <p><a name="INDEX-117"/><a name="INDEX-118"/>If
|
|---|
| 1433 | you are using DHCP on your network to assign IP addresses
|
|---|
| 1434 | dynamically, select the "Obtain IP address
|
|---|
| 1435 | automatically" radio button. Otherwise, select the
|
|---|
| 1436 | "Use the following address:" radio
|
|---|
| 1437 | button, and fill in the computer's IP address and
|
|---|
| 1438 | netmask in the spaces provided. You or your network manager should
|
|---|
| 1439 | have selected an address for the client on the same subnet (LAN) as
|
|---|
| 1440 | the Samba server. For example, if the server's
|
|---|
| 1441 | address is 172.16.1.1 and its network mask is 255.255.255.0, you
|
|---|
| 1442 | might use the address 172.16.1.14, if it is available, along with the
|
|---|
| 1443 | same netmask. You can also fill in the IP address of the default
|
|---|
| 1444 | gateway.</p>
|
|---|
| 1445 |
|
|---|
| 1446 |
|
|---|
| 1447 | </div>
|
|---|
| 1448 |
|
|---|
| 1449 |
|
|---|
| 1450 |
|
|---|
| 1451 | <div class="sect3"><a name="samba2-CHP-3-SECT-4.3.2"/>
|
|---|
| 1452 |
|
|---|
| 1453 | <h3 class="head3">DNS server</h3>
|
|---|
| 1454 |
|
|---|
| 1455 | <p><a name="INDEX-119"/><a name="INDEX-120"/>In
|
|---|
| 1456 | the lower part of the dialog box, click the "Use the
|
|---|
| 1457 | following DNS server addresses:" radio button, and
|
|---|
| 1458 | fill in the IP address of your DNS server.</p>
|
|---|
| 1459 |
|
|---|
| 1460 | <p>Now click the Advanced... button to bring up the Advanced TCP/IP
|
|---|
| 1461 | Settings dialog box, and then click the WINS tab.</p>
|
|---|
| 1462 |
|
|---|
| 1463 |
|
|---|
| 1464 | </div>
|
|---|
| 1465 |
|
|---|
| 1466 |
|
|---|
| 1467 |
|
|---|
| 1468 | <div class="sect3"><a name="samba2-CHP-3-SECT-4.3.3"/>
|
|---|
| 1469 |
|
|---|
| 1470 | <h3 class="head3">WINS server</h3>
|
|---|
| 1471 |
|
|---|
| 1472 | <p><a name="INDEX-121"/><a name="INDEX-122"/>Enter the
|
|---|
| 1473 | address of your WINS server in the space labeled
|
|---|
| 1474 | "WINS addresses, in order of use:".
|
|---|
| 1475 | If your Samba server is providing WINS service (in other words, you
|
|---|
| 1476 | have the line <tt class="literal">wins</tt> <tt class="literal">service</tt>
|
|---|
| 1477 | <tt class="literal">=</tt> <tt class="literal">yes</tt> in the
|
|---|
| 1478 | <em class="emphasis">smb.conf</em> file of your Samba server), provide the
|
|---|
| 1479 | Samba server's IP address here. Otherwise, provide
|
|---|
| 1480 | the address of another WINS server on your network.</p>
|
|---|
| 1481 |
|
|---|
| 1482 | <p>Near the bottom of the dialog box, select the radio button labeled
|
|---|
| 1483 | "Enable NetBIOS over TCP/IP". <a href="ch03.html#samba2-CHP-3-FIG-38">Figure 3-38</a> shows what your Advanced TCP/IP Settings
|
|---|
| 1484 | dialog box should look like at this point.</p>
|
|---|
| 1485 |
|
|---|
| 1486 | <div class="figure"><a name="samba2-CHP-3-FIG-38"/><img src="figs/sam2_0338.gif"/></div><h4 class="head4">Figure 3-38. Advanced TCP/IP Settings dialog, showing WINS tab</h4>
|
|---|
| 1487 |
|
|---|
| 1488 |
|
|---|
| 1489 | </div>
|
|---|
| 1490 |
|
|---|
| 1491 |
|
|---|
| 1492 |
|
|---|
| 1493 | <div class="sect3"><a name="samba2-CHP-3-SECT-4.3.4"/>
|
|---|
| 1494 |
|
|---|
| 1495 | <h3 class="head3">The LMHOSTS file</h3>
|
|---|
| 1496 |
|
|---|
| 1497 | <p>If you want to install an
|
|---|
| 1498 | <em class="filename">LMHOSTS</em><a name="INDEX-123"/><a name="INDEX-124"/> file,
|
|---|
| 1499 | it must be placed in the <em class="filename">\system32\drivers\etc</em>
|
|---|
| 1500 | directory under your Windows installation directory (usually
|
|---|
| 1501 | <em class="filename">C:\WINNT</em> ). The easy way to make sure it gets to
|
|---|
| 1502 | the proper location is to use the Import LMHOSTS... button on the
|
|---|
| 1503 | WINS Address tab. (But if you want to do it over the network, you
|
|---|
| 1504 | will have to do that after file sharing is configured!) Remember to
|
|---|
| 1505 | click the Enable LMHOSTS Lookup checkbox on the WINS Address tab to
|
|---|
| 1506 | enable this functionality.</p>
|
|---|
| 1507 |
|
|---|
| 1508 | <p>When you are satisfied with your settings for IP Address, WINS
|
|---|
| 1509 | Address, and DNS, click the OK buttons in each open dialog box to
|
|---|
| 1510 | complete the configuration. Windows might need to load some files
|
|---|
| 1511 | from the Windows 2000 distribution CD-ROM, and you might need to
|
|---|
| 1512 | reboot for your changes to take effect.</p>
|
|---|
| 1513 |
|
|---|
| 1514 |
|
|---|
| 1515 | </div>
|
|---|
| 1516 |
|
|---|
| 1517 |
|
|---|
| 1518 | </div>
|
|---|
| 1519 |
|
|---|
| 1520 |
|
|---|
| 1521 | <div class="sect2"><a name="samba2-CHP-3-SECT-4.4"/>
|
|---|
| 1522 |
|
|---|
| 1523 | <h3 class="head2">Computer and Workgroup Names</h3>
|
|---|
| 1524 |
|
|---|
| 1525 | <p><a name="INDEX-125"/><a name="INDEX-126"/><a name="INDEX-127"/><a name="INDEX-128"/>From
|
|---|
| 1526 | the Control Panel, double-click the System icon to open the System
|
|---|
| 1527 | Properties dialog box. Click the Network Identification tab, and your
|
|---|
| 1528 | System Properties dialog box will look similar to <a href="ch03.html#samba2-CHP-3-FIG-39">Figure 3-39</a>.</p>
|
|---|
| 1529 |
|
|---|
| 1530 | <div class="figure"><a name="samba2-CHP-3-FIG-39"/><img src="figs/sam2_0339.gif"/></div><h4 class="head4">Figure 3-39. System Properties dialog, showing Network Identification tab</h4>
|
|---|
| 1531 |
|
|---|
| 1532 | <p>To give your system computer a name and a workgroup, click the
|
|---|
| 1533 | Properties button, which will bring up the Identification Changes
|
|---|
| 1534 | dialog box, as in <a href="ch03.html#samba2-CHP-3-FIG-40">Figure 3-40</a>.</p>
|
|---|
| 1535 |
|
|---|
| 1536 | <div class="figure"><a name="samba2-CHP-3-FIG-40"/><img src="figs/sam2_0340.gif"/></div><h4 class="head4">Figure 3-40. Identification Changes dialog</h4>
|
|---|
| 1537 |
|
|---|
| 1538 | <p>You need to identify your computer with a name and change the
|
|---|
| 1539 | workgroup to the one you specified in the
|
|---|
| 1540 | <em class="emphasis">smb.conf</em> file of your Samba server.
|
|---|
| 1541 | Don't worry that Windows forces the computer name
|
|---|
| 1542 | and the workgroup to be all capital letters; it's
|
|---|
| 1543 | smart enough to figure out what you mean when it connects to the
|
|---|
| 1544 | network.</p>
|
|---|
| 1545 |
|
|---|
| 1546 | <p>Click the More... button to bring up the DNS Suffix and NetBIOS
|
|---|
| 1547 | Computer Name dialog box, shown in <a href="ch03.html#samba2-CHP-3-FIG-41">Figure 3-41</a>.</p>
|
|---|
| 1548 |
|
|---|
| 1549 | <div class="figure"><a name="samba2-CHP-3-FIG-41"/><img src="figs/sam2_0341.gif"/></div><h4 class="head4">Figure 3-41. DNS Suffix and NetBIOS Computer Name dialog</h4>
|
|---|
| 1550 |
|
|---|
| 1551 | <p>Enter the DNS domain name of this computer in the text field labeled
|
|---|
| 1552 | Primary DNS Suffix for this computer:, and then click OK. You should
|
|---|
| 1553 | now see the FQDN of this system underneath the label
|
|---|
| 1554 | "Full computer name:". Click the OK
|
|---|
| 1555 | button and then reboot when requested to put your configuration
|
|---|
| 1556 | changes into effect. Once again, log in using your administrative
|
|---|
| 1557 | account.</p>
|
|---|
| 1558 | <a name="samba2-CHP-3-NOTE-96"/><blockquote class="note"><h4 class="objtitle">WARNING</h4>
|
|---|
| 1559 | <p>There have been reports of authentication problems with Samba when a
|
|---|
| 1560 | username on a Windows 2000 system is the same as its computer name.</p>
|
|---|
| 1561 | </blockquote>
|
|---|
| 1562 |
|
|---|
| 1563 |
|
|---|
| 1564 | </div>
|
|---|
| 1565 |
|
|---|
| 1566 |
|
|---|
| 1567 | <div class="sect2"><a name="samba2-CHP-3-SECT-4.5"/>
|
|---|
| 1568 |
|
|---|
| 1569 | <h3 class="head2">Adding a Samba-Enabled User</h3>
|
|---|
| 1570 |
|
|---|
| 1571 | <p><a name="INDEX-129"/><a name="INDEX-130"/>So far,
|
|---|
| 1572 | you have been logged into your Windows 2000 system as a user in the
|
|---|
| 1573 | <tt class="literal">Administrators</tt> group. To access resources on the
|
|---|
| 1574 | Samba server, you will need a username and password that the Samba
|
|---|
| 1575 | server recognizes as valid. If your administrative account has such a
|
|---|
| 1576 | username and password, you can use it, but you might want to access
|
|---|
| 1577 | your system and the network from a nonadministrative user account
|
|---|
| 1578 | instead.</p>
|
|---|
| 1579 | <a name="samba2-CHP-3-NOTE-97"/><blockquote class="note"><h4 class="objtitle">WARNING</h4>
|
|---|
| 1580 | <p>The directions in this section assume that your network is set up as
|
|---|
| 1581 | a workgroup. If you have already set up your network as a domain, as
|
|---|
| 1582 | we describe in <a href="ch04.html">Chapter 4</a>, you do not need to
|
|---|
| 1583 | follow the instructions here for adding a local user on the Windows
|
|---|
| 1584 | 2000 client system. Simply log on to the domain from the client using
|
|---|
| 1585 | a username and password in Samba's
|
|---|
| 1586 | <em class="filename">smbpasswd</em> account database, and continue with
|
|---|
| 1587 | the next section, <a href="ch03.html#samba2-CHP-3-SECT-4.6">Section 3.4.6</a>.</p>
|
|---|
| 1588 | </blockquote>
|
|---|
| 1589 |
|
|---|
| 1590 | <p>To add a new user, open the Control Panel, and double-click the Users
|
|---|
| 1591 | and Passwords icon to open the Users and Passwords dialog box, shown
|
|---|
| 1592 | in <a href="ch03.html#samba2-CHP-3-FIG-42">Figure 3-42</a>.</p>
|
|---|
| 1593 |
|
|---|
| 1594 | <div class="figure"><a name="samba2-CHP-3-FIG-42"/><img src="figs/sam2_0342.gif"/></div><h4 class="head4">Figure 3-42. Users and Passwords dialog</h4>
|
|---|
| 1595 |
|
|---|
| 1596 | <p>The first thing to do is make sure the checkbox labeled
|
|---|
| 1597 | "Users must enter a user name and password to use
|
|---|
| 1598 | this computer." is checked. Next, click the Add...
|
|---|
| 1599 | button to bring up the first dialog box of the User Wizard, shown in
|
|---|
| 1600 | <a href="ch03.html#samba2-CHP-3-FIG-43">Figure 3-43</a>.</p>
|
|---|
| 1601 |
|
|---|
| 1602 | <div class="figure"><a name="samba2-CHP-3-FIG-43"/><img src="figs/sam2_0343.gif"/></div><h4 class="head4">Figure 3-43. Adding a new user</h4>
|
|---|
| 1603 |
|
|---|
| 1604 | <p>Fill out the fields, using the username of a valid user account on
|
|---|
| 1605 | the Samba host, and then click the Next > button to enter and
|
|---|
| 1606 | confirm the user's password. This password must be
|
|---|
| 1607 | the same as the user's password on the Samba host.
|
|---|
| 1608 | If you are using encrypted passwords, make sure this username and
|
|---|
| 1609 | password are the same as what you used when you ran the
|
|---|
| 1610 | <em class="emphasis">smbpasswd</em> program. Click the Next > button,
|
|---|
| 1611 | which brings up the final dialog box, shown in <a href="ch03.html#samba2-CHP-3-FIG-44">Figure 3-44</a>.</p>
|
|---|
| 1612 |
|
|---|
| 1613 | <div class="figure"><a name="samba2-CHP-3-FIG-44"/><img src="figs/sam2_0344.gif"/></div><h4 class="head4">Figure 3-44. Specifying a group for the new user</h4>
|
|---|
| 1614 |
|
|---|
| 1615 | <p>Pick a group for the user (the default Standard User should do), and
|
|---|
| 1616 | click the Finish button. You should now see your new account added to
|
|---|
| 1617 | the list in the Users and Passwords dialog box. Click the OK button
|
|---|
| 1618 | to complete the process.</p>
|
|---|
| 1619 |
|
|---|
| 1620 | <p>Now return to the Users and Passwords control panel window, click the
|
|---|
| 1621 | Advanced tab, then click on the Advanced button. Click the Users
|
|---|
| 1622 | folder in the left side of the Local Users and Groups window that
|
|---|
| 1623 | appears, and then double-click the account you just added in the
|
|---|
| 1624 | right side of the window. In the Properties window that opens, click
|
|---|
| 1625 | the checkbox labeled Password never expires. You are done! Click the
|
|---|
| 1626 | OK buttons in all the dialog boxes, and close all open windows.</p>
|
|---|
| 1627 |
|
|---|
| 1628 | <p>Open the Start menu, select Shut Down, and select Log off
|
|---|
| 1629 | <em class="emphasis">username</em> from the drop-down menu. Click the OK
|
|---|
| 1630 | button, then log on with the username and password you just added.</p>
|
|---|
| 1631 |
|
|---|
| 1632 |
|
|---|
| 1633 | </div>
|
|---|
| 1634 |
|
|---|
| 1635 |
|
|---|
| 1636 | <div class="sect2"><a name="samba2-CHP-3-SECT-4.6"/>
|
|---|
| 1637 |
|
|---|
| 1638 | <h3 class="head2">Connecting to the Samba Server</h3>
|
|---|
| 1639 |
|
|---|
| 1640 | <p>Now for the big moment. Your Samba server is running, and you have
|
|---|
| 1641 | set up your <a name="INDEX-131"/><a name="INDEX-132"/>Windows 2000 client to communicate with
|
|---|
| 1642 | it. Double-click the My Network Places icon on the desktop, and then
|
|---|
| 1643 | double-click the Computers Near Me icon to browse the workgroup. You
|
|---|
| 1644 | should see your Samba server listed as a member of the workgroup, as
|
|---|
| 1645 | shown in <a href="ch03.html#samba2-CHP-3-FIG-45">Figure 3-45</a>.</p>
|
|---|
| 1646 |
|
|---|
| 1647 | <div class="figure"><a name="samba2-CHP-3-FIG-45"/><img src="figs/sam2_0345.gif"/></div><h4 class="head4">Figure 3-45. The Computers Near Me window, showing computers in the workgroup</h4>
|
|---|
| 1648 |
|
|---|
| 1649 | <p>Double-clicking the server name will show the resources that the
|
|---|
| 1650 | server is offering to the network, as shown in <a href="ch03.html#samba2-CHP-3-FIG-46">Figure 3-46</a>.</p>
|
|---|
| 1651 |
|
|---|
| 1652 | <div class="figure"><a name="samba2-CHP-3-FIG-46"/><img src="figs/sam2_0346.gif"/></div><h4 class="head4">Figure 3-46. Shares offered by the Toltec server</h4>
|
|---|
| 1653 |
|
|---|
| 1654 | <p>In this case, the <em class="filename">test</em> directory and the default
|
|---|
| 1655 | printer are offered to the Windows 2000 workstation. If you
|
|---|
| 1656 | don't see the server listed, don't
|
|---|
| 1657 | panic. Select Run from the Start menu. A dialog box appears that
|
|---|
| 1658 | allows you to type the name of your server and its share directory in
|
|---|
| 1659 | Windows format. For example, you would enter
|
|---|
| 1660 | <em class="filename">\\toltec\</em><tt class="literal">test</tt>, as shown in
|
|---|
| 1661 | <a href="ch03.html#samba2-CHP-3-FIG-47">Figure 3-47</a>, and use your server's
|
|---|
| 1662 | hostname instead of "toltec".</p>
|
|---|
| 1663 |
|
|---|
| 1664 | <div class="figure"><a name="samba2-CHP-3-FIG-47"/><img src="figs/sam2_0347.gif"/></div><h4 class="head4">Figure 3-47. Opening a shared directory, using the server's NetBIOS name in the UNC</h4>
|
|---|
| 1665 |
|
|---|
| 1666 | <p>This will work even if browsing services are not set up right, which
|
|---|
| 1667 | is a common problem. You can also work around a name-service problem
|
|---|
| 1668 | by entering the server's IP address (such as
|
|---|
| 1669 | 172.16.1.1 in our example) instead of the Samba
|
|---|
| 1670 | server's hostname, as shown in <a href="ch03.html#samba2-CHP-3-FIG-48">Figure 3-48</a>.</p>
|
|---|
| 1671 |
|
|---|
| 1672 | <div class="figure"><a name="samba2-CHP-3-FIG-48"/><img src="figs/sam2_0348.gif"/></div><h4 class="head4">Figure 3-48. Opening a shared directory, using the server's IP address in the UNC</h4>
|
|---|
| 1673 |
|
|---|
| 1674 | <p>If things still aren't right, go directly to <a href="ch12.html#samba2-CHP-12-SECT-2">Section 12.2</a> to troubleshoot what is wrong
|
|---|
| 1675 | with the network.</p>
|
|---|
| 1676 |
|
|---|
| 1677 | <p>If it works, congratulations! Try copying files to and from the
|
|---|
| 1678 | server. You will be pleasantly surprised how seamlessly everything
|
|---|
| 1679 | works. Now that you've finished setting up the Samba
|
|---|
| 1680 | server and its clients, you can proceed to the next chapter.
|
|---|
| 1681 | <a name="INDEX-133"/></p>
|
|---|
| 1682 |
|
|---|
| 1683 |
|
|---|
| 1684 | </div>
|
|---|
| 1685 |
|
|---|
| 1686 |
|
|---|
| 1687 | </div>
|
|---|
| 1688 |
|
|---|
| 1689 |
|
|---|
| 1690 |
|
|---|
| 1691 | <div class="sect1"><a name="samba2-CHP-3-SECT-5"/>
|
|---|
| 1692 |
|
|---|
| 1693 | <h2 class="head1">Setting Up Windows XP Computers</h2>
|
|---|
| 1694 |
|
|---|
| 1695 | <p>Although <a name="INDEX-134"/>Windows XP
|
|---|
| 1696 | is very similar to Windows 2000, it has a very different user
|
|---|
| 1697 | interface, and there are a number of subtle differences. For example,
|
|---|
| 1698 | getting to the Control Panel is different than in any previous
|
|---|
| 1699 | version of Windows—one must click the Control Panel item from
|
|---|
| 1700 | the Start menu (there is no Settings item in the Start menu in XP).
|
|---|
| 1701 | By default, XP will display the Control Panel in Category View mode.
|
|---|
| 1702 | If you see this, click the Switch to Classic View item in the
|
|---|
| 1703 | upper-left corner of the window. All of our directions are for using
|
|---|
| 1704 | the Control Panel in Classic View mode.</p>
|
|---|
| 1705 |
|
|---|
| 1706 | <p>You should perform the following steps as the
|
|---|
| 1707 | <tt class="literal">Administrator</tt> or another user in the
|
|---|
| 1708 | Administrators group.</p>
|
|---|
| 1709 |
|
|---|
| 1710 |
|
|---|
| 1711 | <div class="sect2"><a name="samba2-CHP-3-SECT-5.1"/>
|
|---|
| 1712 |
|
|---|
| 1713 | <h3 class="head2">Networking Components</h3>
|
|---|
| 1714 |
|
|---|
| 1715 | <p><a name="INDEX-135"/><a name="INDEX-136"/>Go to the Control Panel and
|
|---|
| 1716 | double-click the Network and Dial-up Connections icon. You should see
|
|---|
| 1717 | at least one Local Area Connection icon. If there is more than one,
|
|---|
| 1718 | identify the one that corresponds to the network adapter that is
|
|---|
| 1719 | connected to your Samba network. Right-click the Local Area
|
|---|
| 1720 | Connection icon and click the Properties button. (Or double-click the
|
|---|
| 1721 | Local Area Connection icon and then click the Properties button in
|
|---|
| 1722 | the dialog box that comes up.) You should now be looking at the Local
|
|---|
| 1723 | Area Connection Properties dialog box, as shown in <a href="ch03.html#samba2-CHP-3-FIG-49">Figure 3-49</a>.</p>
|
|---|
| 1724 |
|
|---|
| 1725 | <div class="figure"><a name="samba2-CHP-3-FIG-49"/><img src="figs/sam2_0349.gif"/></div><h4 class="head4">Figure 3-49. The Local Area Connection Properties dialog</h4>
|
|---|
| 1726 |
|
|---|
| 1727 | <p>First of all, you might want to click the Configure button under the
|
|---|
| 1728 | field for the network adapter to make sure you see the message
|
|---|
| 1729 | "This device is working properly"
|
|---|
| 1730 | in the Device status window. If there is a problem, make sure to
|
|---|
| 1731 | correct it before continuing. You should also see the message
|
|---|
| 1732 | "Use this device (enable)" in the
|
|---|
| 1733 | Device usage field of the dialog box. Make sure to set it this way if
|
|---|
| 1734 | it is not already. Click OK or Cancel to close this dialog box, then
|
|---|
| 1735 | reopen the Local Area Connection Properties dialog box.</p>
|
|---|
| 1736 |
|
|---|
| 1737 | <p>You should see at least the following two components:</p>
|
|---|
| 1738 |
|
|---|
| 1739 | <ul><li>
|
|---|
| 1740 | <p>Client for Microsoft Networks</p>
|
|---|
| 1741 | </li><li>
|
|---|
| 1742 | <p>Internet Protocol (TCP/IP)</p>
|
|---|
| 1743 | </li></ul>
|
|---|
| 1744 | <p>If you do not see either Client for Microsoft Networks or Internet
|
|---|
| 1745 | Protocol (TCP/IP) in your list, you will need to add them. For
|
|---|
| 1746 | either, the method is to click the Install... button, click the type
|
|---|
| 1747 | of component (Client or Protocol), and then click the Add... button.
|
|---|
| 1748 | Next, click the component you want to add, and click the OK button.
|
|---|
| 1749 | You should see the component added to the list with the others.</p>
|
|---|
| 1750 |
|
|---|
| 1751 | <p>If you see anything other than TCP/IP listed as a protocol, and it is
|
|---|
| 1752 | not a protocol that you need, you can remove it. If NetBEUI appears
|
|---|
| 1753 | in the list, uninstall it if you possibly can. Also uninstall any
|
|---|
| 1754 | Netware-related components if you do not need to support Netware. If
|
|---|
| 1755 | you try to remove a protocol and get an error message saying that the
|
|---|
| 1756 | protocol is being used by another service, you need to remove that
|
|---|
| 1757 | service before you can remove the protocol. For example, to remove
|
|---|
| 1758 | the NWLink IPX/SPX Compatible Transport Protocol, you would need to
|
|---|
| 1759 | remove the Client Service for Netware first.</p>
|
|---|
| 1760 |
|
|---|
| 1761 | <p>To remove a component, click the component in the list, click the
|
|---|
| 1762 | Uninstall button, and then click Yes in the dialog box that pops up.
|
|---|
| 1763 | In some cases, Windows might need to reboot to put the change into
|
|---|
| 1764 | effect.</p>
|
|---|
| 1765 |
|
|---|
| 1766 |
|
|---|
| 1767 | <div class="sect3"><a name="samba2-CHP-3-SECT-5.1.1"/>
|
|---|
| 1768 |
|
|---|
| 1769 | <h3 class="head3">Bindings</h3>
|
|---|
| 1770 |
|
|---|
| 1771 | <p><a name="INDEX-137"/><a name="INDEX-138"/>Next to each client, service, or protocol
|
|---|
| 1772 | listed in the window in the Local Area Connections Properties dialog
|
|---|
| 1773 | box, you will see a checkbox. Make sure the checkbox is checked for
|
|---|
| 1774 | both Client for Microsoft Networks and Internet Protocol (TCP/IP).
|
|---|
| 1775 | The check marks indicate that the networking components are bound to
|
|---|
| 1776 | the network adapter shown at the top of the dialog box.</p>
|
|---|
| 1777 |
|
|---|
| 1778 |
|
|---|
| 1779 | </div>
|
|---|
| 1780 |
|
|---|
| 1781 |
|
|---|
| 1782 | </div>
|
|---|
| 1783 |
|
|---|
| 1784 |
|
|---|
| 1785 | <div class="sect2"><a name="samba2-CHP-3-SECT-5.2"/>
|
|---|
| 1786 |
|
|---|
| 1787 | <h3 class="head2">Configuring TCP/IP</h3>
|
|---|
| 1788 |
|
|---|
| 1789 | <p><a name="INDEX-139"/><a name="INDEX-140"/>Now click Internet Protocol
|
|---|
| 1790 | (TCP/IP) and then click Properties to open the Internet Protocol
|
|---|
| 1791 | (TCP/IP) Properties dialog box, shown in <a href="ch03.html#samba2-CHP-3-FIG-50">Figure 3-50</a>.</p>
|
|---|
| 1792 |
|
|---|
| 1793 | <div class="figure"><a name="samba2-CHP-3-FIG-50"/><img src="figs/sam2_0350.gif"/></div><h4 class="head4">Figure 3-50. The Internet Protocol (TCP/IP) Properties dialog</h4>
|
|---|
| 1794 |
|
|---|
| 1795 |
|
|---|
| 1796 | <div class="sect3"><a name="samba2-CHP-3-SECT-5.2.1"/>
|
|---|
| 1797 |
|
|---|
| 1798 | <h3 class="head3">IP address</h3>
|
|---|
| 1799 |
|
|---|
| 1800 | <p><a name="INDEX-141"/><a name="INDEX-142"/>If
|
|---|
| 1801 | you are using DHCP on your network to assign IP addresses
|
|---|
| 1802 | dynamically, select the "Obtain IP address
|
|---|
| 1803 | automatically" radio button. Otherwise, select the
|
|---|
| 1804 | "Use the following address:" radio
|
|---|
| 1805 | button, and fill in the computer's IP address and
|
|---|
| 1806 | netmask in the spaces provided. You or your network manager should
|
|---|
| 1807 | have selected an address for the client on the same subnet (LAN) as
|
|---|
| 1808 | the Samba server. For example, if the server's
|
|---|
| 1809 | address is 172.16.1.1 and its network mask is 255.255.255.0, you
|
|---|
| 1810 | might use the address 172.16.1.12 (if it is available) along with the
|
|---|
| 1811 | same netmask. You can also fill in the IP address of the default
|
|---|
| 1812 | gateway.</p>
|
|---|
| 1813 |
|
|---|
| 1814 |
|
|---|
| 1815 | </div>
|
|---|
| 1816 |
|
|---|
| 1817 |
|
|---|
| 1818 |
|
|---|
| 1819 | <div class="sect3"><a name="samba2-CHP-3-SECT-5.2.2"/>
|
|---|
| 1820 |
|
|---|
| 1821 | <h3 class="head3">DNS server</h3>
|
|---|
| 1822 |
|
|---|
| 1823 | <p><a name="INDEX-143"/><a name="INDEX-144"/>In the lower part of the dialog box, click
|
|---|
| 1824 | the "Use the following DNS server
|
|---|
| 1825 | addresses:" radio button, and fill in the IP address
|
|---|
| 1826 | of your DNS server.</p>
|
|---|
| 1827 |
|
|---|
| 1828 | <p>Now click the Advanced... button to bring up the Advanced TCP/IP
|
|---|
| 1829 | Settings dialog box, and then click the WINS tab.</p>
|
|---|
| 1830 |
|
|---|
| 1831 |
|
|---|
| 1832 | </div>
|
|---|
| 1833 |
|
|---|
| 1834 |
|
|---|
| 1835 |
|
|---|
| 1836 | <div class="sect3"><a name="samba2-CHP-3-SECT-5.2.3"/>
|
|---|
| 1837 |
|
|---|
| 1838 | <h3 class="head3">WINS server</h3>
|
|---|
| 1839 |
|
|---|
| 1840 | <p><a name="INDEX-145"/><a name="INDEX-146"/>Enter
|
|---|
| 1841 | the address of your WINS server in the space labeled
|
|---|
| 1842 | "WINS addresses, in order of use:".
|
|---|
| 1843 | If your Samba server is providing WINS service (in other words, you
|
|---|
| 1844 | have the line <tt class="literal">wins</tt> <tt class="literal">support</tt>
|
|---|
| 1845 | <tt class="literal">=</tt> <tt class="literal">yes</tt> in the
|
|---|
| 1846 | <em class="emphasis">smb.conf</em> file of your Samba server), provide the
|
|---|
| 1847 | Samba server's IP address here. Otherwise, provide
|
|---|
| 1848 | the address of another WINS server on your network.</p>
|
|---|
| 1849 |
|
|---|
| 1850 | <p>Near the bottom of the dialog box, select the radio button labeled
|
|---|
| 1851 | Enable NetBIOS over TCP/IP. <a href="ch03.html#samba2-CHP-3-FIG-51">Figure 3-51</a> shows what
|
|---|
| 1852 | your Advanced TCP/IP Settings dialog box should look like at this
|
|---|
| 1853 | point.</p>
|
|---|
| 1854 |
|
|---|
| 1855 | <div class="figure"><a name="samba2-CHP-3-FIG-51"/><img src="figs/sam2_0351.gif"/></div><h4 class="head4">Figure 3-51. The Advanced TCP/IP Settings dialog, showing the WINS tab</h4>
|
|---|
| 1856 |
|
|---|
| 1857 |
|
|---|
| 1858 | </div>
|
|---|
| 1859 |
|
|---|
| 1860 |
|
|---|
| 1861 |
|
|---|
| 1862 | <div class="sect3"><a name="samba2-CHP-3-SECT-5.2.4"/>
|
|---|
| 1863 |
|
|---|
| 1864 | <h3 class="head3">The LMHOSTS file</h3>
|
|---|
| 1865 |
|
|---|
| 1866 | <p>If you want to install an
|
|---|
| 1867 | <em class="filename">LMHOSTS</em><a name="INDEX-147"/><a name="INDEX-148"/> file, it
|
|---|
| 1868 | must be placed in the <em class="filename">\system32\drivers\etc</em>
|
|---|
| 1869 | directory under your Windows installation directory (usually
|
|---|
| 1870 | <em class="filename">C:\WINNT</em> ). The easy way to make sure it gets to
|
|---|
| 1871 | the proper location is to use the Import LMHOSTS... button on the
|
|---|
| 1872 | WINS Address tab. (But if you want to do it over the network, you
|
|---|
| 1873 | will have to do that after file sharing is configured!) Remember to
|
|---|
| 1874 | click the Enable LMHOSTS Lookup checkbox on the WINS Address tab to
|
|---|
| 1875 | enable this functionality.</p>
|
|---|
| 1876 |
|
|---|
| 1877 | <p>When you are satisfied with your settings for IP Address, WINS
|
|---|
| 1878 | Address, and DNS, click the OK buttons in each open dialog box (and
|
|---|
| 1879 | the Close button in the Local Area Connection Properties dialog box)
|
|---|
| 1880 | to complete the configuration. Windows might need to load some files
|
|---|
| 1881 | from the Windows XP distribution CD-ROM, and you might need to reboot
|
|---|
| 1882 | for your changes to take effect.</p>
|
|---|
| 1883 |
|
|---|
| 1884 |
|
|---|
| 1885 | </div>
|
|---|
| 1886 |
|
|---|
| 1887 |
|
|---|
| 1888 | </div>
|
|---|
| 1889 |
|
|---|
| 1890 |
|
|---|
| 1891 | <div class="sect2"><a name="samba2-CHP-3-SECT-5.3"/>
|
|---|
| 1892 |
|
|---|
| 1893 | <h3 class="head2">Computer and Workgroup Names</h3>
|
|---|
| 1894 |
|
|---|
| 1895 | <p><a name="INDEX-149"/><a name="INDEX-150"/><a name="INDEX-151"/><a name="INDEX-152"/>From the
|
|---|
| 1896 | Control Panel, double-click the System icon to open the System
|
|---|
| 1897 | Properties dialog box. Click the Computer Name tab, and your System
|
|---|
| 1898 | Properties dialog box will look similar to <a href="ch03.html#samba2-CHP-3-FIG-52">Figure 3-52</a>.</p>
|
|---|
| 1899 |
|
|---|
| 1900 | <div class="figure"><a name="samba2-CHP-3-FIG-52"/><img src="figs/sam2_0352.gif"/></div><h4 class="head4">Figure 3-52. The System Properties dialog, showing the Computer Name tab</h4>
|
|---|
| 1901 |
|
|---|
| 1902 | <p>To give your system computer a name and a workgroup, click the
|
|---|
| 1903 | Change... button, which will bring up the Computer Name Changes
|
|---|
| 1904 | dialog box, as in <a href="ch03.html#samba2-CHP-3-FIG-53">Figure 3-53</a>.</p>
|
|---|
| 1905 |
|
|---|
| 1906 | <div class="figure"><a name="samba2-CHP-3-FIG-53"/><img src="figs/sam2_0353.gif"/></div><h4 class="head4">Figure 3-53. The Computer Name Changes dialog</h4>
|
|---|
| 1907 |
|
|---|
| 1908 | <p>You need to identify your computer with a name and change the
|
|---|
| 1909 | workgroup to the one you specified in the
|
|---|
| 1910 | <em class="emphasis">smb.conf</em> file of your Samba server.
|
|---|
| 1911 | Don't worry that Windows forces the workgroup to be
|
|---|
| 1912 | all capital letters; it's smart enough to figure out
|
|---|
| 1913 | what you mean when it connects to the network.</p>
|
|---|
| 1914 |
|
|---|
| 1915 | <p>Click the More... button to bring up the DNS Suffix and NetBIOS
|
|---|
| 1916 | Computer Name dialog box, shown in <a href="ch03.html#samba2-CHP-3-FIG-54">Figure 3-54</a>.</p>
|
|---|
| 1917 |
|
|---|
| 1918 | <div class="figure"><a name="samba2-CHP-3-FIG-54"/><img src="figs/sam2_0354.gif"/></div><h4 class="head4">Figure 3-54. The DNS Suffix and NetBIOS Computer Name dialog</h4>
|
|---|
| 1919 |
|
|---|
| 1920 | <p>Enter the DNS domain name of this computer in the text field labeled
|
|---|
| 1921 | Primary DNS Suffix for this computer:, and then click OK. You should
|
|---|
| 1922 | now see the FQDN of this system underneath the label Full computer
|
|---|
| 1923 | name: in the Computer Name Changes dialog box. Click the OK button
|
|---|
| 1924 | and then reboot when requested to put your configuration changes into
|
|---|
| 1925 | effect. Once again, log in using your administrative account.</p>
|
|---|
| 1926 | <a name="samba2-CHP-3-NOTE-98"/><blockquote class="note"><h4 class="objtitle">WARNING</h4>
|
|---|
| 1927 | <p>There have been reports of authentication problems with Samba when a
|
|---|
| 1928 | username on a Windows XP system is the same as its computer name.</p>
|
|---|
| 1929 | </blockquote>
|
|---|
| 1930 |
|
|---|
| 1931 |
|
|---|
| 1932 | </div>
|
|---|
| 1933 |
|
|---|
| 1934 |
|
|---|
| 1935 | <div class="sect2"><a name="samba2-CHP-3-SECT-5.4"/>
|
|---|
| 1936 |
|
|---|
| 1937 | <h3 class="head2">Adding a Samba-Enabled User</h3>
|
|---|
| 1938 |
|
|---|
| 1939 | <p><a name="INDEX-153"/><a name="INDEX-154"/>So far,
|
|---|
| 1940 | you have been logged into your Windows XP system as a user in the
|
|---|
| 1941 | Administrators group. To access resources on the Samba server, you
|
|---|
| 1942 | will need to have a username and password that the Samba server
|
|---|
| 1943 | recognizes as valid. If your administrative account has such a
|
|---|
| 1944 | username and password, you can use it, but you might want to access
|
|---|
| 1945 | your system and the network from a nonadministrative user account
|
|---|
| 1946 | instead.</p>
|
|---|
| 1947 |
|
|---|
| 1948 | <a name="samba2-CHP-3-NOTE-99"/><blockquote class="note"><h4 class="objtitle">TIP</h4>
|
|---|
| 1949 | <p>The directions in this section assume that your network is set up as
|
|---|
| 1950 | a workgroup. If you have already set up your network as a domain, as
|
|---|
| 1951 | we describe in <a href="ch04.html">Chapter 4</a>, you do not need to
|
|---|
| 1952 | follow the instructions here for adding a local user on the Windows
|
|---|
| 1953 | XP client system. Simply log on to the domain from the client using a
|
|---|
| 1954 | username and password in Samba's
|
|---|
| 1955 | <em class="filename">smbpasswd</em> account database, and continue with
|
|---|
| 1956 | the next section, <a href="ch03.html#samba2-CHP-3-SECT-5.5">Section 3.5.5</a>.</p>
|
|---|
| 1957 | </blockquote>
|
|---|
| 1958 |
|
|---|
| 1959 | <p>To add a new user, open the Control Panel, and double-click the Users
|
|---|
| 1960 | Accounts icon to open the User Accounts window, shown in <a href="ch03.html#samba2-CHP-3-FIG-55">Figure 3-55</a>.</p>
|
|---|
| 1961 |
|
|---|
| 1962 | <div class="figure"><a name="samba2-CHP-3-FIG-55"/><img src="figs/sam2_0355.gif"/></div><h4 class="head4">Figure 3-55. The User Accounts window</h4>
|
|---|
| 1963 |
|
|---|
| 1964 | <p>Click the Create a new account task, which will bring up the window
|
|---|
| 1965 | shown in <a href="ch03.html#samba2-CHP-3-FIG-56">Figure 3-56</a>. Enter the username, then click
|
|---|
| 1966 | the Next > button.</p>
|
|---|
| 1967 |
|
|---|
| 1968 | <div class="figure"><a name="samba2-CHP-3-FIG-56"/><img src="figs/sam2_0356.gif"/></div><h4 class="head4">Figure 3-56. Entering the username</h4>
|
|---|
| 1969 |
|
|---|
| 1970 | <p>Click the radio button labeled
|
|---|
| 1971 | "Limited", as shown in <a href="ch03.html#samba2-CHP-3-FIG-57">Figure 3-57</a>.</p>
|
|---|
| 1972 |
|
|---|
| 1973 | <p>Click the Create Account button, and you will see the username you
|
|---|
| 1974 | added next to a picture at the bottom of the User Accounts window. We
|
|---|
| 1975 | still need to assign a password to the account. Click the account to
|
|---|
| 1976 | bring up the "What do you want to change about
|
|---|
| 1977 | <em class="emphasis">username</em>'s
|
|---|
| 1978 | account?" window, and then click Create a password.
|
|---|
| 1979 | Enter the password, and enter it again to confirm it.</p>
|
|---|
| 1980 |
|
|---|
| 1981 | <div class="figure"><a name="samba2-CHP-3-FIG-57"/><img src="figs/sam2_0357.gif"/></div><h4 class="head4">Figure 3-57. Setting the account type</h4>
|
|---|
| 1982 |
|
|---|
| 1983 | <p>This password must be the same as the user's
|
|---|
| 1984 | password on the Samba host. If you are using encrypted passwords,
|
|---|
| 1985 | make sure this username and password are the same as what you used
|
|---|
| 1986 | when you ran the <em class="emphasis">smbpasswd</em> program. Click the
|
|---|
| 1987 | Create Password button, and you're done adding the
|
|---|
| 1988 | account.</p>
|
|---|
| 1989 |
|
|---|
| 1990 | <p>Now open the Start menu and click the Log Off button. In the Log Off
|
|---|
| 1991 | Windows dialog box that pops up, again click the Log Off button. When
|
|---|
| 1992 | Windows displays the login screen, click the user you just added, and
|
|---|
| 1993 | type in the password to log in.</p>
|
|---|
| 1994 |
|
|---|
| 1995 |
|
|---|
| 1996 | </div>
|
|---|
| 1997 |
|
|---|
| 1998 |
|
|---|
| 1999 | <div class="sect2"><a name="samba2-CHP-3-SECT-5.5"/>
|
|---|
| 2000 |
|
|---|
| 2001 | <h3 class="head2">Connecting to the Samba Server</h3>
|
|---|
| 2002 |
|
|---|
| 2003 | <p><a name="INDEX-155"/><a name="INDEX-156"/>Now for
|
|---|
| 2004 | the big moment. Your Samba server is running, and you have set up
|
|---|
| 2005 | your Windows XP client to communicate with it. In the Start menu,
|
|---|
| 2006 | select My Computer<a name="FNPTR-9"/><a href="#FOOTNOTE-9">[9]</a> to open the My Computer window. Click My
|
|---|
| 2007 | Network Places, in the Other Places box in the left part of the
|
|---|
| 2008 | window. You should see a folder icon for the
|
|---|
| 2009 | <em class="filename">test</em> directory, as shown in <a href="ch03.html#samba2-CHP-3-FIG-58">Figure 3-58</a>.</p>
|
|---|
| 2010 |
|
|---|
| 2011 | <div class="figure"><a name="samba2-CHP-3-FIG-58"/><img src="figs/sam2_0358.gif"/></div><h4 class="head4">Figure 3-58. The My Network Places window</h4>
|
|---|
| 2012 |
|
|---|
| 2013 | <p>Now click View workgroup computers in the Network Tasks box at the
|
|---|
| 2014 | left of the window. You should see your Samba server listed as a
|
|---|
| 2015 | member of the workgroup. Double-click its icon, and you will see a
|
|---|
| 2016 | window that looks like <a href="ch03.html#samba2-CHP-3-FIG-59">Figure 3-59</a>.</p>
|
|---|
| 2017 |
|
|---|
| 2018 | <div class="figure"><a name="samba2-CHP-3-FIG-59"/><img src="figs/sam2_0359.gif"/></div><h4 class="head4">Figure 3-59. Shares offered by the Toltec server</h4>
|
|---|
| 2019 |
|
|---|
| 2020 | <p>If you don't see the server listed in the workgroup,
|
|---|
| 2021 | don't panic. Select Run... from the Start menu. A
|
|---|
| 2022 | dialog box appears that allows you to type the name of your server
|
|---|
| 2023 | and its share directory in Windows format. For example, you would
|
|---|
| 2024 | enter <em class="filename">\\toltec\</em><tt class="literal">test</tt>, as shown
|
|---|
| 2025 | in <a href="ch03.html#samba2-CHP-3-FIG-60">Figure 3-60</a>, and use your
|
|---|
| 2026 | server's hostname instead of
|
|---|
| 2027 | "toltec".</p>
|
|---|
| 2028 |
|
|---|
| 2029 | <div class="figure"><a name="samba2-CHP-3-FIG-60"/><img src="figs/sam2_0360.gif"/></div><h4 class="head4">Figure 3-60. Opening a shared directory, using the server's NetBIOS name in the UNC</h4>
|
|---|
| 2030 |
|
|---|
| 2031 | <p>This will work even if browsing services are not set up right, which
|
|---|
| 2032 | is a common problem. You can also work around a name-service problem
|
|---|
| 2033 | by entering the server's IP Address (such as
|
|---|
| 2034 | 172.16.1.1 in our example) instead of the Samba
|
|---|
| 2035 | server's hostname, as shown in <a href="ch03.html#samba2-CHP-3-FIG-61">Figure 3-61</a>.</p>
|
|---|
| 2036 |
|
|---|
| 2037 | <div class="figure"><a name="samba2-CHP-3-FIG-61"/><img src="figs/sam2_0361.gif"/></div><h4 class="head4">Figure 3-61. Opening a shared directory, using the server's IP address in the UNC</h4>
|
|---|
| 2038 |
|
|---|
| 2039 | <p>If things still aren't right, go directly to <a href="ch12.html#samba2-CHP-12-SECT-2">Section 12.2</a> to troubleshoot what is wrong
|
|---|
| 2040 | with the network.</p>
|
|---|
| 2041 |
|
|---|
| 2042 | <p>If it works, congratulations! Try copying files to and from the
|
|---|
| 2043 | server by dragging their icons to and from the Samba
|
|---|
| 2044 | server's <em class="filename">test</em> folder. You might
|
|---|
| 2045 | be pleasantly surprised how seamlessly everything works. <a name="INDEX-157"/> <a name="INDEX-158"/></p>
|
|---|
| 2046 |
|
|---|
| 2047 |
|
|---|
| 2048 | </div>
|
|---|
| 2049 |
|
|---|
| 2050 |
|
|---|
| 2051 | </div>
|
|---|
| 2052 |
|
|---|
| 2053 | <hr/><h4 class="head4">Footnotes</h4><blockquote><a name="FOOTNOTE-1"/> <p><a href="#FNPTR-1">[1]</a> We are
|
|---|
| 2054 | intentionally omitting device drivers because they are
|
|---|
| 2055 | hardware-specific, and we assume you are getting installation
|
|---|
| 2056 | directions from the manufacturer.</p> <a name="FOOTNOTE-2"/>
|
|---|
| 2057 | <p><a href="#FNPTR-2">[2]</a> Make sure to use the same netmask as all other systems on the
|
|---|
| 2058 | network. You can find the netmask in use by checking with Unix or
|
|---|
| 2059 | Windows systems that have already been configured.</p> <a name="FOOTNOTE-3"/> <p><a href="#FNPTR-3">[3]</a> Keep in mind that IP addresses ending
|
|---|
| 2060 | in .0 are reserved for network addresses and that ones ending in .255
|
|---|
| 2061 | are for broadcast addresses. These should never be assigned to any
|
|---|
| 2062 | system on the network.</p> <a name="FOOTNOTE-4"/> <p><a href="#FNPTR-4">[4]</a> To be more explicit about
|
|---|
| 2063 | this, the system will identify itself to the network as a b-node
|
|---|
| 2064 | rather than an h-node.</p> <a name="FOOTNOTE-5"/> <p><a href="#FNPTR-5">[5]</a> We put the
|
|---|
| 2065 | names of the <em class="filename">LMHOSTS</em> and
|
|---|
| 2066 | <em class="filename">HOSTS</em> files in uppercase for additional
|
|---|
| 2067 | clarity—to remind you that we are referring to the files on
|
|---|
| 2068 | Windows rather than on Unix, and because that's the
|
|---|
| 2069 | way we see them in other books on Windows. The case of the letters in
|
|---|
| 2070 | the two names actually does not matter.</p> <a name="FOOTNOTE-6"/> <p><a href="#FNPTR-6">[6]</a> The address 127.0.0.1 is known as the
|
|---|
| 2071 | <em class="emphasis">localhost</em> address and always refers to itself.
|
|---|
| 2072 | For example, if you type <tt class="literal">ping</tt>
|
|---|
| 2073 | <tt class="literal">127.0.0.1</tt> on a Unix server, you should always get
|
|---|
| 2074 | a response, because you're pinging the host
|
|---|
| 2075 | itself.</p> <a name="FOOTNOTE-7"/> <p><a href="#FNPTR-7">[7]</a> This update is supplied in
|
|---|
| 2076 | various update packages issued by Microsoft.</p> <a name="FOOTNOTE-8"/> <p><a href="#FNPTR-8">[8]</a> Notice how in Windows NT,
|
|---|
| 2077 | some clients are called "services"!
|
|---|
| 2078 | In these directions, we will conform to Microsoft's
|
|---|
| 2079 | terminology.</p> <a name="FOOTNOTE-9"/> <p><a href="#FNPTR-9">[9]</a> If there is a My Network Places
|
|---|
| 2080 | item in the Start menu at this point, you can save yourself a little
|
|---|
| 2081 | time and just click that. If you don't see it,
|
|---|
| 2082 | don't worry; it will appear automatically
|
|---|
| 2083 | later.</p> </blockquote>
|
|---|
| 2084 |
|
|---|
| 2085 | <hr/><h4 class="head4"><a href="toc.html">TOC</a></h4>
|
|---|
| 2086 | </body></html>
|
|---|