1<HTML> 2<HEAD> 3<TITLE>[Chapter 1] 1.1 Learning Samba</title> 4</head> 5<BODY BGCOLOR="#FFFFFF" TEXT="#000000" link="#990000" vlink="#0000CC"> 6<table BORDER="0" CELLPADDING="0" CELLSPACING="0" width="90%"> 7<tr> 8<td width="25%" valign="TOP"> 9<img hspace=10 vspace=10 src="gifs/samba.s.gif" 10alt="Using Samba" align=left valign=top border=0> 11</td> 12<td height="105" valign="TOP"> 13<br> 14<H2>Using Samba</H2> 15<font size="-1"> 16Robert Eckstein, David Collier-Brown, Peter Kelly 17<br>1st Edition November 1999 18<br>1-56592-449-5, Order Number: 4495 19<br>416 pages, $34.95 20</font> 21<p> <a href="http://www.oreilly.com/catalog/samba/">Buy the hardcopy</a> 22<p><a href="index.html">Table of Contents</a> 23</td> 24</tr> 25</table> 26<hr size=1 noshade> 27<!--sample chapter begins --> 28 29<center> 30<DIV CLASS="htmlnav"> 31<TABLE WIDTH="515" BORDER="0" CELLSPACING="0" CELLPADDING="0"> 32<TR> 33<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172"> 34</td> 35<TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171"> 36</td> 37<TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172"> 38<A CLASS="sect1" HREF="ch01_02.html" TITLE="1.2 What Can Samba Do For Me?"> 39<IMG SRC="gifs/txtnexta.gif" ALT="Next: 1.2 What Can Samba Do For Me?" BORDER="0"></a> 40</td> 41</tr> 42</table> 43<hr noshade size=1> 44</center> 45</div> 46<blockquote> 47<div> 48<H1 CLASS="sect1">1. Learning the Samba</h1> 49<p>If you are a typical system administrator, then you know what it means to be <i>swamped</i> with work. Your daily routine is filled with endless hardware incompatibility issues, system outages, data backup problems, and a steady stream of angry users. So adding another program to the mix of tools that you have to maintain may sound a bit perplexing. However, if you're determined to reduce the complexity of your work environment, as well as the workload of keeping it running smoothly, Samba may be the tool you've been waiting for.</p> 50 51<p>A case in point: one of the authors of this book used to look after 70 Unix developers sharing 5 Unix servers. His neighbor administered 20 Windows 3.1 users and 5 OS/2 and Windows NT servers. To put it mildly, the Windows 3.1 administrator was swamped. When he finally left - and the domain controller melted - Samba was brought to the rescue. Our author quickly replaced the Windows NT and OS/2 servers with Samba running on a Unix server, and eventually bought PCs for most of the company developers. However, he did the latter without hiring a new PC administrator; the administrator now manages one centralized Unix application instead of fifty distributed PCs. </p> 52 53<p>If you know you're facing a problem with your network and you're sure there is a better way, we encourage you to start reading this book. Or, if you've heard about Samba and you want to see what it can do for you, this is also the place to start. We'll get you started on the path to understanding Samba and its potential. Before long, you can provide Unix services to all your Windows machines - all without spending tons of extra time or money. Sound enticing? Great, then let's get started.</p> 54 55<a name="s1"></a> 56<h2 id="ch01-28119">1.1 What is Samba?</h2> 57 58<p>Samba is a suite of Unix applications that speak the SMB (Server Message Block) protocol. Many operating systems, including Windows and OS/2, use SMB to perform client-server networking. By supporting this protocol, Samba allows Unix servers to get in on the action, communicating with the same networking protocol as Microsoft Windows products. Thus, a Samba-enabled Unix machine can masquerade as a server on your Microsoft network and offer the following services:</p> 59 60<ul> 61<li id="ch01-pgfId-940463"> 62 63<p>Share one or more filesystems</p> 64 65</li> 66<li id="ch01-pgfId-940464"> 67 68<p>Share printers installed on both the server and its clients</p> 69 70</li> 71<li id="ch01-pgfId-940465"> 72 73<p>Assist clients with Network Neighborhood browsing</p> 74 75</li> 76<li id="ch01-pgfId-940489"> 77 78<p>Authenticate clients logging onto a Windows domain</p> 79 80</li> 81<li id="ch01-pgfId-940472"> 82 83<p>Provide or assist with WINS name server resolution</p> 84 85</li> 86</ul> 87 88<p>Samba is the brainchild of Andrew Tridgell, who currently heads the Samba development team from his home of Canberra, Australia. The project was born in 1991 when Andrew created a fileserver program for his local network that supported an odd DEC protocol from Digital Pathworks. Although he didn't know it at the time, that protocol later turned out to be SMB. A few years later, he expanded upon his custom-made SMB server and began distributing it as a product on the Internet under the name SMB Server. However, Andrew couldn't keep that name - it already belonged to another company's product - so he tried the following Unix renaming approach:</p> 89 90<pre> 91grep -i 's.*m.*b' /usr/dict/words </pre> 92 93<p>And the response was:</p> 94 95<Pre> 96salmonberry samba sawtimber scramble</pre> 97 98<p>Thus, the name "Samba" was born.<footnote id="ch01-pgfId-946532"> 99 100<p>Which is a good thing, because our marketing people highly doubt you would have picked up a book called "Using Salmonberry"!</p> 101 102</footnote></p> 103 104<p>Today, the Samba suite revolves around a pair of Unix daemons that provide shared resources - or <i>shares</i> - to SMB clients on the network. (Shares are sometimes called s<i>ervices</i> as well.) These daemons are:</p> 105 106<dl> 107<dt>smbd</dt> 108<dd> 109 110<p id="ch01-pgfId-949804">A daemon that allows file and printer sharing on an SMB network and provides authentication and authorization for SMB clients.</p> 111 112</dd> 113 114<dt>nmbd</dt> 115<dd> 116 117<p id="ch01-pgfId-949805">A daemon that looks after the Windows Internet Name Service (WINS), and assists with browsing.</p> 118 119</dd> 120</dl> 121 122<p>Samba is currently maintained and extended by a group of volunteers under the active supervision of Andrew Tridgell. Like the Linux operating system, Samba is considered <i>Open Source software </i>(OSS) by its authors, and is distributed under the GNU General Public License (GPL). Since its inception, development of Samba has been sponsored in part by the Australian National University, where Andrew Tridgell earned his Ph.D.<a href = "#footnote"> [1]</a> 123 In addition, some development has been sponsored by independent vendors such as Whistle and SGI. It is a true testament to Samba that both commercial and non-commercial entities are prepared to spend money to support an Open Source effort.</p> 124<blockquote><a name="footnote"> 125<p>[1] At the time of this printing, Andrew had completed his Ph.D. work and had joined San Francisco-based LinuxCare.</p> 126</blockquote> 127<p>Microsoft has also contributed materially by putting forward its definition of SMB and the Internet-savvy Common Internet File System (CIFS), as a public Request for Comments (RFC), a standards document. The CIFS protocol is Microsoft's renaming of future versions of the SMB protocol that will be used in Windows products - the two terms can be used interchangeably in this book. Hence, you will often see the protocol written as "SMB/CIFS."</p> </p></div></div></div></blockquote> 128<div> 129<center> 130<hr noshade size=1><TABLE WIDTH="515" BORDER="0" CELLSPACING="0" CELLPADDING="0"> 131<TR> 132<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172"> 133 134</td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171"> 135<A CLASS="book" HREF="index.html" TITLE=""> 136<IMG SRC="gifs/txthome.gif" ALT="" BORDER="0"></a></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172"> 137<A CLASS="sect1" HREF="ch01_02.html" TITLE="1.2 What Can Samba Do For Me?"> 138<IMG SRC="gifs/txtnexta.gif" ALT="Next: 1.2 What Can Samba Do For Me?" BORDER="0"></a></td></tr><TR> 139 140<TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171"> 141<A CLASS="index" HREF="inx.html" TITLE="Book Index"> 142<IMG SRC="gifs/index.gif" ALT="Book Index" BORDER="0"></a></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172"> 1431.1 Learning Samba</td></tr></table><hr noshade size=1></center> 144</div> 145 146<!-- End of sample chapter --> 147<CENTER> 148<FONT SIZE="1" FACE="Verdana, Arial, Helvetica"> 149<A HREF="http://www.oreilly.com/"> 150<B>O'Reilly Home</B></A> <B> | </B> 151<A HREF="http://www.oreilly.com/sales/bookstores"> 152<B>O'Reilly Bookstores</B></A> <B> | </B> 153<A HREF="http://www.oreilly.com/order_new/"> 154<B>How to Order</B></A> <B> | </B> 155<A HREF="http://www.oreilly.com/oreilly/contact.html"> 156<B>O'Reilly Contacts<BR></B></A> 157<A HREF="http://www.oreilly.com/international/"> 158<B>International</B></A> <B> | </B> 159<A HREF="http://www.oreilly.com/oreilly/about.html"> 160<B>About O'Reilly</B></A> <B> | </B> 161<A HREF="http://www.oreilly.com/affiliates.html"> 162<B>Affiliated Companies</B></A><p> 163<EM>© 1999, O'Reilly & Associates, Inc.</EM> 164</FONT> 165</CENTER> 166</BODY> 167</html> 168