Home > Store

Official Samba-3 HOWTO and Reference Guide, The

Register your product to gain access to bonus material or receive a coupon.

Official Samba-3 HOWTO and Reference Guide, The

Premium Website

  • Sorry, this book is no longer in print.
Not for Sale


  • Copyright 2004
  • Edition: 1st
  • Premium Website
  • ISBN-10: 0-13-145355-6
  • ISBN-13: 978-0-13-145355-5

"The breadth of technical information provided in this book ensures that even the most demanding of administrators will find something they need."
--Andrew Tridgell, President of the Samba Team and the original author of Samba

The practical, authoritative, step-by-step guide to cutting IT costs with Samba-3!

This is the definitive guide to using Samba-3 in production environments. It begins with the immense amount of HOWTO information published by the Samba Team and volunteers around the world . . . but that's just the beginning. The book's Samba Team editors have organized and edited this material around the practical needs of working Windows(R) administrators. UNIX(R)/Linux administrators will find all the answers they need as well.

Whether you're deploying Samba for the first time, integrating Samba into a Windows 200x Active Directory environment, migrating from NT 4 or Samba 2.x, or using Samba in a UNIX/Linux environment, you'll find step-by-step solutions, carefully edited for accuracy, practicality, and clarity. You'll learn all you need to make intelligent deployment decisions, get running fast, and use Samba-3's powerful new features to maximize performance and minimize cost.

Step-by-step installation techniques and proven configurations that work "right out of the box."

  • Essential Samba-3 information that leverages your Windows networking knowledge
  • Detailed coverage of Samba-3's powerful new user/machine account management, network browsing, and mapping capabilities
  • Authoritative explanations of advanced features such as interdomain trusts and loadable VFS file system drivers
  • Clear information on how Samba-3 handles Windows desktop/user policies and profiles
  • Practical techniques for optimizing network printing
  • Specific guidance for migration from Windows NT 4 or Samba 2.x
  • Troubleshooting techniques that draw on the knowledge of the entire Samba community


Related Article

Samba Team Co-Founder John Terpstra Talks About Samba 3


Untitled Document To facilitate your work with the resources mentioned in the text, below please find links to some of the Web-based references mentioned throughout the book.

http://www.samba.org/ Samba is an Open Source/Free Software suite that provides seamless file and print services to SMB/CIFS clients. Samba is freely available under the GNU General Public License.

http://www.cups.org/ The Common UNIX Printing System ("CUPS") is a cross-platform printing solution for all UNIX environments.

http://www.kde.org/ KDE is a powerful Open Source graphical desktop environment for Unix workstations. It combines ease of use, contemporary functionality, and outstanding graphical design with the technological superiority of the Unix operating system

http://sourceforge.net/ SourceForge.net is the world's largest Open Source software development website, with the largest repository of Open Source code and applications available on the Internet.

http://msdn.microsoft.com/ The Microsoft Developer Network (MSDN) is a set of online and offline services designed to help developers write applications using Microsoft products and technologies.

http://support.microsoft.com/ Microsoft's help and support centers.

http://www.linuxprinting.org/ LinuxPrinting.org provides resources to help with printing under free operating systems like GNU/Linux and the BSDs or under commercial UNIX-like systems such as Solaris and OS X.

http://www.easysw.com/printpro/ Cross-platform printing software.

http://www-124.ibm.com/linux/ IBM's Linux Technology Center.

http://publibn.boulder.ibm.com/ Information on accesssing IBM Software News Groups.

http://www.mandrakesoft.com/ MandrakeSoft, publisher of the popular Mandrake Linux operating system.

http://www.redhat.com/docs/manuals/enterprise/RHEL-AS-2.1-Manual/cluster-manager/ The Red Hat Cluster Manager Installation and Administration Guide.

Sample Content

Online Sample Chapter

Samba-3 Server Types and Security Modes

Downloadable Sample Chapter

Download the Sample Chapter related to this title.

Table of Contents




List Of Figures.

List Of Tables.

Preface and Introduction.


1. How to Install and Test Samba.

Obtaining and Installing Samba. Configuring Samba (smb.conf ). List Shares Available on the Server. Connect with a UNIX Client. Connect from a Remote SMB Client. What If Things Don't Work? Common Errors.

2. Fast Start: Cure for Impatience.

Features and Benefits. Description of Example Sites. Worked Examples.


3. Server Types and Security Modes.

Features and Benefits. Server Types. Samba Security Modes. Password Checking. Common Errors.

4. Domain Control.

Features and Benefits. Basics of Domain Control. Domain Control — Example Configuration. Samba ADS Domain Control. Domain and Network Logon Configuration. Common Errors.

5. Backup Domain Control.

Features and Benefits. Essential Background Information. Backup Domain Controller Configuration. Common Errors.

6. Domain Membership.

Features and Benefits. MS Windows Workstation/Server Machine Trust Accounts. Domain Member Server. Samba ADS Domain Membership. Sharing User ID Mappings between Samba Domain Members. Common Errors.

7. Stand-Alone Servers.

Features and Benefits. Background. Example Configuration. Common Errors.

8. MS Windows Network Configuration Guide.

Features and Benefits. Technical Details. Common Errors.


9. Network Browsing.

Features and Benefits. What Is Browsing? Discussion. How Browsing Functions. WINS — The Windows Internetworking Name Server. Helpful Hints. Technical Overview of Browsing. Common Errors.

10. Account Information Databases.

Features and Benefits. Technical Information. Account Management Tools. Password Backends. Common Errors.

11. Group Mapping — MS Windows and UNIX.

Features and Benefits. Discussion. Configuration Scripts. Common Errors.

12. File, Directory and Share Access Controls.

Features and Benefits. File System Access Controls. Share Definition Access Controls. Access Controls on Shares. MS Windows Access Control Lists and UNIX Interoperability. Common Errors.

13. File and Record Locking.

Features and Benefits. Discussion. Samba Opportunistic Locking Control. MS Windows Opportunistic Locking and Caching Controls. Persistent Data Corruption. Common Errors. Additional Reading.

14. Securing SAMBA.

Introduction. Features and Benefits. Technical Discussion of Protective Measures and Issues. Upgrading Samba. Common Errors.

15. InterDomain Trust Relationships.

Features and Benefits. Trust Relationship Background. Native MS Windows NT4 Trusts Configuration. Configuring Samba NT-Style Domain Trusts. NT4-Style Domain Trusts with Windows 2000. Common Errors.

16. Hosting A Microsoft Distributed File System Tree on SAMBA.

Features and Benefits. Common Errors.

17. Classical Printing Support.

Features and Benefits. Technical Introduction. Simple Print Configuration. Extended Printing Configuration. Printing Developments Since Samba-2.2. Installing Drivers into [print$]. Client Driver Installation Procedure. Other Gotchas. The Imprints Toolset. Adding Network Printers without User Interaction. The addprinter Command. Migration of Classical Printing to Samba. Publishing Printer Information in Active Directory or LDAP. Common Errors.

18. CUPS Printing Support.

Introduction. Basic CUPS Support Configuration. Advanced Configuration. Advanced Intelligent Printing with PostScript Driver Download. The CUPS Filtering Architecture. Network Printing (Purely Windows). Network Printing (Windows Clients — UNIX/Samba Print Servers). Network PostScript RIP: CUPS Filters on Server — Clients Use PostScript Driver with CUPS-PPDs. Windows Terminal Servers (WTS) as CUPS Clients. Configuring CUPS for Driver Download. Installing PostScript Driver Files Manually Using rpcclient. The Printing *.tdb Files. CUPS Print Drivers from Linuxprinting.org. Page Accounting with CUPS. Additional Material. Auto-Deletion or Preservation of CUPS Spool Files. Printing from CUPS to Windows Attached Printers. More CUPS-Filtering Chains. Common Errors. Overview of the CUPS Printing Processes.

19. Stackable VFS Modules.

Features and Benefits. Discussion. Included Modules. VFS Modules Available Elsewhere.

20. Winbind: Use of Domain Accounts.

Features and Benefits. Introduction. What Winbind Provides. How Winbind Works. Installation and Configuration. Conclusion. Common Errors.

21. Advanced Network Management.

Features and Benefits. Remote Server Administration. Remote Desktop Management. Network Logon Script Magic.

22. System and Account Policies.

Features and Benefits. Creating and Managing System Policies. Managing Account/User Policies. Management Tools. System Startup and Logon Processing Overview. Common Errors.

23. Desktop Profile Management.

Features and Benefits. Roaming Profiles. Mandatory Profiles. Creating and Managing Group Profiles. Default Profile for Windows Users. Common Errors.

24. PAM-Based Distributed Authentication.

Features and Benefits. Technical Discussion. Common Errors.

25. Integrating MS Windows Networks With SAMBA.

Features and Benefits. Background Information. Name Resolution in a Pure UNIX/Linux World. Name Resolution as Used within MS Windows Networking. Common Errors.


Features and Benefits. What Are Charsets and Unicode? Samba and Charsets. Conversion from Old Names. Japanese Charsets. Common Errors.

27. Backup Techniques.

Features and Benefits. Discussion of Backup Solutions.

28. High Availability.

Features and Benefits. Technical Discussion.


29. Upgrading from SAMBA-2.X TO SAMBA-3.0.0.

Quick Migration Guide. New Features in Samba-3. Configuration Parameter Changes. New Functionality.

30. Migration From NT4 PDC to SAMBA-3 PDC.

Planning and Getting Started. Migration Options.

31. SWAT — The SAMBA Web Administration Tool.

Features and Benefits. Guidelines and Technical Tips. Overview and Quick Tour.


32. The SAMBA Checklist.

Introduction. Assumptions. The Tests.

33. Analyzing and Solving SAMBA Problems.

Diagnostics Tools. Useful URLs. Getting Mailing List Help. How to Get Off the Mailing Lists.

34. Reporting Bugs.

Introduction. General Information. Debug Levels. Internal Errors. Attaching to a Running Process. Patches.

35. How to Compile SAMBA.

Access Samba Source Code via CVS. Accessing the Samba Sources via rsync and ftp. Verifying Samba's PGP Signature. Building the Binaries. Starting the smbd and nmbd.

36. Portability.

HPUX. SCO UNIX. DNIX. Red Hat Linux. AIX. Solaris.

37. SAMBA and Other CIFS Clients.

Macintosh Clients. OS2 Client. Windows for Workgroups. Windows 95/98. Windows 2000 Service Pack 2. Windows NT 3.1.

38. SAMBA Performance Tuning.

Comparisons. Socket Options. Read Size. Max Xmit. Log Level. Read Raw. Write Raw. Slow Logins. Client Tuning. Samba Performance Problem Due to Changing Linux Kernel. Corrupt tdb Files.

39. DNS and DHCP Configuration Guide.

Features and Benefits. Example Configuration.


Appendix A: Manual Pages.

smb.conf. nmblookup. rpcclient. smbcacls. smbclient. net. nmbd. pdbedit. smbcquotas. smbd. smbpasswd. smbpasswd. smbstatus. smbtree. testparm. wbinfo. winbindd.

Appendix B: The GNU General Public License.
Subject Index.


Untitled Document A man's gift makes room for him before great men. Gifts are like hooks that can catch hold of the mind taking it beyond the reach of forces that otherwise might constrain it. -- Anon.

This is a book about Samba. It is a tool, a derived work of the labors of many and of the diligence and goodwill of more than a few. This book contains material that has been contributed in a persistent belief that each of us can add value to our neighbors as well as to those who will follow us.

This book is designed to meet the needs of the Microsoft network administrator. UNIX administrators will benefit from this book also, though they may complain that it is hard to find the information they think they need. So if you are a Microsoft certified specialist, this book should meet your needs rather well. If you are a UNIX or Linux administrator, there is no need to feel badly you should have no difficulty finding answers to your current concerns also.

What Is Samba?

Samba is a big, complex project. The Samba project is ambitious and exciting. The team behind Samba is a group of some thirty individuals who are spread the world over and come from an interesting range of backgrounds. This team includes scientists, engineers, programmers, business people, and students.

Team members were drawn into active participation through the desire to help deliver an exciting level of transparent interoperability between Microsoft Windows and the non-Microsoft information technology world.

The slogan that unites the efforts behind the Samba project says: Samba, Opening Windows to a Wider World! The goal behind the project is one of removing barriers to interoperability.

Samba provides file and print services for Microsoft Windows clients. These services may be hosted off any TCP/IP-enabled platform. The original deployment platforms were UNIX and Linux, though today it is in common use across a broad variety of systems.

The Samba project includes not only an impressive feature set in file and print serving capabilities, but has been extended to include client functionality, utilities to ease migration to Samba, tools to aid interoperability with Microsoft Windows, and adminstration tools.

The real people behind Samba are users like you. You have inspired the developers (the Samba Team) to do more than any of them imagined could or should be done. User feedback drives Samba development. Samba-3 in particular incorporates a huge amount of work done as a result of user requests, suggestions and direct code contributions.

Why This Book?

There is admittedly a large number of Samba books on the market today and each book has its place. Despite the apparent plethora of books, Samba as a project continues to receive much criticism for failing to provide sufficient documentation. Samba is also criticized for being too complex and too difficult to configure. In many ways this is evidence of the success of Samba as there would be no complaints if it was not successful.

The Samba Team members work predominantly with UNIX and Linux, so it is hardly surprising that existing Samba documentation should reflect that orientation. The original HOWTO text documents were intended to provide some tips, a few golden nuggets, and if they helped anyone then that was just wonderful. But the HOWTOs lacked structure and context. They were isolated snapshots of information that were written to pass information on to someone else who might benefit. They reflected a need to transmit more information that could be conveniently put into manual pages.

The original HOWTO documents were written by different authors. Most HOWTO documents are the result of feedback and contributions from numerous authors. In this book we took care to preserve as much original content as possible. As you read this book you will note that chapters were written by multiple authors, each of whom has his own style. This demonstrates the nature of the Open Source software development process.

Out of the original HOWTO documents sprang a collection of unoffical HOWTO documents that are spread over the Internet. It is sincerely intended that this work will not replace the valuable unofficial HOWTO work that continues to flourish. If you are involved in unofficial HOWTOs then please continue your work!

Those of you who have dedicated your labors to the production of unofficial HOWTOs, to Web page information regarding Samba, or to answering questions on the mailing lists or elsewhere, may be aware that this is a labor of love. We would like to know about your contribution and willingly receive the precious perls of wisdom you have collected. Please email your contribution to John H. Terpstra (jht@samba.org).

As a service to other users we will gladly adopt material that is technically accurate.

Existing Samba books are largely addressed to the UNIX administrator. From the perspective of this target group the existing books serve an adequate purpose, with one exception - now that Samba-3 is out they need to be updated!

This book, the Official Samba-3 HOWTO and Reference Guide, includes the Samba-HOWTO-Collection.pdf that ships with Samba. These documents have been written with a new design intent and purpose.

Over the past two years many Microsoft network administrators have adopted Samba and have become interested in its deployment. Their information needs are very different from that of the UNIX administrator. This book has been arranged and the information presented from the perspective of someone with previous Microsoft Windows network administrative training and experience.

Book Structure and Layout

This book is presented in six parts:

General Installation

Designed to help you get Samba-3 running quickly. The Fast Start chapter is a direct response to requests from Microsoft network administrators for some sample configurations that just work.

Server Configuration Basics

The purpose of this section is to aid the transition from existing Microsoft Windows network knowledge to Samba terminology and norms. The chapters in this part each cover the installation of one type of Samba server.

Advanced Configuration

The mechanics of network browsing have long been the Achilles heel of all Microsoft Windows users. Samba-3 introduces new user and machine account management facilities, a new way to map UNIX groups and Windows groups, Interdomain trusts, new loadable file system drivers (VFS), and more. New with this document is expanded printing documentation, as well as a wealth of information regarding desktop and user policy handling, use of desktop profiles, and techniques for enhanced network integration. This section makes up the core of the book. Read and enjoy.

Migration and Updating

A much requested addition to the book is information on how to migrate from Microsoft Windows NT4 to Samba-3, as well as an overview of what the issues are when moving from Samba-2.x to Samba-3.


This short section should help you when all else fails.


Here you will find a collection of things that are either too peripheral for most users, or are a little left of field to be included in the main body of information.

Welcome to Samba-3 and the first published document to help you and your users to enjoy a whole new world of interoperability between Microsoft Windows and the rest of the world.


Download the Index file related to this title.


Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information

To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.


Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.


If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information

Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.


This site is not directed to children under the age of 13.


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information

If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information

Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents

California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure

Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact

Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice

We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020