Cover image for Using Samba
Using Samba
Eckstein, Robert.
Personal Author:
Publication Information:
Sebastopol, CA : O'Reilly, [2000]

Physical Description:
xv, 398 pages : illustrations ; 24 cm + 1 computer optical disc (4 3/4 in.)
General Note:
"A file and print server for heterogeneous networks"--cover.
Title Subject:
Format :


Call Number
Material Type
Home Location
Item Holds
QA76.9.C55 E35 2000 TEXT Book and Software Set Central Closed Stacks

On Order



This book, which has been officially adopted by the Samba team under an open content license, is a comprehensive guide to Samba administration, including such recent additions as integration with Windows NT domains and the SWAT graphic configuration tool.Samba is a cross-platform triumph: it turns a Unix or Linux system into a file and print server for Microsoft Windows network clients. Now you can let users store their files (and even important executables) in a single place for easy sharing and backup, protected by Unix or NT security mechanisms, and still offer such transparent access that PC users don't even realize they're going to another system. The magic behind Samba is that it recognizes and speaks the SMB protocol developed by Microsoft for file and printer sharing on its own systems.Basic Samba configuration is simple, but you'll want to make sure your security settings are just right and find out about the full range of options (how do you like your filenames mangled?). Trouble-shooting, security, connectivity, performance, and logging are thoroughly covered with examples in this book.Samba is so robust, flexible, and secure that many people are choosing it over Windows NT for their file and print services. Furthermore, Samba is proving to be a necessity for the many organizations that have an existing Unix or Linux system and want to tie in PCs running Microsoft software. Samba is also open source software, licensed under the GNU General Public License.The authors present the most common configurations and problems in an easy-to-follow manner, along with instructions for getting the most out of Samba. Whether you're playing on one note or a full three-octave range, this book will give you an efficient and secure server. The included CD-ROM holds sources and ready-to-install binaries, plus other useful information.

Author Notes

Robert Eckstein, an editor at O'Reilly, works mostly on Java books (notably Java Swing) and is also responsible for the XML Pocket Reference and Webmaster in a Nutshell, 2nd Edition. In his spare time he has been known to provide online coverage for popular conferences. He also writes articles for JavaWorld magazine. Robert holds bachelor's degrees in computer science and communications from Trinity University. In the past, he has worked for the USAA insurance company and more recently spent four years with Motorola's cellular software division. He is the co-author of Using Samba.

David Collier-Brown is a consulting systems integrator, currently working for the performance and engineering group at Sun Opcom in Toronto. He is also co-author of the first edition of Using Samba. In his spare time he reads assiduously, keeps score for his wife's baseball team and, in the two weeks of the local summer, sails from Toronto's outer harbor.

Peter Kelly works on his own as a Systems Consultant in Toronto, Canada specializing in Internet and network security. Peter is currently finishing exams to be an MCSE, but prefers to work with Linux when he can. When Peter is not working, he enjoys playing golf and reading about security, networking, and Calvin & Hobbes.

Table of Contents

Prefacep. ix
1. Learning the Sambap. 1
What is Samba?p. 2
What Can Samba Do For Me?p. 3
Getting Familiar with a SMB/CIFS Networkp. 9
Microsoft Implementationsp. 18
An Overview of the Samba Distributionp. 27
How Can I Get Samba?p. 28
What's New in Samba 2.0?p. 28
And That's Not Allp. 30
2. Installing Samba on a Unix Systemp. 31
Downloading the Samba Distributionp. 32
Configuring Sambap. 34
Compiling and Installing Sambap. 38
A Basic Samba Configuration Filep. 41
Starting the Samba Daemonsp. 46
Testing the Samba Daemonsp. 49
3. Configuring Windows Clientsp. 50
Setting Up Windows 95/98 Computersp. 50
Setting Up Windows NT 4.0 Computersp. 63
An Introduction to SMB/CIFSp. 74
4. Disk Sharesp. 82
Learning the Samba Configuration Filep. 82
Special Sectionsp. 88
Configuration File Optionsp. 91
Server Configurationp. 93
Disk Share Configurationp. 96
Networking Options with Sambap. 101
Virtual Serversp. 106
Logging Configuration Optionsp. 108
5. Browsing and Advanced Disk Sharesp. 114
Browsingp. 114
Filesystem Differencesp. 127
File Permissions and Attributes on MS-DOS and Unixp. 135
Name Mangling and Casep. 143
Locks and Oplocksp. 149
6. Users, Security, and Domainsp. 155
Users and Groupsp. 155
Controlling Access to Sharesp. 158
Authentication Securityp. 164
Passwordsp. 171
Windows Domainsp. 184
Logon Scriptsp. 192
7. Printing and Name Resolutionp. 201
Sending Print Jobs to Sambap. 201
Printing to Windows Client Printersp. 213
Name Resolution with Sambap. 224
8. Additional Samba Informationp. 230
Supporting Programmersp. 230
Magic Scriptsp. 233
Internationalizationp. 234
WinPopup Messagesp. 237
Recently Added Optionsp. 238
Miscellaneous Optionsp. 240
Backups with smbtarp. 245
9. Troubleshooting Sambap. 250
The Tool Bagp. 250
The Fault Treep. 257
Extra Resourcesp. 291
A. Configuring Samba with SSLp. 295
B. Samba Performance Tuningp. 312
C. Samba Configuration Option Quick Referencep. 329
D. Summary of Samba Daemons and Commandsp. 359
E. Downloading Samba with CVSp. 378
F. Sample Configuration Filep. 379
Indexp. 385