1<HTML> 2<HEAD> 3<TITLE> 4[Chapter 2] 2.6 Testing the Samba Daemons</title><META NAME="DC.title" CONTENT=""><META NAME="DC.creator" CONTENT=""><META NAME="DC.publisher" CONTENT="O'Reilly & Associates, Inc."><META NAME="DC.date" CONTENT="1999-11-05T21:29:12Z"><META NAME="DC.type" CONTENT="Text.Monograph"><META NAME="DC.format" CONTENT="text/html" SCHEME="MIME"><META NAME="DC.source" CONTENT="" SCHEME="ISBN"><META NAME="DC.language" CONTENT="en-US"><META NAME="generator" CONTENT="Jade 1.1/O'Reilly DocBook 3.0 to HTML 4.0"></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<A CLASS="sect1" HREF="ch02_05.html" TITLE="2.5 Starting the Samba Daemons"> 35<IMG SRC="gifs/txtpreva.gif" ALT="Previous: 2.5 Starting the Samba Daemons" BORDER="0"></a></td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171"> 36<B> 37<FONT FACE="ARIEL,HELVETICA,HELV,SANSERIF" SIZE="-1"> 38<A CLASS="chapter" REL="up" HREF="ch02_01.html" TITLE="2. Installing Samba on a Unix System"> 39Chapter 2<br> 40Installing Samba on a Unix System</a></font></b></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172"> 41<A CLASS="chapter" HREF="ch03_01.html" TITLE="3. Configuring Windows Clients"> 42<IMG SRC="gifs/txtnexta.gif" ALT="Next: 3. Configuring Windows Clients" BORDER="0"></a></td></tr></table> <hr noshade size=1></center> 43</div> 44<blockquote> 45<div> 46<H2 CLASS="sect1"> 47<A CLASS="title" NAME="ch02-67898"> 482.6 Testing the Samba Daemons</a></h2><P CLASS="para">It's hard to believe, but we're nearly done with the Samba server setup. All that's left to do is to make sure that everything is working as we think it should. A convenient way to do this is to use the <I CLASS="filename"> smbclient</i> program to examine what the server is offering to the network. If everything is set up properly, you should be able to do the following:</p><PRE CLASS="programlisting"> 49<CODE CLASS="userinput"><B># smbclient -U% -L localhost</b></code> 50 51Added interface ip=192.168.220.100 bcast=192.168.220.255 nmask=255.255.255.0 52Domain=[SIMPLE] OS=[Unix] Server=[Samba 2.0.5a] 53 54 Sharename Type Comment 55 --------- ---- ------- 56 test Disk For testing only, please 57 IPC$ IPC IPC Service (Samba 2.0.5a) 58 59 Server Comment 60 --------- ------- 61 HYDRA Samba 2.0.5a 62 63 Workgroup Master 64 --------- ------- 65 SIMPLE HYDRA</pre><P CLASS="para"> 66If there is a problem, don't panic! Try to start the daemons manually, and check the system output or the debug files at <I CLASS="filename"> 67/usr/local/samba/var/log.smb</i> to see if you can determine what happened. If you think it may be a more serious problem, skip to <a href="ch07_01.html"><b>Chapter 7, <CITE CLASS="chapter"> Printing and Name Resolution</cite></b></a>, for help on troubleshooting the Samba daemons. </p><P CLASS="para"> 68If it worked, congratulations! You now have successfully set up the Samba server with a disk share. It's a simple one, but we can use it to set up and test the Windows 95 and NT clients in the next chapter. Then we will start making it more interesting by adding services such as home directories, printers, and security, and seeing how to integrate the server into a larger Windows domain. </p></div></blockquote> 69<div> 70<center> 71<hr noshade size=1><TABLE WIDTH="515" BORDER="0" CELLSPACING="0" CELLPADDING="0"> 72<TR> 73<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172"> 74<A CLASS="sect1" HREF="ch02_05.html" TITLE="2.5 Starting the Samba Daemons"> 75<IMG SRC="gifs/txtpreva.gif" ALT="Previous: 2.5 Starting the Samba Daemons" BORDER="0"></a></td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171"> 76<A CLASS="book" HREF="index.html" TITLE=""> 77<IMG SRC="gifs/txthome.gif" ALT="" BORDER="0"></a></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172"> 78<A CLASS="chapter" HREF="ch03_01.html" TITLE="3. Configuring Windows Clients"> 79<IMG SRC="gifs/txtnexta.gif" ALT="Next: 3. Configuring Windows Clients" BORDER="0"></a></td></tr><TR> 80<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172"> 812.5 Starting the Samba Daemons</td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171"> 82<A CLASS="index" HREF="inx.html" TITLE="Book Index"> 83<IMG SRC="gifs/index.gif" ALT="Book Index" BORDER="0"></a></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172"> 843. Configuring Windows Clients</td></tr></table><hr noshade size=1></center> 85</div> 86 87<!-- End of sample chapter --> 88<CENTER> 89<FONT SIZE="1" FACE="Verdana, Arial, Helvetica"> 90<A HREF="http://www.oreilly.com/"> 91<B>O'Reilly Home</B></A> <B> | </B> 92<A HREF="http://www.oreilly.com/sales/bookstores"> 93<B>O'Reilly Bookstores</B></A> <B> | </B> 94<A HREF="http://www.oreilly.com/order_new/"> 95<B>How to Order</B></A> <B> | </B> 96<A HREF="http://www.oreilly.com/oreilly/contact.html"> 97<B>O'Reilly Contacts<BR></B></A> 98<A HREF="http://www.oreilly.com/international/"> 99<B>International</B></A> <B> | </B> 100<A HREF="http://www.oreilly.com/oreilly/about.html"> 101<B>About O'Reilly</B></A> <B> | </B> 102<A HREF="http://www.oreilly.com/affiliates.html"> 103<B>Affiliated Companies</B></A><p> 104<EM>© 1999, O'Reilly & Associates, Inc.</EM> 105</FONT> 106</CENTER> 107</BODY> 108</html> 109