Home > Store

Official Samba-3 HOWTO and Reference Guide, The, 2nd Edition

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

Official Samba-3 HOWTO and Reference Guide, The, 2nd Edition


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



This is THE reference guide to explain the nuts-and-bolts of how Samba functions in a Windows networking environment.

° Expert information, straight from the source. Written by members of the Samba team

° Extensive and detailed explanation of the internal and external capabilities of Samba- 3.0.11 and latest releases (post 3.0.02)

° Samba-3 advanced features and how to use them. Just what you need to get the most out of your Samba-3 installation.


  • Copyright 2006
  • Dimensions: 7" x 9-1/4"
  • Pages: 944
  • Edition: 2nd
  • Book
  • ISBN-10: 0-13-188222-8
  • ISBN-13: 978-0-13-188222-5

Fully Updated to Reflect Major Improvements and Configuration Changes in Samba-3.0.11 through 3.0.20+!

You’ve deployed Samba: Now get the most out of it with today’s definitive guide to maximizing Samba performance, stability, reliability, and power in your production environment. Direct from members of the Samba Team, The Official Samba-3 HOWTO and Reference Guide, Second Edition, offers the most systematic and authoritative coverage of Samba’s advanced features and capabilities. It has been extensively updated to reflect major improvements in the Samba-3.0 series of releases and additional performance enhancements in Samba-3.0.20 and later.

Use this book to go far beyond basic deployment, leveraging all of Samba’s components, from directory services to remote administration. Use it to find practical optimization techniques for any environment, from the workgroup to the enterprise. Use it to find detailed guidance and best practices for troubleshooting and problem solving. And, if your background is in Windows networking, use this book to get up to speed rapidly with Samba network administration in Linux/UNIX environments.

Coverage includes
  • NEW! User Rights and Privileges features and their impact on default system behavior
  • NEW! Expanded LDAP capabilities, the new Winbind subsystem, and Samba’s improved ACL handling
  • NEW! Detailed coverage of the powerful Samba-3.x net local/remote administration utility
  • NEW! Comprehensive documentation of IDMAP functionality
  • NEW! Proven techniques for improving performance with large directories
  • NEW! Samba integration with Windows Server 2003 and the latest versions of Active Directory
  • Advanced techniques: interdomain trusts, loadable VFS file system drivers, distributed authentication, desktop profile management, CUPS printing, high availability, and more
  • Contains a dramatically improved, more-detailed index

Sample Content

Online Sample Chapter

Account Information Databases in Samba-3

Downloadable Sample Chapter

Download the Sample Chapter related to this title.

Table of Contents

List of Examples.

List of Figures.

List of Tables.





1. How to Install and Test Samba.

    1.1 Obtaining and Installing Samba

    1.2 Configuring Samba (smb.conf)

    1.3 List Shares Available on the Server

    1.4 Connect with a UNIX Client

    1.5 Connect from a Remote SMB Client

    1.6 Common Errors

2. Fast Start: Cure for Impatience.

    2.1 Features and Benefits

    2.2 Description of Example Sites

    2.3 Worked Examples


3. Server Types and Security Modes.

    3.1 Features and Benefits

    3.2 Server Types

    3.3 Samba Security Modes

    3.4 Password Checking

    3.5 Common Errors

4. Domain Control.

    4.1 Features and Benefits

    4.2 Single Sign-On and Domain Security

    4.3 Basics of Domain Control

    4.4 Domain Control: Example Configuration

    4.5 Samba ADS Domain Control

    4.6 Domain and Network Logon Configuration

    4.7 Common Errors

5. Backup Domain Control.

    5.1 Features and Benefits

    5.2 Essential Background Information

    5.3 Backup Domain Controller Configuration

    5.4 Common Errors

6. Domain Membership.

    6.1 Features and Benefits

    6.2 MS Windows Workstation/Server Machine Trust Accounts

    6.3 Domain Member Server

    6.4 Samba ADS Domain Membership

    6.5 Sharing User ID Mappings between Samba Domain Members

    6.6 Common Errors

7. Standalone Servers.

    7.1 Features and Benefits

    7.2 Background

    7.3 Example Configuration

    7.4 Common Errors

8. MS Windows Network Configuration Guide.

    8.1 Features and Benefits

    8.2 Technical Details

    8.3 Common Errors


9. Network Browsing.

    9.1 Features and Benefits

    9.2 What Is Browsing?

    9.3 Discussion

    9.4 How Browsing Functions

    9.5 WINS: The Windows Internetworking Name Server

    9.6 Helpful Hints

    9.7 Technical Overview of Browsing

    9.8 Common Errors

10. Account Information Databases.

    10.1 Features and Benefits

    10.2 Technical Information

    10.3 Account Management Tools

    10.4 Password Backends

    10.5 Common Errors

11. Group Mapping: MS Windows and Unix.

    11.1 Features and Benefits

    11.2 Discussion

    11.3 Configuration Scripts

    11.4 Common Errors

12. Remote and Local Management: the net Command.

    12.1 Overview

    12.2 Administrative Tasks and Methods

    12.3 UNIX and Windows Group Management

    12.4 UNIX and Windows User Management

    12.5 Administering User Rights and Privileges

    12.6 Managing Trust Relationships

    12.7 Managing Security Identifiers (SIDS)

    12.8 Share Management

    12.9 Controlling Open Files

    12.10 Session and Connection Management

    12.11 Printers and ADS

    12.12 Manipulating the Samba Cache

    12.13 Other Miscellaneous Operations

13. Identity Mapping (IDMAP).

    13.1 Samba Server Deployment Types and IDMAP

    13.2 Examples of IDMAP Backend Usage

14. User Rights and Privileges.

    14.1 Rights Management Capabilities

    14.2 The Administrator Domain SID

    14.3 Common Errors

15. File, Directory, and Share Access Controls.

    15.1 Features and Benefits

    15.2 File System Access Controls

    15.3 Share Definition Access Controls

    15.4 Access Controls on Shares

    15.5 MS Windows Access Control Lists and UNIX Interoperability

    15.6 Common Errors

16. File and Record Locking.

    16.1 Features and Benefits

    16.2 Discussion

    16.3 Samba Oplocks Control

    16.4 MS Windows Oplocks and Caching Controls

    16.5 Persistent Data Corruption

    16.6 Common Errors

    16.7 Additional Reading

17. Securint Samba.

    17.1 Introduction

    17.2 Features and Benefits

    17.3 Technical Discussion of Protective Measures and Issues

    17.4 Upgrading Samba

    17.5 Common Errors

18. Interdomain Trust Relationships.

    18.1 Features and Benefits

    18.2 Trust Relationship Background

    18.3 Native MS Windows NT4 Trusts Configuration

    18.4 Configuring Samba NT-Style Domain Trusts

    18.5 NT4-Style Domain Trusts with Windows 2000

    18.6 Common Errors

19. Hosting a Microsoft Distributed File System Tree.

    19.1 Features and Benefits

    19.2 Common Errors

20. Classical Printing Support.

    20.1 Features and Benefits

    20.2 Technical Introduction

    20.3 Simple Print Configuration

    20.4 Extended Printing Configuration

    20.5 Printing Developments Since Samba-2.2

    20.6 Installing Drivers into [print$]

    20.7 Client Driver Installation Procedure

    20.8 Other Gotchas

    20.9 The Imprints Toolset

    20.10 Adding Network Printers without User Interaction

    20.11 The addprinter Command

    20.12 Migration of Classical Printing to Samba

    20.13 Publishing Printer Information in Active Directory or LDAP

    20.14 Common Errors

21. CUPS Printing Support.

    21.1 Introduction

    21.2 Basic CUPS Support Configuration

    21.3 Advanced Configuration

    21.4 Advanced Intelligent Printing with PostScript Driver Download

    21.5 The CUPS Filtering Architecture

    21.6 Network Printing (Purely Windows)

    21.7 Network Printing (Windows Clients and UNIX/Samba Print Servers)

    21.8 Network PostScript RIP

    21.9 Windows Terminal Servers (WTS) as CUPS Clients

    21.10 Configuring CUPS for Driver Download

    21.11 Installing PostScript Driver Files Manually Using rpcclient

    21.12 The Printing .tdb Files

    21.13 CUPS Print Drivers from Linuxprinting.org

    21.14 Page Accounting with CUPS

    21.15 Additional Material

    21.16 Autodeletion or Preservation of CUPS Spool Files

    21.17 Printing from CUPS to Windows-Attached Printers

    21.18 More CUPS Filtering Chains

    21.19 Common Errors

    21.20 Overview of the CUPS Printing Processes

22. Stackable VFS Modules.

    22.1 Features and Benefits

    22.2 Discussion

    22.3 Included Modules

    22.4 VFS Modules Available Elsewhere

23. Winbind: Use of Domain Accounts.

    23.1 Features and Benefits

    23.2 Introduction

    23.3 What Winbind Provides

    23.4 How Winbind Works

    23.5 Installation and Configuration

    23.6 Conclusion

    23.7 Common Errors

24. Advanced Network Management.

    24.1 Features and Benefits

    24.2 Remote Server Administration

    24.3 Remote Desktop Management

    24.4 Network Logon Script Magic

25. System and Account Policies.

    25.1 Features and Benefits

    25.2 Creating and Managing System Policies

    25.3 Managing Account/User Policies

    25.4 Management Tools

    25.5 System Startup and Logon Processing Overview

    25.6 Common Errors

26. Desktop Profile Management.

    26.1 Features and Benefits

    26.2 Roaming Profiles

    26.3 Mandatory Profiles

    26.4 Creating and Managing Group Profiles

    26.5 Default Profile for Windows Users

    26.6 Common Errors

27. PAM-Based Distributed Authentication.

    27.1 Features and Benefits

    27.2 Technical Discussion

    27.3 Common Errors

28. Integrating MS Windows Networks with Samba.

    28.1 Features and Benefits

    28.2 Background Information

    28.3 Name Resolution in a Pure UNIX/Linux World

    28.4 Name Resolution as Used within MS Windows Networking

    28.5 Common Errors

29. Unicode/Charsets.

    29.1 Features and Benefits

    29.2 What Are Charsets and Unicode?

    29.3 Samba and Charsets

    29.4 Conversion from Old Names

    29.5 Japanese Charsets

    29.6 Common Errors

30. Backup Techniques.

    30.1 Features and Benefits

    30.2 Discussion of Backup Solutions

31. High Availability.

    31.1 Features and Benefits

    31.2 Technical Discussion

32. Handling Large Directories.

33. Advanced Configuration Techniques.

    33.1 Implementation


34. Upgrading from Samba-2.x to Samba-3.0.20.

    34.1 Quick Migration Guide

    34.2 New Features in Samba-3

    34.3 Configuration Parameter Changes

    34.4 New Functionality

35. Migration from NT4 PDC to Samba-3 PDC.

    35.1 Planning and Getting Started

    35.2 Migration Options

36. SWAT: The Samba Web Administration Tool.

    36.1 Features and Benefits

    36.2 Guidelines and Technical Tips

    36.3 Overview and Quick Tour


37. The Samba Checklist.

    37.1 Introduction

    37.2 Assumptions

    37.3 The Tests

38. Analyzing and Solving Samba Problems.

    38.1 Diagnostics Tools

    38.2 Useful URLs

    38.3 Getting Mailing List Help

    38.4 How to Get O_ the Mailing Lists

39. Reporting Bugs.

    39.1 Introduction

    39.2 General Information

    39.3 Debug Levels

    39.4 Internal Errors

    39.5 Attaching to a Running Process

    39.6 Patches


40. How to Compile Samba.

    40.1 Access Samba Source Code via Subversion

    40.2 Accessing the Samba Sources via rsync and ftp

    40.3 Verifying Samba's PGP Signature

    40.4 Building the Binaries

    40.5 Starting the smbd nmbd and winbindd

41. Portability.

    41.1 HPUX

    41.2 SCO UNIX

    41.3 DNIX

    41.4 Red Hat Linux

    41.5 AIX: Sequential Read Ahead

    41.6 Solaris

42. Samba and Other CIFS Clients.

    42.1 Macintosh Clients

    42.2 OS2 Client

    42.3 Windows for Workgroups

    42.4 Windows 95/98

    42.5 Windows 2000 Service Pack 2

    42.6 Windows NT 3.1

43. Samba Performance Tuning.

    43.1 Comparisons

    43.2 Socket Options

    43.3 Read Size

    43.4 Max Xmit

    43.5 Log Level

    43.6 Read Raw

    43.7 Write Raw

    43.8 Slow Logins

    43.9 Client Tuning

    43.10 Samba Performance Problem Due to Changing Linux Kernel

    43.11 Corrupt tdb Files

    43.12 Samba Performance is Very Slow

44. LDAP and Transport Layer Security.

    44.1 Introduction

    44.2 Configuring

    44.3 Testing

    44.4 Troubleshooting

45. Samba Support.

    45.1 Free Support

    45.2 Commercial Support

46. DNS and DHCP Configuration Guide.

    46.1 Features and Benefits

    46.2 Example Configuration

47. Manual Pages.

    47.1 net

    47.2 nmbd

    47.3 nmblookup

    47.4 pdbedit

    47.5 profiles

    47.6 rpcclient

    47.7 smbcacls

    47.8 smbclient

    47.9 smb.conf

    47.10 smbcquotas

    47.11 smbd

    47.12 smbpasswd

    47.13 smbpasswd

    47.14 smbstatus

    47.15 smbtree

    47.16 tdbbackup

    47.17 tdbdump

    47.18 testparm

    47.19 wbinfo

    47.20 winbindd

Appendix A: GNU General Public License.

    A.1 Preamble

    A.2 Terms and Conditions for Copying, Distribution and Modification

    A.3 How to Apply These Terms to Your New Programs


Subject Index.


Untitled Document

The editors wish to thank you for your decision to purchase this book. The Official Samba-3 HOWTO and Reference Guide is the result of many years of accumulation of information, feedback, tips, hints, and happy solutions.

Please note that this book is a living document, the contents of which are constantly being updated. We encourage you to contribute your tips, techniques, helpful hints, and your special insight into the Windows networking world to help make the next generation of this book even more valuable to Samba users.

We have made a concerted effort to document more comprehensively than has been done previously the information that may help you to better deploy Samba and to gain more contented network users.

This book provides example configurations, it documents key aspects of Microsoft Windows networking, provides in-depth insight into the important configuration of Samba-3, and helps to put all of these into a useful framework.

The most recent electronic versions of this document can be found at http://www.samba.org on the “Documentation” page.

Updates, patches and corrections are most welcome. Please email your contributions to any one of the following:

Jelmer Vernooij (jelmer@samba.org)
John H. Terpstra (jht@samba.org)
Gerald (Jerry) Carter (jerry@samba.org)

We wish to advise that only original and unencumbered material can be published. Please do not submit content that is not your own work unless proof of consent from the copyright holder accompanies your submission.


Download the Foreword file related to this title.


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