Testing the Samba Daemons
We’re
nearly done with the Samba server setup. All that’s
left to do is to make sure everything is working as we think it
should. A convenient way to do this is to use the
smbclient
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:
# /usr/local/samba/bin/smbclient -U% -L localhost
added interface ip=172.16.1.1 bcast=172.16.1.255 nmask=255.255.255.0
Domain=[METRAN] OS=[Unix] Server=[Samba 2.2.6]
Sharename Type Comment
--------- ---- -------
test Disk For testing only, please
IPC$ IPC IPC Service (Samba 2.2.6)
ADMIN$ Disk IPC Service (Samba 2.2.6)
Server Comment
--------- -------
TOLTEC Samba 2.2.6 on toltec
Workgroup Master
--------- -------
METRAN TOLTEC
If there is a problem, don’t panic! Try to start the
daemons manually, and check the system output or the debug files at
/usr/local/samba/var/log.smb
to see if you can determine what happened.
If you think it might be a more serious problem, skip to Chapter 12 for help on troubleshooting the Samba daemons.
If 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/98/Me and NT/2000/XP clients in the next chapter. Then we will start making it more interesting by adding services such as home directories, printers, and security, and by seeing how to integrate the server into a larger Windows domain.
Get Using Samba, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.