diff options
Diffstat (limited to 'docs/htmldocs/Samba3-ByExample/simple.html')
-rw-r--r-- | docs/htmldocs/Samba3-ByExample/simple.html | 266 |
1 files changed, 133 insertions, 133 deletions
diff --git a/docs/htmldocs/Samba3-ByExample/simple.html b/docs/htmldocs/Samba3-ByExample/simple.html index 44446fb1b7..469eef9c4c 100644 --- a/docs/htmldocs/Samba3-ByExample/simple.html +++ b/docs/htmldocs/Samba3-ByExample/simple.html @@ -1,13 +1,13 @@ -<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 1. No-Frills Samba Servers</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.72.0"><link rel="start" href="index.html" title="Samba-3 by Example"><link rel="up" href="ExNetworks.html" title="Part I. Example Network Configurations"><link rel="prev" href="ExNetworks.html" title="Part I. Example Network Configurations"><link rel="next" href="small.html" title="Chapter 2. Small Office Networking"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 1. No-Frills Samba Servers</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ExNetworks.html">Prev</a> </td><th width="60%" align="center">Part I. Example Network Configurations</th><td width="20%" align="right"> <a accesskey="n" href="small.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="simple"></a>Chapter 1. No-Frills Samba Servers</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="simple.html#id324059">Introduction</a></span></dt><dt><span class="sect1"><a href="simple.html#id324090">Assignment Tasks</a></span></dt><dd><dl><dt><span class="sect2"><a href="simple.html#id324129">Drafting Office</a></span></dt><dt><span class="sect2"><a href="simple.html#id324836">Charity Administration Office</a></span></dt><dt><span class="sect2"><a href="simple.html#AccountingOffice">Accounting Office</a></span></dt></dl></dd><dt><span class="sect1"><a href="simple.html#id328349">Questions and Answers</a></span></dt></dl></div><p> +<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 1. No-Frills Samba Servers</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.1"><link rel="start" href="index.html" title="Samba-3 by Example"><link rel="up" href="ExNetworks.html" title="Part I. Example Network Configurations"><link rel="prev" href="ExNetworks.html" title="Part I. Example Network Configurations"><link rel="next" href="small.html" title="Chapter 2. Small Office Networking"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 1. No-Frills Samba Servers</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ExNetworks.html">Prev</a> </td><th width="60%" align="center">Part I. Example Network Configurations</th><td width="20%" align="right"> <a accesskey="n" href="small.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="simple"></a>Chapter 1. No-Frills Samba Servers</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="simple.html#id2571995">Introduction</a></span></dt><dt><span class="sect1"><a href="simple.html#id2572036">Assignment Tasks</a></span></dt><dd><dl><dt><span class="sect2"><a href="simple.html#id2572081">Drafting Office</a></span></dt><dt><span class="sect2"><a href="simple.html#id2572851">Charity Administration Office</a></span></dt><dt><span class="sect2"><a href="simple.html#AccountingOffice">Accounting Office</a></span></dt></dl></dd><dt><span class="sect1"><a href="simple.html#id2576516">Questions and Answers</a></span></dt></dl></div><p> This is the start of the real journey toward the successful deployment of Samba. For some this chapter is the end of the road because their needs will have been adequately met. For others, this chapter is the beginning of a journey that will take them well past the contents of this book. This book provides example configurations of, for the greater part, complete networking solutions. The intent of this book is to help you to get your Samba installation working with the least amount of pain and aggravation. - </p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id324059"></a>Introduction</h2></div></div></div><p> + </p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2571995"></a>Introduction</h2></div></div></div><p> This chapter lays the groundwork for understanding the basics of Samba operation. Instead of a bland technical discussion, each principle is demonstrated by way of a - real-world scenario for which a working solution<sup>[<a name="id324068" href="#ftn.id324068">1</a>]</sup> is fully described. + real-world scenario for which a working solution<sup>[<a name="id2572007" href="#ftn.id2572007" class="footnote">1</a>]</sup> is fully described. </p><p> The practical exercises take you on a journey through a drafting office, a charity administration office, and an accounting office. You may choose to apply any or all of these exercises to your own environment. @@ -17,7 +17,7 @@ find much improved solutions compared with those presented here. By the time you complete this book, you should aim to be a Samba expert, so do attempt to find better solutions and try them as you work your way through the examples. - </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id324090"></a>Assignment Tasks</h2></div></div></div><p> + </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2572036"></a>Assignment Tasks</h2></div></div></div><p> Each case presented highlights different aspects of Windows networking for which a simple Samba-based solution can be provided. Each has subtly different requirements taken from real-world cases. The cases are briefly reviewed to cover important points. Instructions are based @@ -28,7 +28,7 @@ </p><div class="itemizedlist"><ul type="disc"><li><p>A drafting office</p></li><li><p>A charity administration office</p></li><li><p>An accounting office</p></li></ul></div><p> </p><p> Let's get started. - </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id324129"></a>Drafting Office</h3></div></div></div><p> + </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2572081"></a>Drafting Office</h3></div></div></div><p> Our fictitious company is called <span class="emphasis"><em>Abmas Design, Inc.</em></span> This is a three-person computer-aided design (CAD) business that often has more work than can be handled. The business owner hires contract draftspeople from wherever he can. They bring their own @@ -38,15 +38,15 @@ plans that are stored on a central server one day per month. She knows how to upload plans from each machine. The files available from the server must remain read-only. Anyone should be able to access the plans at any time and without barriers or difficulty. - </p><p><a class="indexterm" name="id324149"></a> - <a class="indexterm" name="id324156"></a> + </p><p><a class="indexterm" name="id2572107"></a> + <a class="indexterm" name="id2572114"></a> Mr. Bob Jordan has asked you to install the new server as economically as possible. The central server has a Pentium-IV 1.6GHz CPU, 768MB RAM, a 20GB IDE boot drive, a 160GB IDE second disk to store plans, and a 100-base-T Ethernet card. You have already installed Red Hat Fedora CoreX and have upgraded Samba to version 3.0.20 using the RPM package that is provided from the Samba - <a href="http://www.samba.org" target="_top">FTP</a> sites. (Note: Fedora CoreX indicates your favorite + <a class="ulink" href="http://www.samba.org" target="_top">FTP</a> sites. (Note: Fedora CoreX indicates your favorite version.) - </p><p><a class="indexterm" name="id324178"></a> + </p><p><a class="indexterm" name="id2572143"></a> The four permanent drafting machines (Microsoft Windows workstations) have attached printers and plotters that are shared on a peer-to-peer basis by any and all network users. The intent is to continue to share printers in this manner. The three permanent staff work together with @@ -55,15 +55,15 @@ area is copied to the central server and the files are removed from the main weekly storage machine. The office works best with this arrangement and does not want to change anything. Old habits are too ingrained. - </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id324194"></a>Dissection and Discussion</h4></div></div></div><p> - <a class="indexterm" name="id324201"></a> + </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2572164"></a>Dissection and Discussion</h4></div></div></div><p> + <a class="indexterm" name="id2572172"></a> The requirements for this server installation demand simplicity. An anonymous read-only file server adequately meets all needs. The network consultant determines how to upload all files from the weekly storage area to the server. This installation should focus only on critical aspects of the installation. </p><p> It is not necessary to have specific users on the server. The site has a method for storing - all design files (plans). Each plan is stored in a directory that is named YYYYWW,<sup>[<a name="id324218" href="#ftn.id324218">2</a>]</sup> where + all design files (plans). Each plan is stored in a directory that is named YYYYWW,<sup>[<a name="id2572193" href="#ftn.id2572193" class="footnote">2</a>]</sup> where YYYY is the year, and WW is the week of the year. This arrangement allows work to be stored by week of year to preserve the filing technique the site is familiar with. There is also a customer directory that is alphabetically listed. At the top level are 26 @@ -73,18 +73,18 @@ plans to be located both by customer name and by the date the work was performed, without demanding the disk space that would be needed if a duplicate file copy were to be stored. The share containing the plans is called <span class="emphasis"><em>Plans</em></span>. - </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id324238"></a>Implementation</h4></div></div></div><p> + </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2572222"></a>Implementation</h4></div></div></div><p> It is assumed that the server is fully installed and ready for installation and configuration of Samba 3.0.20 and any support files needed. All TCP/IP addresses have been hard-coded. In our case the IP address of the Samba server is <code class="constant">192.168.1.1</code> and the netmask is <code class="constant">255.255.255.0</code>. The hostname of the server used is <code class="constant">server</code>. - </p><div class="procedure"><a name="id324261"></a><p class="title"><b>Procedure 1.1. Samba Server Configuration</b></p><ol type="1"><li><p> + </p><div class="procedure"><a name="id2572248"></a><p class="title"><b>Procedure 1.1. Samba Server Configuration</b></p><ol type="1"><li><p> Download the Samba-3 RPM packages for Red Hat Fedora Core2 from the Samba - <a href="http://www.samba.org" target="_top">FTP servers.</a> + <a class="ulink" href="http://www.samba.org" target="_top">FTP servers.</a> </p></li><li><p> - <a class="indexterm" name="id324285"></a> - <a class="indexterm" name="id324294"></a> + <a class="indexterm" name="id2572273"></a> + <a class="indexterm" name="id2572282"></a> Install the RPM package using either the Red Hat Linux preferred GUI tool or the <code class="literal">rpm</code>: </p><pre class="screen"> @@ -100,44 +100,44 @@ The 755 permissions on this directory (mount point) permit the owner to read, write, and execute, and the group and everyone else to read and execute only. </p><p> - <a class="indexterm" name="id324354"></a> + <a class="indexterm" name="id2572347"></a> Use Red Hat Linux system tools (refer to Red Hat instructions) to format the 160GB hard drive with a suitable file system. An Ext3 file system is suitable. Configure this drive to automatically mount using the <code class="filename">/plans</code> directory as the mount point. </p></li><li><p> - Install the <code class="filename">smb.conf</code> file shown in <a href="simple.html#draft-smbconf" title="Example 1.1. Drafting Office smb.conf File">???</a> in the + Install the <code class="filename">smb.conf</code> file shown in <a class="link" href="simple.html#draft-smbconf" title="Example 1.1. Drafting Office smb.conf File">“Drafting Office smb.conf File”</a> in the <code class="filename">/etc/samba</code> directory. -</p><div class="example"><a name="draft-smbconf"></a><p class="title"><b>Example 1.1. Drafting Office <code class="filename">smb.conf</code> File</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td># Global Parameters</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id324430"></a><em class="parameter"><code>workgroup = MIDEARTH</code></em></td></tr><tr><td><a class="indexterm" name="id324442"></a><em class="parameter"><code>security = SHARE</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[Plans]</code></em></td></tr><tr><td><a class="indexterm" name="id324464"></a><em class="parameter"><code>path = /plans</code></em></td></tr><tr><td><a class="indexterm" name="id324476"></a><em class="parameter"><code>read only = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id324489"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr></table></div></div><p><br class="example-break"> +</p><div class="example"><a name="draft-smbconf"></a><p class="title"><b>Example 1.1. Drafting Office <code class="filename">smb.conf</code> File</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td># Global Parameters</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2572426"></a><em class="parameter"><code>workgroup = MIDEARTH</code></em></td></tr><tr><td><a class="indexterm" name="id2572437"></a><em class="parameter"><code>security = SHARE</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[Plans]</code></em></td></tr><tr><td><a class="indexterm" name="id2572458"></a><em class="parameter"><code>path = /plans</code></em></td></tr><tr><td><a class="indexterm" name="id2572470"></a><em class="parameter"><code>read only = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2572481"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr></table></div></div><p><br class="example-break"> </p></li><li><p> - <a class="indexterm" name="id324509"></a> + <a class="indexterm" name="id2572500"></a> Verify that the <code class="filename">/etc/hosts</code> file contains the following entry: </p><pre class="screen"> 192.168.1.1 server </pre><p> </p></li><li><p> - <a class="indexterm" name="id324534"></a> - <a class="indexterm" name="id324543"></a> - <a class="indexterm" name="id324550"></a> + <a class="indexterm" name="id2572527"></a> + <a class="indexterm" name="id2572536"></a> + <a class="indexterm" name="id2572543"></a> Use the standard system tool to start Samba and to configure it to restart automatically at every system reboot. For example, </p><pre class="screen"> <code class="prompt">root# </code> chkconfig smb on <code class="prompt">root# </code> /etc/rc.d/init.d/smb restart </pre><p> - </p></li></ol></div><div class="procedure"><a name="id324578"></a><p class="title"><b>Procedure 1.2. Windows Client Configuration</b></p><ol type="1"><li><p> + </p></li></ol></div><div class="procedure"><a name="id2572573"></a><p class="title"><b>Procedure 1.2. Windows Client Configuration</b></p><ol type="1"><li><p> Make certain that all clients are set to the same network address range as used for the Samba server. For example, one client might have an IP address 192.168.1.10. </p></li><li><p> - <a class="indexterm" name="id324597"></a> + <a class="indexterm" name="id2572594"></a> Ensure that the netmask used on the Windows clients matches that used for the Samba server. All clients must have the same netmask, such as 255.255.255.0. </p></li><li><p> - <a class="indexterm" name="id324612"></a> + <a class="indexterm" name="id2572610"></a> Set the workgroup name on all clients to <code class="constant">MIDEARTH</code>. </p></li><li><p> Verify on each client that the machine called <code class="constant">SERVER</code> @@ -145,15 +145,15 @@ possible to connect to it and see the share <span class="guimenuitem">Plans</span>, and that it is possible to open that share to reveal its contents. </p></li></ol></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="validate1"></a>Validation</h4></div></div></div><p> - <a class="indexterm" name="id324661"></a> + <a class="indexterm" name="id2572662"></a> The first priority in validating the new Samba configuration should be to check that Samba answers on the loop-back interface. Then it is time to check that Samba answers its own name correctly. Last, check that a client can connect to the Samba server. </p><div class="procedure"><ol type="1"><li><p> - <a class="indexterm" name="id324679"></a> - <a class="indexterm" name="id324686"></a> - <a class="indexterm" name="id324693"></a> + <a class="indexterm" name="id2572682"></a> + <a class="indexterm" name="id2572688"></a> + <a class="indexterm" name="id2572695"></a> To check the ability to access the <code class="literal">smbd</code> daemon services, execute the following: </p><pre class="screen"> @@ -172,8 +172,8 @@ --------- -------- MIDEARTH SERVER </pre><p> - <a class="indexterm" name="id324721"></a> - <a class="indexterm" name="id324728"></a> + <a class="indexterm" name="id2572729"></a> + <a class="indexterm" name="id2572735"></a> This indicates that Samba is able to respond on the loopback interface to a NULL connection. The <em class="parameter"><code>-U%</code></em> means send an empty username and an empty password. This command should be repeated after @@ -188,12 +188,12 @@ configured to ignore all usernames given; instead it uses the <em class="parameter"><code>guest account</code></em> for all connections. </p></li><li><p> - <a class="indexterm" name="id324776"></a> - <a class="indexterm" name="id324783"></a> + <a class="indexterm" name="id2572789"></a> + <a class="indexterm" name="id2572796"></a> From the Windows 9x/Me client, launch Windows Explorer: <span class="guiicon">[Desktop: right-click] Network Neighborhood</span>+<span class="guimenu">Explore</span> → <span class="guimenuitem">[Left Panel] [+] Entire Network</span> → <span class="guimenuitem">[Left Panel] [+] Server</span> → <span class="guimenuitem">[Left Panel] [+] Plans</span>. In the right panel you should see the files and directories (folders) that are in the <span class="guiicon">Plans</span> share. - </p></li></ol></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id324836"></a>Charity Administration Office</h3></div></div></div><p> + </p></li></ol></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2572851"></a>Charity Administration Office</h3></div></div></div><p> The fictitious charity organization is called <span class="emphasis"><em>Abmas Vision NL</em></span>. This office has five networked computers. Staff are all volunteers, staff changes are frequent. Ms. Amy May, the director of operations, wants a no-hassle network. Anyone should be able to @@ -216,8 +216,8 @@ that if the share name is not in lowercase, the application claims it cannot find the file share. </p><p> - <a class="indexterm" name="id324884"></a> - <a class="indexterm" name="id324890"></a> + <a class="indexterm" name="id2572917"></a> + <a class="indexterm" name="id2572924"></a> Printer handling in Samba results in a significant level of confusion. Samba presents to the MS Windows client only a print queue. The Samba <code class="literal">smbd</code> process passes a print job sent to it from the Windows client to the native UNIX printing system. The native @@ -231,7 +231,7 @@ to prevent leakage of confidential information. Only the five PCs owned by Abmas Vision NL are used on this network. </p><p> - <a class="indexterm" name="id324917"></a> + <a class="indexterm" name="id2572958"></a> The central server was donated by a local computer store. It is a dual processor Pentium-III server, has 1GB RAM, a 3-Ware IDE RAID Controller that has four 200GB IDE hard drives, and a 100-base-T network card. The office has 100-base-T permanent network connections that go to @@ -242,11 +242,11 @@ office and letter printing. Your recommendation to allow only the Linux server to print directly to the printers was accepted. You have supplied SUSE Enterprise Linux Server 9 and have upgraded Samba to version 3.0.20. - </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id324932"></a>Dissection and Discussion</h4></div></div></div><p> - <a class="indexterm" name="id324940"></a> - <a class="indexterm" name="id324947"></a> - <a class="indexterm" name="id324954"></a> - <a class="indexterm" name="id324960"></a> + </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2572981"></a>Dissection and Discussion</h4></div></div></div><p> + <a class="indexterm" name="id2572989"></a> + <a class="indexterm" name="id2572996"></a> + <a class="indexterm" name="id2573003"></a> + <a class="indexterm" name="id2573009"></a> This installation demands simplicity. Frequent turnover of volunteer staff indicates that a network environment that requires users to logon might be problematic. It is suggested that the best solution for this office would be one where the user can log onto any PC with any username @@ -258,26 +258,26 @@ access control lists (Posix type) cannot be written to any file or directory. This prevents an inadvertent ACL from overriding actual file permissions. </p><p> - <a class="indexterm" name="id324998"></a> - <a class="indexterm" name="id325005"></a> - <a class="indexterm" name="id325012"></a> + <a class="indexterm" name="id2573051"></a> + <a class="indexterm" name="id2573058"></a> + <a class="indexterm" name="id2573064"></a> This organization is a prime candidate for Share Mode security. The <em class="parameter"><code>force user</code></em> allows all files to be owned by the same user and group. In addition, it would not hurt to set SUID and set SGID shared directories. This means that all new files that are created, no matter who creates it, are owned by the owner or group of the directory in which they are created. - For further information regarding the significance of the SUID/SGID settings, see <a href="appendix.html" title="Chapter 15. A Collection of Useful Tidbits">???</a>, <a href="appendix.html#ch12-SUIDSGID" title="Effect of Setting File and Directory SUID/SGID Permissions Explained">???</a>. + For further information regarding the significance of the SUID/SGID settings, see <a class="link" href="appendix.html" title="Chapter 15. A Collection of Useful Tidbits">“A Collection of Useful Tidbits”</a>, <a class="link" href="appendix.html#ch12-SUIDSGID" title="Effect of Setting File and Directory SUID/SGID Permissions Explained">“Effect of Setting File and Directory SUID/SGID Permissions Explained”</a>. </p><p> - <a class="indexterm" name="id325046"></a> - <a class="indexterm" name="id325053"></a> - <a class="indexterm" name="id325062"></a> - <a class="indexterm" name="id325069"></a> + <a class="indexterm" name="id2573104"></a> + <a class="indexterm" name="id2573110"></a> + <a class="indexterm" name="id2573119"></a> + <a class="indexterm" name="id2573126"></a> All client workstations print to a print queue on the server. This ensures that print jobs continue to print in the event that a user shuts down the workstation immediately after sending a job to the printer. Today, both Red Hat Linux and SUSE Linux use CUPS-based printing. Older Linux systems offered a choice between the LPRng printing system or CUPS. It appears, however, that CUPS has become the leading UNIX printing technology. </p><p> - <a class="indexterm" name="id325083"></a> + <a class="indexterm" name="id2573144"></a> The print queues are set up as <code class="constant">Raw</code> devices, which means that CUPS will not do intelligent print processing, and vendor-supplied drivers must be installed locally on the Windows clients. @@ -297,21 +297,21 @@ printer. In this example, therefore, the resource called <code class="constant">PRINTQ</code> really is just a print queue. The name of the print queue is representative of the device to which the print spooler delivers print jobs. - </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id325119"></a>Implementation</h4></div></div></div><p> + </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2573192"></a>Implementation</h4></div></div></div><p> It is assumed that the server is fully installed and ready for configuration of Samba 3.0.20 and for necessary support files. All TCP/IP addresses should be hard-coded. In our case, the IP address of the Samba server is 192.168.1.1 and the netmask is 255.255.255.0. The hostname of the server used is <code class="constant">server</code>. - The office network is built as shown in <a href="simple.html#charitynet" title="Figure 1.1. Charity Administration Office Network">???</a>. - </p><div class="figure"><a name="charitynet"></a><p class="title"><b>Figure 1.1. Charity Administration Office Network</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/Charity-Network.png" width="432" alt="Charity Administration Office Network"></div></div></div><br class="figure-break"><div class="procedure"><a name="id325181"></a><p class="title"><b>Procedure 1.3. Samba Server Configuration</b></p><ol type="1"><li><p> - <a class="indexterm" name="id325192"></a> + The office network is built as shown in <a class="link" href="simple.html#charitynet" title="Figure 1.1. Charity Administration Office Network">“Charity Administration Office Network”</a>. + </p><div class="figure"><a name="charitynet"></a><p class="title"><b>Figure 1.1. Charity Administration Office Network</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/Charity-Network.png" width="432" alt="Charity Administration Office Network"></div></div></div><br class="figure-break"><div class="procedure"><a name="id2573258"></a><p class="title"><b>Procedure 1.3. Samba Server Configuration</b></p><ol type="1"><li><p> + <a class="indexterm" name="id2573269"></a> Create a group account for office file storage: </p><pre class="screen"> <code class="prompt">root# </code> groupadd office </pre><p> </p></li><li><p> - <a class="indexterm" name="id325218"></a> - <a class="indexterm" name="id325225"></a> + <a class="indexterm" name="id2573295"></a> + <a class="indexterm" name="id2573302"></a> Create a user account for office file storage: </p><pre class="screen"> <code class="prompt">root# </code> useradd -m abmas @@ -328,7 +328,7 @@ Password changed (Refer to the 3-Ware RAID Controller Manual for the manufacturer's preferred procedure.) The resulting drive has a capacity of approximately 500GB of usable space. </p></li><li><p> - <a class="indexterm" name="id325267"></a> + <a class="indexterm" name="id2573350"></a> Create a mount point for the file system that can be used to store all data files. Create a directory called <code class="filename">/data</code>: </p><pre class="screen"> @@ -360,7 +360,7 @@ Password changed /data/officefiles/invitations /data/officefiles/misc </pre><p> - <a class="indexterm" name="id325378"></a> + <a class="indexterm" name="id2573470"></a> The <code class="literal">chown</code> operation sets the owner to the user <code class="constant">abmas</code> and the group to <code class="constant">office</code> on all directories just created. It recursively sets the permissions so that the owner and group have SUID/SGID with read, write, and execute @@ -368,19 +368,19 @@ Password changed directories are created with the same owner and group as the directory in which they are created. Any new directories created still have the same owner, group, and permissions as the directory they are in. This should eliminate all permissions-based file access problems. For - more information on this subject, refer to TOSHARG2<sup>[<a name="id325403" href="#ftn.id325403">3</a>]</sup> or refer + more information on this subject, refer to TOSHARG2<sup>[<a name="id2573501" href="#ftn.id2573501" class="footnote">3</a>]</sup> or refer to the UNIX man page for the <code class="literal">chmod</code> and the <code class="literal">chown</code> commands. </p></li><li><p> - Install the <code class="filename">smb.conf</code> file shown in <a href="simple.html#charity-smbconfnew" title="Example 1.2. Charity Administration Office smb.conf New-style File">???</a> in the + Install the <code class="filename">smb.conf</code> file shown in <a class="link" href="simple.html#charity-smbconfnew" title="Example 1.2. Charity Administration Office smb.conf New-style File">“Charity Administration Office smb.conf New-style File”</a> in the <code class="filename">/etc/samba</code> directory. This newer <code class="filename">smb.conf</code> file uses user-mode security and is more suited to the mode of operation of Samba-3 than the older share-mode security configuration that was shown in the first edition of this book. </p><p> Note: If you want to use the older-style configuration that uses share-mode security, you - can install the file shown in <a href="simple.html#charity-smbconf" title="Example 1.3. Charity Administration Office smb.conf Old-style File">???</a> in the + can install the file shown in <a class="link" href="simple.html#charity-smbconf" title="Example 1.3. Charity Administration Office smb.conf Old-style File">“Charity Administration Office smb.conf Old-style File”</a> in the <code class="filename">/etc/samba</code> directory. </p></li><li><p> - <a class="indexterm" name="id325476"></a> + <a class="indexterm" name="id2573579"></a> We must ensure that the <code class="literal">smbd</code> can resolve the name of the Samba server to its IP address. Verify that the <code class="filename">/etc/hosts</code> file contains the following entry: @@ -388,11 +388,11 @@ Password changed 192.168.1.1 server </pre><p> </p></li><li><p> - Configure the printers with the IP address as shown in <a href="simple.html#charitynet" title="Figure 1.1. Charity Administration Office Network">???</a>. + Configure the printers with the IP address as shown in <a class="link" href="simple.html#charitynet" title="Figure 1.1. Charity Administration Office Network">“Charity Administration Office Network”</a>. Follow the instructions in the manufacturer's manual to permit printing to port 9100 so that the CUPS spooler can print using raw mode protocols. </p></li><li><p> - <a class="indexterm" name="id325522"></a> + <a class="indexterm" name="id2573629"></a> Configure the CUPS Print Queues: </p><pre class="screen"> <code class="prompt">root# </code> lpadmin -p PRINTQ -v socket://192.168.1.20:9100 -E @@ -400,63 +400,63 @@ Password changed </pre><p> This creates the necessary print queues with no assigned print filter. </p></li><li><p> - <a class="indexterm" name="id325555"></a> - <a class="indexterm" name="id325561"></a> - <a class="indexterm" name="id325568"></a> + <a class="indexterm" name="id2573664"></a> + <a class="indexterm" name="id2573670"></a> + <a class="indexterm" name="id2573678"></a> Edit the file <code class="filename">/etc/cups/mime.convs</code> to uncomment the line: </p><pre class="screen"> application/octet-stream application/vnd.cups-raw 0 - </pre><p> </p></li><li><p> - <a class="indexterm" name="id325594"></a> + <a class="indexterm" name="id2573705"></a> Edit the file <code class="filename">/etc/cups/mime.types</code> to uncomment the line: </p><pre class="screen"> application/octet-stream </pre><p> </p></li><li><p> - <a class="indexterm" name="id325620"></a> + <a class="indexterm" name="id2573732"></a> Use the standard system tool to start Samba and CUPS to configure them to restart automatically at every system reboot. For example, </p><p> - <a class="indexterm" name="id325631"></a> - <a class="indexterm" name="id325638"></a> - <a class="indexterm" name="id325645"></a> + <a class="indexterm" name="id2573744"></a> + <a class="indexterm" name="id2573751"></a> + <a class="indexterm" name="id2573758"></a> </p><pre class="screen"> <code class="prompt">root# </code> chkconfig smb on <code class="prompt">root# </code> chkconfig cups on <code class="prompt">root# </code> /etc/rc.d/init.d/smb restart <code class="prompt">root# </code> /etc/rc.d/init.d/cups restart </pre><p> - </p></li></ol></div><div class="example"><a name="charity-smbconfnew"></a><p class="title"><b>Example 1.2. Charity Administration Office <code class="filename">smb.conf</code> New-style File</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td># Global Parameters - Newer Configuration</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id325716"></a><em class="parameter"><code>workgroup = MIDEARTH</code></em></td></tr><tr><td><a class="indexterm" name="id325729"></a><em class="parameter"><code>printing = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id325741"></a><em class="parameter"><code>printcap name = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id325754"></a><em class="parameter"><code>map to guest = Bad User</code></em></td></tr><tr><td><a class="indexterm" name="id325766"></a><em class="parameter"><code>show add printer wizard = No</code></em></td></tr><tr><td><a class="indexterm" name="id325779"></a><em class="parameter"><code>wins support = yes</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[FTMFILES]</code></em></td></tr><tr><td><a class="indexterm" name="id325801"></a><em class="parameter"><code>comment = Funds Tracking & Management Files</code></em></td></tr><tr><td><a class="indexterm" name="id325813"></a><em class="parameter"><code>path = /data/ftmfiles</code></em></td></tr><tr><td><a class="indexterm" name="id325826"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td><a class="indexterm" name="id325838"></a><em class="parameter"><code>force user = abmas</code></em></td></tr><tr><td><a class="indexterm" name="id325851"></a><em class="parameter"><code>force group = office</code></em></td></tr><tr><td><a class="indexterm" name="id325864"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id325876"></a><em class="parameter"><code>nt acl support = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[office]</code></em></td></tr><tr><td><a class="indexterm" name="id325898"></a><em class="parameter"><code>comment = General Office Files</code></em></td></tr><tr><td><a class="indexterm" name="id325910"></a><em class="parameter"><code>path = /data/officefiles</code></em></td></tr><tr><td><a class="indexterm" name="id325923"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td><a class="indexterm" name="id325935"></a><em class="parameter"><code>force user = abmas</code></em></td></tr><tr><td><a class="indexterm" name="id325948"></a><em class="parameter"><code>force group = office</code></em></td></tr><tr><td><a class="indexterm" name="id325960"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id325973"></a><em class="parameter"><code>nt acl support = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[printers]</code></em></td></tr><tr><td><a class="indexterm" name="id325994"></a><em class="parameter"><code>comment = Print Temporary Spool Configuration</code></em></td></tr><tr><td><a class="indexterm" name="id326007"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id326020"></a><em class="parameter"><code>printable = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id326032"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id326045"></a><em class="parameter"><code>use client driver = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id326057"></a><em class="parameter"><code>browseable = No</code></em></td></tr></table></div></div><br class="example-break"><div class="example"><a name="charity-smbconf"></a><p class="title"><b>Example 1.3. Charity Administration Office <code class="filename">smb.conf</code> Old-style File</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td># Global Parameters - Older Style Configuration</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id326104"></a><em class="parameter"><code>workgroup = MIDEARTH</code></em></td></tr><tr><td><a class="indexterm" name="id326116"></a><em class="parameter"><code>security = SHARE</code></em></td></tr><tr><td><a class="indexterm" name="id326129"></a><em class="parameter"><code>printing = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id326142"></a><em class="parameter"><code>printcap name = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id326154"></a><em class="parameter"><code>disable spoolss = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id326167"></a><em class="parameter"><code>show add printer wizard = No</code></em></td></tr><tr><td><a class="indexterm" name="id326179"></a><em class="parameter"><code>wins support = yes</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[FTMFILES]</code></em></td></tr><tr><td><a class="indexterm" name="id326201"></a><em class="parameter"><code>comment = Funds Tracking & Management Files</code></em></td></tr><tr><td><a class="indexterm" name="id326214"></a><em class="parameter"><code>path = /data/ftmfiles</code></em></td></tr><tr><td><a class="indexterm" name="id326226"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td><a class="indexterm" name="id326239"></a><em class="parameter"><code>force user = abmas</code></em></td></tr><tr><td><a class="indexterm" name="id326251"></a><em class="parameter"><code>force group = office</code></em></td></tr><tr><td><a class="indexterm" name="id326264"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id326276"></a><em class="parameter"><code>nt acl support = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[office]</code></em></td></tr><tr><td><a class="indexterm" name="id326298"></a><em class="parameter"><code>comment = General Office Files</code></em></td></tr><tr><td><a class="indexterm" name="id326310"></a><em class="parameter"><code>path = /data/officefiles</code></em></td></tr><tr><td><a class="indexterm" name="id326323"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td><a class="indexterm" name="id326336"></a><em class="parameter"><code>force user = abmas</code></em></td></tr><tr><td><a class="indexterm" name="id326348"></a><em class="parameter"><code>force group = office</code></em></td></tr><tr><td><a class="indexterm" name="id326361"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id326373"></a><em class="parameter"><code>nt acl support = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[printers]</code></em></td></tr><tr><td><a class="indexterm" name="id326395"></a><em class="parameter"><code>comment = Print Temporary Spool Configuration</code></em></td></tr><tr><td><a class="indexterm" name="id326407"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id326420"></a><em class="parameter"><code>printable = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id326432"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id326445"></a><em class="parameter"><code>use client driver = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id326458"></a><em class="parameter"><code>browseable = No</code></em></td></tr></table></div></div><br class="example-break"><div class="procedure"><a name="id326471"></a><p class="title"><b>Procedure 1.4. Windows Client Configuration</b></p><ol type="1"><li><p> - Configure clients to the network settings shown in <a href="simple.html#charitynet" title="Figure 1.1. Charity Administration Office Network">???</a>. + </p></li></ol></div><div class="example"><a name="charity-smbconfnew"></a><p class="title"><b>Example 1.2. Charity Administration Office <code class="filename">smb.conf</code> New-style File</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td># Global Parameters - Newer Configuration</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2573832"></a><em class="parameter"><code>workgroup = MIDEARTH</code></em></td></tr><tr><td><a class="indexterm" name="id2573843"></a><em class="parameter"><code>printing = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id2573855"></a><em class="parameter"><code>printcap name = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id2573867"></a><em class="parameter"><code>map to guest = Bad User</code></em></td></tr><tr><td><a class="indexterm" name="id2573879"></a><em class="parameter"><code>show add printer wizard = No</code></em></td></tr><tr><td><a class="indexterm" name="id2573891"></a><em class="parameter"><code>wins support = yes</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[FTMFILES]</code></em></td></tr><tr><td><a class="indexterm" name="id2573912"></a><em class="parameter"><code>comment = Funds Tracking & Management Files</code></em></td></tr><tr><td><a class="indexterm" name="id2573924"></a><em class="parameter"><code>path = /data/ftmfiles</code></em></td></tr><tr><td><a class="indexterm" name="id2573936"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td><a class="indexterm" name="id2573947"></a><em class="parameter"><code>force user = abmas</code></em></td></tr><tr><td><a class="indexterm" name="id2573959"></a><em class="parameter"><code>force group = office</code></em></td></tr><tr><td><a class="indexterm" name="id2573970"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2573982"></a><em class="parameter"><code>nt acl support = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[office]</code></em></td></tr><tr><td><a class="indexterm" name="id2574003"></a><em class="parameter"><code>comment = General Office Files</code></em></td></tr><tr><td><a class="indexterm" name="id2574015"></a><em class="parameter"><code>path = /data/officefiles</code></em></td></tr><tr><td><a class="indexterm" name="id2574026"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td><a class="indexterm" name="id2574038"></a><em class="parameter"><code>force user = abmas</code></em></td></tr><tr><td><a class="indexterm" name="id2574050"></a><em class="parameter"><code>force group = office</code></em></td></tr><tr><td><a class="indexterm" name="id2574061"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2574073"></a><em class="parameter"><code>nt acl support = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[printers]</code></em></td></tr><tr><td><a class="indexterm" name="id2574094"></a><em class="parameter"><code>comment = Print Temporary Spool Configuration</code></em></td></tr><tr><td><a class="indexterm" name="id2574106"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id2574117"></a><em class="parameter"><code>printable = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2574129"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2574141"></a><em class="parameter"><code>use client driver = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2574152"></a><em class="parameter"><code>browseable = No</code></em></td></tr></table></div></div><br class="example-break"><div class="example"><a name="charity-smbconf"></a><p class="title"><b>Example 1.3. Charity Administration Office <code class="filename">smb.conf</code> Old-style File</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td># Global Parameters - Older Style Configuration</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2574199"></a><em class="parameter"><code>workgroup = MIDEARTH</code></em></td></tr><tr><td><a class="indexterm" name="id2574211"></a><em class="parameter"><code>security = SHARE</code></em></td></tr><tr><td><a class="indexterm" name="id2574222"></a><em class="parameter"><code>printing = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id2574234"></a><em class="parameter"><code>printcap name = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id2574246"></a><em class="parameter"><code>disable spoolss = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2574258"></a><em class="parameter"><code>show add printer wizard = No</code></em></td></tr><tr><td><a class="indexterm" name="id2574270"></a><em class="parameter"><code>wins support = yes</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[FTMFILES]</code></em></td></tr><tr><td><a class="indexterm" name="id2574291"></a><em class="parameter"><code>comment = Funds Tracking & Management Files</code></em></td></tr><tr><td><a class="indexterm" name="id2574303"></a><em class="parameter"><code>path = /data/ftmfiles</code></em></td></tr><tr><td><a class="indexterm" name="id2574315"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td><a class="indexterm" name="id2574326"></a><em class="parameter"><code>force user = abmas</code></em></td></tr><tr><td><a class="indexterm" name="id2574338"></a><em class="parameter"><code>force group = office</code></em></td></tr><tr><td><a class="indexterm" name="id2574350"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2574361"></a><em class="parameter"><code>nt acl support = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[office]</code></em></td></tr><tr><td><a class="indexterm" name="id2574382"></a><em class="parameter"><code>comment = General Office Files</code></em></td></tr><tr><td><a class="indexterm" name="id2574394"></a><em class="parameter"><code>path = /data/officefiles</code></em></td></tr><tr><td><a class="indexterm" name="id2574405"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td><a class="indexterm" name="id2574417"></a><em class="parameter"><code>force user = abmas</code></em></td></tr><tr><td><a class="indexterm" name="id2574429"></a><em class="parameter"><code>force group = office</code></em></td></tr><tr><td><a class="indexterm" name="id2574440"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2574452"></a><em class="parameter"><code>nt acl support = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[printers]</code></em></td></tr><tr><td><a class="indexterm" name="id2574473"></a><em class="parameter"><code>comment = Print Temporary Spool Configuration</code></em></td></tr><tr><td><a class="indexterm" name="id2574485"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id2574496"></a><em class="parameter"><code>printable = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2574508"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2574520"></a><em class="parameter"><code>use client driver = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2574532"></a><em class="parameter"><code>browseable = No</code></em></td></tr></table></div></div><br class="example-break"><div class="procedure"><a name="id2574544"></a><p class="title"><b>Procedure 1.4. Windows Client Configuration</b></p><ol type="1"><li><p> + Configure clients to the network settings shown in <a class="link" href="simple.html#charitynet" title="Figure 1.1. Charity Administration Office Network">“Charity Administration Office Network”</a>. </p></li><li><p> Ensure that the netmask used on the Windows clients matches that used for the Samba server. All clients must have the same netmask, such as <code class="constant">255.255.255.0</code>. </p></li><li><p> - <a class="indexterm" name="id326507"></a> + <a class="indexterm" name="id2574582"></a> On all Windows clients, set the WINS Server address to <code class="constant">192.168.1.1</code>, the IP address of the server. </p></li><li><p> Set the workgroup name on all clients to <code class="constant">MIDEARTH</code>. </p></li><li><p> - <a class="indexterm" name="id326536"></a> + <a class="indexterm" name="id2574612"></a> Install the “<span class="quote">Client for Microsoft Networks.</span>” Ensure that the only option enabled in its properties is the option “<span class="quote">Logon and restore network connections.</span>” </p></li><li><p> Click <span class="guibutton">OK</span> when you are prompted to reboot the system. Reboot the system, then log on using any username and password you choose. </p></li><li><p> - <a class="indexterm" name="id326571"></a> + <a class="indexterm" name="id2574649"></a> Verify on each client that the machine called <code class="constant">SERVER</code> is visible in <span class="guimenu">My Network Places</span>, that it is possible to connect to it and see the share <span class="guimenuitem">office</span>, and that it is possible to open that share to reveal its contents. </p></li><li><p> - <a class="indexterm" name="id326601"></a> - <a class="indexterm" name="id326608"></a> + <a class="indexterm" name="id2574682"></a> + <a class="indexterm" name="id2574689"></a> Disable password caching on all Windows 9x/Me machines using the registry change file - shown in <a href="simple.html#MEreg" title="Example 1.4. Windows Me Registry Edit File: Disable Password Caching">???</a>. Be sure to remove all files that have the + shown in <a class="link" href="simple.html#MEreg" title="Example 1.4. Windows Me Registry Edit File: Disable Password Caching">“Windows Me Registry Edit File: Disable Password Caching”</a>. Be sure to remove all files that have the <code class="filename">PWL</code> extension that are in the <code class="filename">C:\WINDOWS</code> directory. </p><div class="example"><a name="MEreg"></a><p class="title"><b>Example 1.4. Windows Me Registry Edit File: Disable Password Caching</b></p><div class="example-contents"><pre class="screen"> @@ -532,8 +532,8 @@ C:\WINDOWS: regedit ME-dpwc.reg It is a good idea to test the functionality of the complete installation before handing the newly configured network over to the Charity Administration Office for production use. - </p></li></ol></div></li></ol></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id327028"></a>Validation</h4></div></div></div><p> - Use the same validation process as was followed in <a href="simple.html#validate1" title="Validation">???</a>. + </p></li></ol></div></li></ol></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2575134"></a>Validation</h4></div></div></div><p> + Use the same validation process as was followed in <a class="link" href="simple.html#validate1" title="Validation">“Validation”</a>. </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="AccountingOffice"></a>Accounting Office</h3></div></div></div><p> Abmas Accounting is a 40-year-old family-run business. There are nine permanent computer users. The network clients were upgraded two years ago. All computers run Windows 2000 @@ -551,7 +551,7 @@ C:\WINDOWS: regedit ME-dpwc.reg and enter an assigned password; they do not need to enter a password when accessing their files on the server. </p><p> - <a class="indexterm" name="id327076"></a> + <a class="indexterm" name="id2575202"></a> The new server will run Red Hat Fedora Core2. You should install Samba-3.0.20 and copy all files from the old system to the new one. The existing Windows NT4 server has a parallel port HP LaserJet 4 printer that is shared by all. The printer driver is installed on each @@ -561,8 +561,8 @@ C:\WINDOWS: regedit ME-dpwc.reg You have tried to educate Mr. Meany and found that he has no desire to understand networking. He believes that Windows for Workgroups 3.11 was “<span class="quote">the best server Microsoft ever sold </span>” and that Windows NT and 2000 are “<span class="quote">too fang-dangled complex!</span>” - </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id327103"></a>Dissection and Discussion</h4></div></div></div><p> - <a class="indexterm" name="id327110"></a> + </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2575234"></a>Dissection and Discussion</h4></div></div></div><p> + <a class="indexterm" name="id2575242"></a> The requirements of this network installation are not unusual. The staff are not interested in the details of networking. Passwords are never changed. In this example solution, we demonstrate the use of User Mode security in a simple context. Directories should be set SGID to ensure that members @@ -579,10 +579,10 @@ C:\WINDOWS: regedit ME-dpwc.reg configuration. The office does not use Internet access, so security really is not an issue. </p><p> The core information regarding the users, their passwords, the directory share point, and the - share name is given in <a href="simple.html#acctingnet" title="Table 1.1. Accounting Office Network Information">???</a>. The overall network topology is shown in - <a href="simple.html#acctingnet2" title="Figure 1.2. Accounting Office Network Topology">???</a>. All machines have been configured as indicated prior to the + share name is given in <a class="link" href="simple.html#acctingnet" title="Table 1.1. Accounting Office Network Information">“Accounting Office Network Information”</a>. The overall network topology is shown in + <a class="link" href="simple.html#acctingnet2" title="Figure 1.2. Accounting Office Network Topology">“Accounting Office Network Topology”</a>. All machines have been configured as indicated prior to the start of Samba configuration. The following prescriptive steps may now commence. - </p><div class="figure"><a name="acctingnet2"></a><p class="title"><b>Figure 1.2. Accounting Office Network Topology</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/AccountingNetwork.png" width="459" alt="Accounting Office Network Topology"></div></div></div><br class="figure-break"><div class="table"><a name="acctingnet"></a><p class="title"><b>Table 1.1. Accounting Office Network Information</b></p><div class="table-contents"><table summary="Accounting Office Network Information" border="1"><colgroup><col align="left"><col align="left"><col align="left"><col align="left"><col align="left"><col align="left"></colgroup><thead><tr><th align="left">User</th><th align="left">Login-ID</th><th align="left">Password</th><th align="left">Share Name</th><th align="left">Directory</th><th align="left">Wkst</th></tr></thead><tbody><tr><td align="left">Alan Meany</td><td align="left">alan</td><td align="left">alm1961</td><td align="left">alan</td><td align="left">/data</td><td align="left">PC1</td></tr><tr><td align="left">James Meany</td><td align="left">james</td><td align="left">jimm1962</td><td align="left">james</td><td align="left">/data/james</td><td align="left">PC2</td></tr><tr><td align="left">Jeannie Meany</td><td align="left">jeannie</td><td align="left">jema1965</td><td align="left">jeannie</td><td align="left">/data/jeannie</td><td align="left">PC3</td></tr><tr><td align="left">Suzy Millicent</td><td align="left">suzy</td><td align="left">suzy1967</td><td align="left">suzy</td><td align="left">/data/suzy</td><td align="left">PC4</td></tr><tr><td align="left">Ursula Jenning</td><td align="left">ujen</td><td align="left">ujen1974</td><td align="left">ursula</td><td align="left">/data/ursula</td><td align="left">PC5</td></tr><tr><td align="left">Peter Pan</td><td align="left">peter</td><td align="left">pete1984</td><td align="left">peter</td><td align="left">/data/peter</td><td align="left">PC6</td></tr><tr><td align="left">Dale Roland</td><td align="left">dale</td><td align="left">dale1986</td><td align="left">dale</td><td align="left">/data/dale</td><td align="left">PC7</td></tr><tr><td align="left">Bertrand E Paoletti</td><td align="left">eric</td><td align="left">eric1993</td><td align="left">eric</td><td align="left">/data/eric</td><td align="left">PC8</td></tr><tr><td align="left">Russell Lewis</td><td align="left">russ</td><td align="left">russ2001</td><td align="left">russell</td><td align="left">/data/russell</td><td align="left">PC9</td></tr></tbody></table></div></div><br class="table-break"><div class="procedure"><a name="id327495"></a><p class="title"><b>Procedure 1.5. Migration from Windows NT4 Workstation System to Samba-3</b></p><ol type="1"><li><p><a class="indexterm" name="id327506"></a> + </p><div class="figure"><a name="acctingnet2"></a><p class="title"><b>Figure 1.2. Accounting Office Network Topology</b></p><div class="figure-contents"><div class="mediaobject"><img src="images/AccountingNetwork.png" width="459" alt="Accounting Office Network Topology"></div></div></div><br class="figure-break"><div class="table"><a name="acctingnet"></a><p class="title"><b>Table 1.1. Accounting Office Network Information</b></p><div class="table-contents"><table summary="Accounting Office Network Information" border="1"><colgroup><col align="left"><col align="left"><col align="left"><col align="left"><col align="left"><col align="left"></colgroup><thead><tr><th align="left">User</th><th align="left">Login-ID</th><th align="left">Password</th><th align="left">Share Name</th><th align="left">Directory</th><th align="left">Wkst</th></tr></thead><tbody><tr><td align="left">Alan Meany</td><td align="left">alan</td><td align="left">alm1961</td><td align="left">alan</td><td align="left">/data</td><td align="left">PC1</td></tr><tr><td align="left">James Meany</td><td align="left">james</td><td align="left">jimm1962</td><td align="left">james</td><td align="left">/data/james</td><td align="left">PC2</td></tr><tr><td align="left">Jeannie Meany</td><td align="left">jeannie</td><td align="left">jema1965</td><td align="left">jeannie</td><td align="left">/data/jeannie</td><td align="left">PC3</td></tr><tr><td align="left">Suzy Millicent</td><td align="left">suzy</td><td align="left">suzy1967</td><td align="left">suzy</td><td align="left">/data/suzy</td><td align="left">PC4</td></tr><tr><td align="left">Ursula Jenning</td><td align="left">ujen</td><td align="left">ujen1974</td><td align="left">ursula</td><td align="left">/data/ursula</td><td align="left">PC5</td></tr><tr><td align="left">Peter Pan</td><td align="left">peter</td><td align="left">pete1984</td><td align="left">peter</td><td align="left">/data/peter</td><td align="left">PC6</td></tr><tr><td align="left">Dale Roland</td><td align="left">dale</td><td align="left">dale1986</td><td align="left">dale</td><td align="left">/data/dale</td><td align="left">PC7</td></tr><tr><td align="left">Bertrand E Paoletti</td><td align="left">eric</td><td align="left">eric1993</td><td align="left">eric</td><td align="left">/data/eric</td><td align="left">PC8</td></tr><tr><td align="left">Russell Lewis</td><td align="left">russ</td><td align="left">russ2001</td><td align="left">russell</td><td align="left">/data/russell</td><td align="left">PC9</td></tr></tbody></table></div></div><br class="table-break"><div class="procedure"><a name="id2575642"></a><p class="title"><b>Procedure 1.5. Migration from Windows NT4 Workstation System to Samba-3</b></p><ol type="1"><li><p><a class="indexterm" name="id2575653"></a> Rename the old server from <code class="constant">CASHPOOL</code> to <code class="constant">STABLE</code> by logging onto the console as the <code class="constant">Administrator</code>. Restart the machine following system prompts. @@ -593,20 +593,20 @@ C:\WINDOWS: regedit ME-dpwc.reg Install the latest Samba-3 binary Red Hat Linux RPM that is available from the Samba FTP site. </p></li><li><p> - <a class="indexterm" name="id327552"></a> - <a class="indexterm" name="id327559"></a> + <a class="indexterm" name="id2575702"></a> + <a class="indexterm" name="id2575709"></a> Add a group account for the office to use. Execute the following: </p><pre class="screen"> <code class="prompt">root# </code> groupadd accts </pre><p> </p></li><li><p> - Install the <code class="filename">smb.conf</code> file shown<sup>[<a name="id327590" href="#ftn.id327590">4</a>]</sup> - in <a href="simple.html#acctconf" title="Example 1.5. Accounting Office Network smb.conf Old Style Configuration File">???</a>. + Install the <code class="filename">smb.conf</code> file shown<sup>[<a name="id2575742" href="#ftn.id2575742" class="footnote">4</a>]</sup> + in <a class="link" href="simple.html#acctconf" title="Example 1.5. Accounting Office Network smb.conf Old Style Configuration File">“Accounting Office Network smb.conf Old Style Configuration File”</a>. </p></li><li><p> - <a class="indexterm" name="id327627"></a> - <a class="indexterm" name="id327634"></a> - <a class="indexterm" name="id327641"></a> - For each user who uses this system (see <a href="simple.html#acctingnet" title="Table 1.1. Accounting Office Network Information">???</a>), + <a class="indexterm" name="id2575780"></a> + <a class="indexterm" name="id2575787"></a> + <a class="indexterm" name="id2575794"></a> + For each user who uses this system (see <a class="link" href="simple.html#acctingnet" title="Table 1.1. Accounting Office Network Information">“Accounting Office Network Information”</a>), execute the following: </p><pre class="screen"> <code class="prompt">root# </code> useradd -m -G accts -c "Name of User" "LoginID" @@ -620,7 +620,7 @@ Retype new SMB password: XXXXXXXXX Added user "LoginID" </pre><p> </p></li><li><p> - <a class="indexterm" name="id327688"></a> + <a class="indexterm" name="id2575847"></a> Create the directory structure for the file shares by executing the following: </p><pre class="screen"> <code class="prompt">root# </code> mkdir -p /data @@ -635,34 +635,34 @@ Added user "LoginID" </pre><p> The data storage structure is now prepared for use. </p></li><li><p> - <a class="indexterm" name="id327739"></a> + <a class="indexterm" name="id2575902"></a> Configure the CUPS Print Queues: </p><pre class="screen"> <code class="prompt">root# </code> lpadmin -p hplj -v parallel:/dev/lp0 -E </pre><p> This creates the necessary print queues with no assigned print filter. </p></li><li><p> - <a class="indexterm" name="id327766"></a> - <a class="indexterm" name="id327772"></a> + <a class="indexterm" name="id2575929"></a> + <a class="indexterm" name="id2575936"></a> Edit the file <code class="filename">/etc/cups/mime.convs</code> to uncomment the line: </p><pre class="screen"> application/octet-stream application/vnd.cups-raw 0 - </pre><p> </p></li><li><p> - <a class="indexterm" name="id327798"></a> - <a class="indexterm" name="id327805"></a> + <a class="indexterm" name="id2575964"></a> + <a class="indexterm" name="id2575971"></a> Edit the file <code class="filename">/etc/cups/mime.types</code> to uncomment the line: </p><pre class="screen"> application/octet-stream </pre><p> </p></li><li><p> - <a class="indexterm" name="id327831"></a> + <a class="indexterm" name="id2575997"></a> Use the standard system tool to start Samba and CUPS to configure them to restart automatically at every system reboot. For example, </p><p> - <a class="indexterm" name="id327842"></a> - <a class="indexterm" name="id327849"></a> - <a class="indexterm" name="id327856"></a> + <a class="indexterm" name="id2576010"></a> + <a class="indexterm" name="id2576017"></a> + <a class="indexterm" name="id2576024"></a> </p><pre class="screen"> <code class="prompt">root# </code> chkconfig smb on <code class="prompt">root# </code> chkconfig cups on @@ -707,40 +707,40 @@ application/octet-stream The migration of all data should now be complete. It is time to validate the installation. For this, you should make sure all applications, including printing, work before asking the customer to test drive the new network. - </p></li></ol></div><div class="example"><a name="acctconf"></a><p class="title"><b>Example 1.5. Accounting Office Network <code class="filename">smb.conf</code> Old Style Configuration File</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td># Global parameters</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id328092"></a><em class="parameter"><code>workgroup = BILLMORE</code></em></td></tr><tr><td><a class="indexterm" name="id328104"></a><em class="parameter"><code>printcap name = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id328117"></a><em class="parameter"><code>disable spoolss = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id328129"></a><em class="parameter"><code>show add printer wizard = No</code></em></td></tr><tr><td><a class="indexterm" name="id328142"></a><em class="parameter"><code>printing = cups</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[files]</code></em></td></tr><tr><td><a class="indexterm" name="id328164"></a><em class="parameter"><code>comment = Work area files</code></em></td></tr><tr><td><a class="indexterm" name="id328176"></a><em class="parameter"><code>path = /data/%U</code></em></td></tr><tr><td><a class="indexterm" name="id328189"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[master]</code></em></td></tr><tr><td><a class="indexterm" name="id328210"></a><em class="parameter"><code>comment = Master work area files</code></em></td></tr><tr><td><a class="indexterm" name="id328223"></a><em class="parameter"><code>path = /data</code></em></td></tr><tr><td><a class="indexterm" name="id328235"></a><em class="parameter"><code>valid users = alan</code></em></td></tr><tr><td><a class="indexterm" name="id328248"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[printers]</code></em></td></tr><tr><td><a class="indexterm" name="id328269"></a><em class="parameter"><code>comment = Print Temporary Spool Configuration</code></em></td></tr><tr><td><a class="indexterm" name="id328282"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id328295"></a><em class="parameter"><code>printable = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id328307"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id328320"></a><em class="parameter"><code>use client driver = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id328332"></a><em class="parameter"><code>browseable = No</code></em></td></tr></table></div></div><br class="example-break"></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id328349"></a>Questions and Answers</h2></div></div></div><p> + </p></li></ol></div><div class="example"><a name="acctconf"></a><p class="title"><b>Example 1.5. Accounting Office Network <code class="filename">smb.conf</code> Old Style Configuration File</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td># Global parameters</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2576274"></a><em class="parameter"><code>workgroup = BILLMORE</code></em></td></tr><tr><td><a class="indexterm" name="id2576286"></a><em class="parameter"><code>printcap name = CUPS</code></em></td></tr><tr><td><a class="indexterm" name="id2576298"></a><em class="parameter"><code>disable spoolss = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2576310"></a><em class="parameter"><code>show add printer wizard = No</code></em></td></tr><tr><td><a class="indexterm" name="id2576322"></a><em class="parameter"><code>printing = cups</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[files]</code></em></td></tr><tr><td><a class="indexterm" name="id2576342"></a><em class="parameter"><code>comment = Work area files</code></em></td></tr><tr><td><a class="indexterm" name="id2576354"></a><em class="parameter"><code>path = /data/%U</code></em></td></tr><tr><td><a class="indexterm" name="id2576366"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[master]</code></em></td></tr><tr><td><a class="indexterm" name="id2576386"></a><em class="parameter"><code>comment = Master work area files</code></em></td></tr><tr><td><a class="indexterm" name="id2576398"></a><em class="parameter"><code>path = /data</code></em></td></tr><tr><td><a class="indexterm" name="id2576410"></a><em class="parameter"><code>valid users = alan</code></em></td></tr><tr><td><a class="indexterm" name="id2576421"></a><em class="parameter"><code>read only = No</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[printers]</code></em></td></tr><tr><td><a class="indexterm" name="id2576442"></a><em class="parameter"><code>comment = Print Temporary Spool Configuration</code></em></td></tr><tr><td><a class="indexterm" name="id2576454"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id2576466"></a><em class="parameter"><code>printable = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2576477"></a><em class="parameter"><code>guest ok = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2576489"></a><em class="parameter"><code>use client driver = Yes</code></em></td></tr><tr><td><a class="indexterm" name="id2576501"></a><em class="parameter"><code>browseable = No</code></em></td></tr></table></div></div><br class="example-break"></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2576516"></a>Questions and Answers</h2></div></div></div><p> The following questions and answers draw from the examples in this chapter. Many design decisions are impacted by the configurations chosen. The intent is to expose some of the hidden implications. - </p><div class="qandaset"><dl><dt> <a href="simple.html#id328366"> + </p><div class="qandaset"><dl><dt> <a href="simple.html#id2576536"> What makes an anonymous Samba server more simple than a non-anonymous Samba server? - </a></dt><dt> <a href="simple.html#id328389"> + </a></dt><dt> <a href="simple.html#id2576561"> How is the operation of the parameter force user different from setting the root directory of the share SUID? - </a></dt><dt> <a href="simple.html#id328436"> + </a></dt><dt> <a href="simple.html#id2576615"> When would you both use the per share parameter force user and set the share root directory SUID? - </a></dt><dt> <a href="simple.html#id328461"> + </a></dt><dt> <a href="simple.html#id2576642"> What is better about CUPS printing than LPRng printing? - </a></dt><dt> <a href="simple.html#id328495"> + </a></dt><dt> <a href="simple.html#id2576687"> When should Windows client IP addresses be hard-coded? - </a></dt><dt> <a href="simple.html#id328516"> + </a></dt><dt> <a href="simple.html#id2576712"> Under what circumstances is it best to use a DHCP server? - </a></dt><dt> <a href="simple.html#id328547"> + </a></dt><dt> <a href="simple.html#id2576751"> What is the purpose of setting the parameter guest ok on a share? - </a></dt><dt> <a href="simple.html#id328571"> + </a></dt><dt> <a href="simple.html#id2576777"> When would you set the global parameter disable spoolss? - </a></dt><dt> <a href="simple.html#id328650"> + </a></dt><dt> <a href="simple.html#id2576867"> Why would you disable password caching on Windows 9x/Me clients? - </a></dt><dt> <a href="simple.html#id328671"> + </a></dt><dt> <a href="simple.html#id2576891"> The example of Abmas Accounting uses User Mode security. How does this provide anonymous access? - </a></dt></dl><table border="0" summary="Q and A Set"><col align="left" width="1%"><tbody><tr class="question"><td align="left" valign="top"><a name="id328366"></a><a name="id328369"></a></td><td align="left" valign="top"><p> + </a></dt></dl><table border="0" summary="Q and A Set"><col align="left" width="1%"><tbody><tr class="question"><td align="left" valign="top"><a name="id2576536"></a><a name="id2576538"></a></td><td align="left" valign="top"><p> What makes an anonymous Samba server more simple than a non-anonymous Samba server? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> In the anonymous server, the only account used is the <code class="constant">guest</code> account. In a non-anonymous configuration, it is necessary to add real user accounts to both the UNIX system and to the Samba configuration. Non-anonymous servers require additional administration. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id328389"></a><a name="id328392"></a></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2576561"></a><a name="id2576564"></a></td><td align="left" valign="top"><p> How is the operation of the parameter <em class="parameter"><code>force user</code></em> different from setting the root directory of the share SUID? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> @@ -754,14 +754,14 @@ application/octet-stream </p><p> The parameter <em class="parameter"><code>force user</code></em> has potential security implications that go beyond the actual share root directory. Be careful and wary of using this parameter. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id328436"></a><a name="id328439"></a></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2576615"></a><a name="id2576617"></a></td><td align="left" valign="top"><p> When would you both use the per share parameter <em class="parameter"><code>force user</code></em> and set the share root directory SUID? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> You would use both parameters when it is necessary to guarantee that all share handling operations are conducted as the forced user, while all file and directory creation are done as the SUID directory owner. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id328461"></a><a name="id328463"></a></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2576642"></a><a name="id2576645"></a></td><td align="left" valign="top"><p> What is better about CUPS printing than LPRng printing? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> CUPS is a print spooling system that has integrated remote management facilities, provides completely @@ -779,7 +779,7 @@ application/octet-stream </p><p> Which spooling system is better is a matter of personal taste. It depends on what you want to do and how you want to do it and manage it. Most modern Linux systems ship with CUPS as the default print management system. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id328495"></a><a name="id328497"></a></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2576687"></a><a name="id2576689"></a></td><td align="left" valign="top"><p> When should Windows client IP addresses be hard-coded? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> When there are few MS Windows clients, little client change, no mobile users, and users are not @@ -788,7 +788,7 @@ application/octet-stream user ability to access network configuration controls, fixed configuration eliminates the need for a DHCP server. This reduces maintenance overheads and eliminates a possible point of network failure. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id328516"></a><a name="id328518"></a></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2576712"></a><a name="id2576715"></a></td><td align="left" valign="top"><p> Under what circumstances is it best to use a DHCP server? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> In network configurations where there are mobile users, or where Windows client PCs move around @@ -804,12 +804,12 @@ application/octet-stream Another benefit of modern DHCP servers is their ability to register dynamically assigned IP addresses with the DNS server. The benefits of Dynamic DNS (DDNS) are considerable in a large Windows network environment. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id328547"></a><a name="id328549"></a></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2576751"></a><a name="id2576753"></a></td><td align="left" valign="top"><p> What is the purpose of setting the parameter <em class="parameter"><code>guest ok</code></em> on a share? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> If this parameter is set to yes for a service, then no password is required to connect to the service. Privileges are those of the guest account. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id328571"></a><a name="id328573"></a></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2576777"></a><a name="id2576779"></a></td><td align="left" valign="top"><p> When would you set the global parameter <em class="parameter"><code>disable spoolss</code></em>? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Setting this parameter to <code class="constant">Yes</code> disables Samba's support for the SPOOLSS set of @@ -833,14 +833,14 @@ application/octet-stream that the client now displays an “<span class="quote">Access Denied; Unable to connect</span>” message in the printer queue window (even though jobs may be printed successfully). This parameter MUST not be enabled on a print share that has a valid print driver installed on the Samba server. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id328650"></a><a name="id328652"></a></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2576867"></a><a name="id2576869"></a></td><td align="left" valign="top"><p> Why would you disable password caching on Windows 9x/Me clients? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> Windows 9x/Me workstations that are set at default (password caching enabled) store the username and password in files located in the Windows master directory. Such files can be scavenged (read off a client machine) and decrypted, thus revealing the user's access credentials for all systems the user may have accessed. It is most insecure to allow any Windows 9x/Me client to operate with password caching enabled. - </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id328671"></a><a name="id328673"></a></td><td align="left" valign="top"><p> + </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2576891"></a><a name="id2576894"></a></td><td align="left" valign="top"><p> The example of Abmas Accounting uses User Mode security. How does this provide anonymous access? </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p> The example used does not provide anonymous access. Since the clients are all Windows 2000 Professional, @@ -848,14 +848,14 @@ application/octet-stream a remote server using currently logged in user credentials. By ensuring that the user's login ID and password are the same as those set on the Samba server, access is transparent and does not require separate user authentication. - </p></td></tr></tbody></table></div></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.id324068" href="#id324068">1</a>] </sup>The examples given mirror those documented + </p></td></tr></tbody></table></div></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.id2572007" href="#id2572007" class="para">1</a>] </sup>The examples given mirror those documented in The Official Samba-3 HOWTO and Reference Guide, Second Edition (TOSHARG2) Chapter 2, Section 2.3.1. You may gain additional insight from the standalone server configurations covered in TOSHARG2, sections 2.3.1.2 through 2.3.1.4. - </p></div><div class="footnote"><p><sup>[<a name="ftn.id324218" href="#id324218">2</a>] </sup> + </p></div><div class="footnote"><p><sup>[<a name="ftn.id2572193" href="#id2572193" class="para">2</a>] </sup> This information is given purely as an example of how data may be stored in such a way that it will be easy to locate records at a later date. The example is not meant to imply any instructions that may be construed as essential to the design of the solution; this is something you will almost - certainly want to determine for yourself.</p></div><div class="footnote"></div><div class="footnote"><p><sup>[<a name="ftn.id327590" href="#id327590">4</a>] </sup>This example uses the + certainly want to determine for yourself.</p></div><div class="footnote"></div><div class="footnote"><p><sup>[<a name="ftn.id2575742" href="#id2575742" class="para">4</a>] </sup>This example uses the <em class="parameter"><code>smbpasswd</code></em> file in an obtuse way, since the use of the <em class="parameter"><code>passdb backend</code></em> has not been specified in the <code class="filename">smb.conf</code> file. This means that you are depending on correct default behavior.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ExNetworks.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ExNetworks.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="small.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Part I. Example Network Configurations </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 2. Small Office Networking</td></tr></table></div></body></html> |