The Official Samba-3 2nd Ed.

HOWTO and Reference Guide

John H. Terpstra, Jelmer R. Vernooij

Publisher: Prentice Hall, 2006, 873 pages

ISBN: 0-13-188222-8

Keywords: System Administration

Last modified: March 25, 2022, 11:58 p.m.

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
  • Part I: General Installation
    Preparing Samba for Configuration
    1. How to Install and Test Samba
      1. Obtaining and Installing Samba
      2. Configuring Samba (smb.conf)
        1. Configuration File Syntax
        2. Starting Samba
        3. Example Configuration
          1. Test Your Config File with testparm
        4. SWAT
      3. List Shares Available on the Server
      4. Connect with a UNIX Client
      5. Connect from a Remote SMB Client
        1. What If Things Don't Work?
        2. Still Stuck?
      6. Common Errors
        1. Large Number of smbd Processes
        2. Error Message: open oplock ipc
        3. "The network name cannot be found"
    2. Fast Start: Cure for Impatience
      1. Features and Benefits
      2. Description of Example Sites
      3. Worked Examples
        1. Standalone Server
          1. Anonymous Read-Only Document Server
          2. Anonymous Read-Write Document Server
          3. Anonymous Print Server
          4. Secure Read-Write File and Print Server
        2. Domain Member Server
          1. Example Configuration
        3. Domain Controller
          1. Example: Engineering Office
          2. A Big Organization
  • Part II Server Configuration Basics
    First Steps in Server Configuration
    1. Server Types and Security Modes
      1. Features and Benefits
      2. Server Types
      3. Samba Security Modes
        1. User Level Security
          1. Example Configuration
        2. Share-Level Security
          1. Example Configuration
        3. Domain Security Mode (User-Level Security)
          1. Example Configuration
        4. ADS Security Mode (User-Level Security)
          1. Example Configuration
        5. Server Security (User Level Security)
          1. Example Configuration
      4. Password Checking
      5. Common Errors
        1. What Makes Samba a Server?
        2. What Makes Samba a Domain Controller?
        3. What Makes Samba a Domain Member?
        4. Constantly Losing Connections to Password Server
    2. Domain Control
      1. Features and Benefits
      2. Single Sign-On and Domain Security
      3. Basics of Domain Control
        1. Domain Controller Types
        2. Preparing for Domain Control
      4. Domain Control: Example Configuration
      5. Samba ADS Domain Control
      6. Domain and Network Logon Configuration
        1. Domain Network Logon Service
          1. Example Configuration
          2. The Special Case of MS Windows XP Home Edition
          3. The Special Case of Windows 9x/Me
        2. Security Mode and Master Browsers
      7. Common Errors
        1. “$” Cannot Be Included in Machine Name
        2. Joining Domain Fails Because of Existing Machine Account
        3. The System Cannot Log You On (C000019B)
        4. The Machine Trust Account Is Not Accessible
        5. Account Disabled
        6. Domain Controller Unavailable
        7. Cannot Log onto Domain Member Workstation After Joining Domain
    3. Backup Domain Control
      1. Features and Benefits
      2. Essential Background Information
        1. MS Windows NT4-style Domain Control
          1. Example PDC Configuration
          2. LDAP Configuration Notes
          3. Active Directory Domain Control
          4. What Qualifies a Domain Controller on the Network?
          5. How Does a Workstation find its Domain Controller?
            1. NetBIOS Over TCP/IP Enabled
            2. NetBIOS Over TCP/IP Disabled
      3. Backup Domain Controller Configuration
        1. Example Configuration
      4. Common Errors
        1. Machine Accounts Keep Expiring
        2. Can Samba Be a Backup Domain Controller to an NT4 PDC?
        3. How Do I Replicate the smbpasswd File?
        4. Can I Do This All with LDAP?
    4. Domain Membership
      1. Features and Benefits
      2. MS Windows Workstation/Server Machine Trust Accounts
        1. Manual Creation of Machine Trust Accounts
        2. Managing Domain Machine Accounts using NT4 Server Manager
        3. On-the-Fly Creation of Machine Trust Accounts
        4. Making an MS Windows Workstation or Server a Domain Member
          1. Windows 200x/XP Professional Client
          2. Windows NT4 Client
          3. Samba Client
      3. Domain Member Server
        1. Joining an NT4-type Domain with Samba-3
        2. Why Is This Better Than security = server?
      4. Samba ADS Domain Membership
        1. Configure smb.conf
        2. Configure /etc/krb5.conf
        3. Create the Computer Account
        4. Possible Errors
        5. Testing Server Setup
        6. Testing with smbclient
        7. Notes
      5. Sharing User ID Mappings between Samba Domain Members
      6. Common Errors
        1. Cannot Add Machine Back to Domain
        2. Adding Machine to Domain Fails
        3. I Can’t Join a Windows 2003 PDC
    5. Standalone Servers
      1. Features and Benefits
      2. Background
      3. Example Configuration
        1. Reference Documentation Server
        2. Central Print Serving
      4. Common Errors
    6. MS Windows Network Configuration Guide
      1. Features and Benefits
      2. Technical Details
        1. TCP/IP Configuration
          1. MS Windows XP Professional
          2. MS Windows 2000
          3. MS Windows Me
        2. Joining a Domain: Windows 2000/XP Professional
        3. Domain Logon Configuration: Windows 9x/Me
      3. Common Errors
  • Part III: Advanced Configuration
    Valuable Nuts and Bolts Information
    1. Network Browsing
      1. Features and Benefits
      2. What Is Browsing?
      3. Discussion
        1. NetBIOS over TCP/IP
        2. TCP/IP without NetBIOS
        3. DNS and Active Directory
      4. How Browsing Functions
        1. Configuring Workgroup Browsing
        2. Domain Browsing Configuration
        3. Forcing Samba to Be the Master
        4. Making Samba the Domain Master
        5. Note about Broadcast Addresses
        6. Multiple Interfaces
        7. Use of the Remote Announce Parameter
        8. Use of the Remote Browse Sync Parameter
      5. WINS: The Windows Internetworking Name Server
        1. WINS Server Configuration
        2. WINS Replication
        3. Static WINS Entries
      6. Helpful Hints
        1. Windows Networking Protocols
        2. Name Resolution Order
      7. Technical Overview of Browsing
        1. Browsing Support in Samba
        2. Problem Resolution
        3. Cross-Subnet Browsing
          1. Behavior of Cross-Subnet Browsing
      8. Common Errors
        1. Flushing the Samba NetBIOS Name Cache
        2. Server Resources Cannot Be Listed
        3. I Get an ”Unable to browse the network” Error
        4. Browsing of Shares and Directories is Very Slow
    2. Account Information Databases
      1. Features and Benefits
        1. Backward Compatibility Account Storage Systems
        2. New Account Storage Systems
      2. Technical Information
        1. Important Notes About Security
          1. Advantages of Encrypted Passwords
          2. Advantages of Non-Encrypted Passwords
        2. Mapping User Identifiers between MS Windows and UNIX
        3. Mapping Common UIDs/GIDs on Distributed Machines
        4. Comments Regarding LDAP
        5. Caution Regarding LDAP and Samba
        6. LDAP Directories and Windows Computer Accounts
      3. Account Management Tools
        1. The smbpasswd Tool
        2. The pdbedit Tool
          1. User Account Management
          2. Account Migration
      4. Password Backends
        1. Plaintext
        2. smbpasswd: Encrypted Password Database
        3. tdbsam
        4. ldapsam
          1. Supported LDAP Servers
          2. Schema and Relationship to the RFC 2307 posixAccount
          3. OpenLDAP Configuration
          4. Initialize the LDAP Database
          5. Configuring Samba
          6. Accounts and Groups Management
          7. Security and sambaSamAccount
          8. LDAP Special Attributes for sambaSamAccounts
          9. Example LDIF Entries for a sambaSamAccount
          10. Password Synchronization
          11. Using OpenLDAP Overlay for Password Syncronization
        5. MySQL
          1. Creating the Database
          2. Configuring
          3. Using Plaintext Passwords or Encrypted Password
          4. Getting Non-Column Data from the Table
        6. XML
      5. Common Errors
        1. Users Cannot Logon
        2. Users Being Added to the Wrong Backend Database
        3. Configuration of auth methods
    3. Group Mapping: MS Windows and UNIX
      1. Features and Benefits
      2. Discussion
        1. Warning: User Private Group Problems
        2. Nested Groups: Adding Windows Domain Groups to Windows Local Groups
        3. Important Administrative Information
        4. Applicable Only to Versions Earlier than 3.0.11
        5. Default Users, Groups, and Relative Identifiers
        6. Example Configuration
      3. Configuration Scripts
        1. Sample smb.conf Add Group Script
        2. Script to Configure Group Mapping
      4. Common Errors
        1. Adding Groups Fails
        2. Adding Domain Users to the Workstation Power Users Group
    4. Remote and Local Management: The net Command
      1. Overview
      2. Administrative Tasks and Methods
      3. UNIX and Windows Group Management
        1. Adding, Renaming, or Deletion of Group Accounts
          1. Adding or Creating a New Group
          2. Mapping Windows Groups to UNIX Groups
          3. Deleting a Group Account
          4. Rename Group Accounts
        2. Manipulating Group Memberships
        3. Nested Group Support
          1. Managing Nest Groups on Workstations from the Samba Server
      4. UNIX and Windows User Management
        1. Adding User Accounts
        2. Deletion of User Accounts
        3. Managing User Accounts
        4. User Mapping
      5. Administering User Rights and Privileges
      6. Managing Trust Relationships
        1. Machine Trust Accounts
        2. Interdomain Trusts
      7. Managing Security Identifiers (SIDS)
      8. Share Management
        1. Creating, Editing, and Removing Shares
        2. Creating and Changing Share ACLs
        3. Share, Directory, and File Migration
          1. Share Migration
          2. File and Directory Migration
          3. Share-ACL Migration
          4. Simultaneous Share and File Migration
          5. Printer Migration
      9. Controlling Open Files
      10. Session and Connection Management
      11. Printers and ADS
      12. Manipulating the Samba Cache
      13. Other Miscellaneous Operations
    5. Identity Mapping (IDMAP)
      1. Samba Server Deployment Types and IDMAP
        1. Standalone Samba Server
        2. Domain Member Server or Domain Member Client
        3. Primary Domain Controller
        4. Backup Domain Controller
      2. Examples of IDMAP Backend Usage
        1. Default Winbind TDB
          1. NT4-Style Domains (Includes Samba Domains)
          2. ADS Domains
        2. IDMAP RID with Winbind
        3. IDMAP Storage in LDAP Using Winbind
        4. IDMAP and NSS Using LDAP from ADS with RFC2307bis Schema Extension
          1. IDMAP, Active Directory, and MS Services for UNIX 3.5
          2. IDMAP, Active Directory and AD4UNIX
    6. User Rights and Privileges
      1. Rights Management Capabilities
      2. Using the “net rpc rights” Utility
      3. Description of Privileges
      4. Privileges Suppored by Windows 2000 Domain Controllers
      5. The Administrator Domain SID
      6. Common Errors
      7. What Rights and Privileges Will Permit Windows Client Administration?
    7. File, Directory, and Share Access Controls
      1. Features and Benefits
      2. File System Access Controls
        1. MS Windows NTFS Comparison with UNIX File Systems
        2. Managing Directories
        3. File and Directory Access Control
          1. Protecting Directories and Files from Deletion
      3. Share Definition Access Controls
        1. User- and Group-Based Controls
        2. File and Directory Permissions-Based Controls
        3. Miscellaneous Controls
      4. Access Controls on Shares
        1. Share Permissions Management
        2. Windows NT4 Workstation/Server
        3. Windows 200x/XP
      5. MS Windows Access Control Lists and UNIX Interoperability
        1. Managing UNIX Permissions Using NT Security Dialogs
        2. Viewing File Security on a Samba Share
        3. Viewing File Ownership
        4. Viewing File or Directory Permissions
          1. File Permissions
          2. Directory Permissions
        5. Modifying File or Directory Permissions
        6. Interaction with the Standard Samba “create mask” Parameters
        7. Interaction with the Standard Samba File Attribute Mapping
        8. Windows NT/200X ACLs and POSIX ACLs Limitations
          1. UNIX POSIX ACL Overview
          2. Mapping of Windows File ACLs to UNIX POSIX ACLs
          3. Mapping of Windows Directory ACLs to UNIX POSIX ACLs
      6. Common Errors
        1. Users Cannot Write to a Public Share
        2. File Operations Done as root with force user Set
        3. MS Word with Samba Changes Owner of File
    8. File and Record Locking
      1. Features and Benefits
      2. Discussion
        1. Opportunistic Locking Overview
          1. Exclusively Accessed Shares
          2. Multiple-Accessed Shares or Files
          3. UNIX or NFS Client-Accessed Files
          4. Slow and/or Unreliable Networks
          5. Multiuser Databases
          6. PDM Data Shares
          7. Beware of Force User
          8. Advanced Samba Oplocks Parameters
          9. Mission-Critical, High-Availability
      3. Samba Oplocks Control
        1. Example Configuration
          1. Disabling Oplocks
          2. Disabling Kernel Oplocks
      4. MS Windows Oplocks and Caching Controls
        1. Workstation Service Entries
        2. Server Service Entries
      5. Persistent Data Corruption
      6. Common Errors
        1. locking.tdb Error Messages
        2. Problems Saving Files in MS Office on Windows XP
        3. Long Delays Deleting Files over Network with XP SP1
      7. Additional Reading
    9. Securing Samba
      1. Introduction
      2. Features and Benefits
      3. Technical Discussion of Protective Measures and Issues
        1. Using Host-Based Protection
        2. User-Based Protection
        3. Using Interface Protection
        4. Using a Firewall
        5. Using IPC$ Share-Based Denials
        6. NTLMv2 Security
      4. Upgrading Samba
      5. Common Errors
        1. Smbclient Works on Localhost, but the Network Is Dead
        2. Why Can Users Access Other Users’ Home Directories?
    10. Interdomain Trust Relationships
      1. Features and Benefits
      2. Trust Relationship Background
      3. Native MS Windows NT4 Trusts Configuration
        1. Creating an NT4 Domain Trust
        2. Completing an NT4 Domain Trust
        3. Interdomain Trust Facilities
      4. Configuring Samba NT-Style Domain Trusts
        1. Samba as the Trusted Domain
        2. Samba as the Trusting Domain
      5. NT4-Style Domain Trusts with Windows 2000
      6. Common Errors
        1. Browsing of Trusted Domain Fails
        2. Problems with LDAP ldapsam and Older Versions of smbldap-tools
    11. Hosting a Microsoft Distributed File System Tree
      1. Features and Benefits
      2. Common Errors
        1. MSDFS UNIX Path Is Case-Critical
    12. Classical Printing Support
      1. Features and Benefits
      2. Technical Introduction
        1. Client to Samba Print Job Processing
        2. Printing-Related Configuration Parameters
      3. Simple Print Configuration
        1. Verifying Configuration with testparm
        2. Rapid Configuration Validation
      4. Extended Printing Configuration
        1. Detailed Explanation Settings
          1. The [global] Section
          2. The [printers] Section
          3. Any [my printer name] Section
          4. Print Commands
          5. Default UNIX System Printing Commands
          6. Custom Print Commands
      5. Printing Developments Since Samba-2.2
        1. Point’n’Print Client Drivers on Samba Servers
        2. The Obsoleted [printer$] Section
        3. Creating the [print$] Share
        4. [print$] Stanza Parameters
        5. The [print$] Share Directory
      6. Installing Drivers into [print$]
        1. Add Printer Wizard Driver Installation
        2. Installing Print Drivers Using rpcclient
          1. Identifying Driver Files
          2. Obtaining Driver Files from Windows Client [print$] Shares
          3. Installing Driver Files into [print$]
          4. smbclient to Confirm Driver Installation
          5. Running rpcclient with adddriver
          6. Checking adddriver Completion
          7. Check Samba for Driver Recognition
          8. Specific Driver Name Flexibility
          9. Running rpcclient with setdriver
      7. Client Driver Installation Procedure
        1. First Client Driver Installation
        2. Setting Device Modes on New Printers
        3. Additional Client Driver Installation
        4. Always Make First Client Connection as root or “printer admin”
      8. Other Gotchas
        1. Setting Default Print Options for Client Drivers
        2. Supporting Large Numbers of Printers
        3. Adding New Printers with the Windows NT APW
        4. Error Message: “Cannot connect under a different Name”
        5. Take Care When Assembling Driver Files
        6. Samba and Printer Ports
        7. Avoiding Common Client Driver Misconfiguration
      9. The Imprints Toolset
        1. What Is Imprints?
        2. Creating Printer Driver Packages
        3. The Imprints Server
        4. The Installation Client
      10. Adding Network Printers without User Interaction
      11. The addprinter Command
      12. Migration of Classical Printing to Samba
      13. Publishing Printer Information in Active Directory or LDAP
      14. Common Errors
        1. I Give My Root Password but I Do Not Get Access
        2. My Print Jobs Get Spooled into the Spooling Directory, but Then Get Lost
    13. CUPS Printing Support
      1. Introduction
        1. Features and Benefits
        2. Overview
      2. Basic CUPS Support Configuration
        1. Linking smbd with libcups.so
        2. Simple smb.conf Settings for CUPS
        3. More Complex CUPS smb.conf Settings
      3. Advanced Configuration
        1. Central Spooling vs. “Peer-to-Peer” Printing
        2. Raw Print Serving: Vendor Drivers on Windows Clients
        3. Installation of Windows Client Drivers
        4. Explicitly Enable “raw” Printing for application/octet-stream
        5. Driver Upload Methods
      4. Advanced Intelligent Printing with PostScript Driver Download
        1. GDI on Windows, PostScript on UNIX
        2. Windows Drivers, GDI, and EMF
        3. UNIX Printfile Conversion and GUI Basics
        4. PostScript and Ghostscript
        5. Ghostscript: The Software RIP for Non-PostScript Printers
        6. PostScript Printer Description (PPD) Specification
        7. Using Windows-Formatted Vendor PPDs
        8. CUPS Also Uses PPDs for Non-PostScript Printers
      5. The CUPS Filtering Architecture
        1. MIME Types and CUPS Filters
        2. MIME Type Conversion Rules
        3. Filtering Overview
          1. Filter Requirements
        4. Prefilters
        5. pstops
        6. pstoraster
        7. imagetops and imagetoraster
        8. rasterto [printers specific]
        9. CUPS Backends
        10. The Role of cupsomatic/foomatic
        11. The Complete Picture
        12. mime.convs
        13. “Raw” Printing
        14. application/octet-stream Printing
        15. PostScript Printer Descriptions for Non-PostScript Printers
        16. cupsomatic/foomatic-rip Versus Native CUPS Printing
        17. Examples for Filtering Chains
        18. Sources of CUPS Drivers/PPDs
        19. Printing with Interface Scripts
      6. Network Printing (Purely Windows)
        1. From Windows Clients to an NT Print Server
        2. Driver Execution on the Client
        3. Driver Execution on the Server
      7. Network Printing (Windows Clients and UNIX/Samba Print Servers)
        1. From Windows Clients to a CUPS/Samba Print Server
        2. Samba Receiving Job-Files and Passing Them to CUPS
      8. Network PostScript RIP
        1. PPDs for Non-PS Printers on UNIX
        2. PPDs for Non-PS Printers on Windows
      9. Windows Terminal Servers (WTS) as CUPS Clients
        1. Printer Drivers Running in “Kernel Mode” Cause Many Problems
        2. Workarounds Impose Heavy Limitations
        3. CUPS: A “Magical Stone”?
        4. PostScript Drivers with No Major Problems, Even in Kernel Mode
      10. Configuring CUPS for Driver Download
        1. cupsaddsmb: The Unknown Utility
        2. Prepare Your smb.conf for cupsaddsmb
        3. CUPS “PostScript Driver for Windows NT/200x/XP”
        4. Recognizing Different Driver Files
        5. Acquiring the Adobe Driver Files
        6. ESP Print Pro PostScript Driver for Windows NT/200x/XP
        7. Caveats to Be Considered
        8. Windows CUPS PostScript Driver Versus Adobe Driver
        9. Run cupsaddsmb (Quiet Mode)
        10. Run cupsaddsmb with Verbose Output
        11. Understanding cupsaddsmb
        12. How to Recognize If cupsaddsmb Completed Successfully
        13. cupsaddsmb with a Samba PDC
        14. cupsaddsmb Flowchart
        15. Installing the PostScript Driver on a Client
        16. Avoiding Critical PostScript Driver Settings on the Client
      11. Installing PostScript Driver Files Manually Using rpcclient
        1. A Check of the rpcclient man Page
        2. Understanding the rpcclient man Page
        3. Producing an Example by Querying a Windows Box
        4. Requirements for adddriver and setdriver to Succeed
        5. Manual Driver Installation in 15 Steps
        6. Troubleshooting Revisited
      12. The Printing *.tdb Files
        1. Trivial Database Files
        2. Binary Format
        3. Losing *.tdb Files
        4. Using tdbbackup
      13. CUPS Print Drivers from Linuxprinting.org
        1. foomatic-rip and Foomatic Explained
          1. 690 “Perfect” Printers
          2. How the Printing HOWTO Started It All
          3. Foomatic’s Strange Name
          4. cupsomatic, pdqomatic, lpdomatic, directomatic
          5. The Grand Unification Achieved
          6. Driver Development Outside
          7. Forums, Downloads, Tutorials, Howtos (Also for Mac OS X and Commercial UNIX)
          8. Foomatic Database-Generated PPDs
        2. foomatic-rip and Foomatic PPD Download and Installation
      14. Page Accounting with CUPS
        1. Setting Up Quotas
        2. Correct and Incorrect Accounting
        3. Adobe and CUPS PostScript Drivers for Windows Clients
        4. The page log File Syntax
        5. Possible Shortcomings
        6. Future Developments
        7. Other Accounting Tools
      15. Additional Material
      16. Autodeletion or Preservation of CUPS Spool Files
        1. CUPS Configuration Settings Explained
        2. Preconditions
        3. Manual Configuration
      17. Printing from CUPS to Windows-Attached Printers
      18. More CUPS Filtering Chains
      19. Common Errors
        1. Windows 9x/Me Client Can’t Install Driver
        2. “cupsaddsmb” Keeps Asking for Root Password in Never-ending Loop
        3. “cupsaddsmb” or “rpcclient addriver” Emit Error
        4. “cupsaddsmb” Errors
        5. Client Can’t Connect to Samba Printer
        6. New Account Reconnection from Windows 200x/XP Troubles
        7. Avoid Being Connected to the Samba Server as the Wrong User
        8. Upgrading to CUPS Drivers from Adobe Drivers
        9. Can’t Use “cupsaddsmb” on Samba Server, Which Is a PDC
        10. Deleted Windows 200x Printer Driver Is Still Shown
        11. Windows 200x/XP Local Security Policies
        12. Administrator Cannot Install Printers for All Local Users
        13. Print Change, Notify Functions on NT Clients
        14. Win XP-SP1
        15. Print Options for All Users Can’t Be Set on Windows 200x/XP
        16. Most Common Blunders in Driver Settings on Windows Clients
        17. cupsaddsmb Does Not Work with Newly Installed Printer
        18. Permissions on /var/spool/samba/ Get Reset After Each Reboot
        19. Print Queue Called “lp” Mishandles Print Jobs
        20. Location of Adobe PostScript Driver Files for “cupsaddsmb”
      20. Overview of the CUPS Printing Processes
    14. Stackable VFS Modules
      1. Features and Benefits
      2. Discussion
      3. Included Modules
        1. audit
        2. extd audit
          1. Configuration of Auditing
        3. fake perms
        4. recycle
        5. netatalk
        6. shadow copy
          1. Shadow Copy Setup
      4. VFS Modules Available Elsewhere
        1. DatabaseFS
        2. vscan
    15. Winbind: Use of Domain Accounts
      1. Features and Benefits
      2. Introduction
      3. What Winbind Provides
        1. Target Uses
        2. Handling of Foreign SIDs
      4. How Winbind Works
        1. Microsoft Remote Procedure Calls
        2. Microsoft Active Directory Services
        3. Name Service Switch
        4. Pluggable Authentication Modules
        5. User and Group ID Allocation
        6. Result Caching
      5. Installation and Configuration
        1. Introduction
        2. Requirements
        3. Testing Things Out
          1. Configure nsswitch.conf and the Winbind Libraries on Linux and Solaris
          2. NSS Winbind on AIX
          3. Configure smb.conf
          4. Join the Samba Server to the PDC Domain
          5. Starting and Testing the winbindd Daemon
          6. Fix the init.d Startup Scripts
          7. Configure Winbind and PAM
      6. Conclusion
      7. Common Errors
        1. NSCD Problem Warning
        2. Winbind Is Not Resolving Users and Groups
    16. Advanced Network Management
      1. Features and Benefits
      2. Remote Server Administration
      3. Remote Desktop Management
        1. Remote Management from NoMachine.Com
        2. Network Logon Script Magic
          1. Adding Printers without User Intervention
          2. Limiting Logon Connections
    17. System and Account Policies
      1. Features and Benefits
      2. Creating and Managing System Policies
        1. Windows 9x/ME Policies
        2. Windows NT4-Style Policy Files
          1. Registry Spoiling
        3. MS Windows 200x/XP Professional Policies
          1. Administration of Windows 200x/XP Policies
          2. Custom System Policy Templates
      3. Managing Account/User Policies
      4. Management Tools
        1. Samba Editreg Toolset
        2. Windows NT4/200x
        3. Samba PDC
      5. System Startup and Logon Processing Overview
      6. Common Errors
        1. Policy Does Not Work
    18. Desktop Profile Management
      1. Features and Benefits
      2. Roaming Profiles
        1. Samba Configuration for Profile Handling
          1. NT4/200x User Profiles
          2. Windows 9x/Me User Profiles
          3. Mixed Windows Windows 9x/Me and NT4/200x User Profiles
          4. Disabling Roaming Profile Support
        2. Windows Client Profile Configuration Information
          1. Windows 9x/Me Profile Setup
          2. Windows NT4 Workstation
          3. Windows 2000/XP Professional
        3. User Profile Hive Cleanup Service
        4. Sharing Profiles between Windows 9x/Me and NT4/200x/XP Workstations
        5. Profile Migration from Windows NT4/200x Server to Samba
          1. Windows NT4 Profile Management Tools
          2. Side Bar Notes
          3. moveuser.exe
          4. Get SID
      3. Mandatory Profiles
      4. Creating and Managing Group Profiles
      5. Default Profile for Windows Users
        1. MS Windows 9x/Me
          1. User Profile Handling with Windows 9x/Me
        2. MS Windows NT4 Workstation
        3. MS Windows 200x/XP
      6. Common Errors
        1. Configuring Roaming Profiles for a Few Users or Groups
        2. Cannot Use Roaming Profiles
        3. Changing the Default Profile
        4. Debugging Roaming Profiles and NT4-style Domain Policies
    19. PAM-Based Distributed Authentication
      1. Features and Benefits
      2. Technical Discussion
        1. PAM Configuration Syntax
          1. Anatomy of /etc/pam.d Entries
          2. Example System Configurations
            1. PAM: Original Login Config
            2. PAM: Login Using pam smbpass
          3. smb.conf PAM Configuration
          4. Remote CIFS Authentication Using winbindd.so
          5. Password Synchronization Using pam smbpass.so
            1. Password Synchronization Configuration
            2. Password Migration Configuration
            3. Mature Password Configuration
            4. Kerberos Password Integration Configuration
      3. Common Errors
        1. pam winbind Problem
        2. Winbind Is Not Resolving Users and Groups
    20. Integrating MS WINDOWS Networks with Samba
      1. Features and Benefits
      2. Background Information
      3. Name Resolution in a Pure UNIX/Linux World
        1. /etc/hosts
        2. /etc/resolv.conf
        3. /etc/host.conf
        4. /etc/nsswitch.conf
      4. Name Resolution as Used within MS Windows Networking
        1. The NetBIOS Name Cache
        2. The LMHOSTS File
        3. HOSTS File
        4. DNS Lookup
        5. WINS Lookup
      5. Common Errors
        1. Pinging Works Only One Way
        2. Very Slow Network Connections
        3. Samba Server Name-Change Problem
    21. UNICODE/Charsets
      1. Features and Benefits
      2. What Are Charsets and Unicode?
      3. Samba and Charsets
      4. Conversion from Old Names
      5. Japanese Charsets
        1. Basic Parameter Setting
        2. Individual Implementations
        3. Migration from Samba-2.2 Series
      6. Common Errors
        1. CP850.so Can’t Be Found
    22. Backup Techniques
      1. Features and Benefits
      2. Discussion of Backup Solutions
        1. BackupPC
        2. Rsync
        3. Amanda
        4. BOBS: Browseable Online Backup System
    23. High Availability
      1. Features and Benefits
      2. Technical Discussion
        1. The Ultimate Goal
        2. Why Is This So Hard?
          1. The Front-End Challenge
          2. Demultiplexing SMB Requests
          3. The Distributed File System Challenge
          4. Restrictive Constraints on Distributed File Systems
          5. Server Pool Communications
          6. Server Pool Communications Demands
          7. Required Modifications to Samba
        3. A Simple Solution
        4. High-Availability Server Products
        5. MS-DFS: The Poor Man’s Cluster
        6. Conclusions
    24. Handling Large Directories
    25. Advanced Configuration Techniques
      1. Implementation
        1. Multiple Server Hosting
        2. Multiple Virtual Server Personalities
        3. Multiple Virtual Server Hosting
  • Part IV: Migration and Updating
    1. Upgrading from Samba-2.X to Samba-3.0.20
      1. Quick Migration Guide
      2. New Features in Samba-3
      3. Configuration Parameter Changes
        1. Removed Parameters
        2. New Parameters
        3. Modified Parameters (Changes in Behavior)
      4. New Functionality
        1. Databases
        2. Changes in Behavior
        3. Passdb Backends and Authentication
        4. LDAP
          1. New Schema
          2. New Suffix for Searching
          3. IdMap LDAP Support
    2. Migration from NT4 PDC to Samba-3 PDC
      1. Planning and Getting Started
        1. Objectives
          1. Domain Layout
          2. Server Share and Directory Layout
          3. Logon Scripts
          4. Profile Migration/Creation
          5. User and Group Accounts
        2. Steps in Migration Process
      2. Migration Options
        1. Planning for Success
        2. Samba-3 Implementation Choices
    3. SWAT: The Samba Web Administration Tool
      1. Features and Benefits
      2. Guidelines and Technical Tips
        1. Validate SWAT Installation
          1. Locating the SWAT File
          2. Locating the SWAT Support Files
        2. Enabling SWAT for Use
        3. Securing SWAT through SSL
        4. Enabling SWAT Internationalization Support
      3. Overview and Quick Tour
        1. The SWAT Home Page
        2. Global Settings
        3. Share Settings
        4. Printers Settings
        5. The SWAT Wizard
        6. The Status Page
        7. The View Page
        8. The Password Change Page
  • Part V: Troubleshooting
    1. The Samba Checklist
      1. Introduction
      2. Assumptions
      3. The Tests
    2. Analyzing and Solving Samba Problems
      1. Diagnostics Tools
        1. Debugging with Samba Itself
        2. Tcpdump
        3. Ethereal
        4. The Windows Network Monitor
          1. Installing Network Monitor on an NT Workstation
          2. Installing Network Monitor on Windows 9x/Me
      2. Useful URLs
      3. Getting Mailing List Help
      4. How to Get Off the Mailing Lists
    3. Reporting Bugs
      1. Introduction
      2. General Information
      3. Debug Levels
        1. Debugging-Specific Operations
      4. Internal Errors
      5. Attaching to a Running Process
      6. Patches
  • Part VI: Reference Section
    1. How to Compile Samba
      1. Access Samba Source Code via Subversion
        1. Introduction
        2. Subversion Access to samba.org
          1. Access via SVNweb
          2. Access via Subversion
      2. Accessing the Samba Sources via rsync and ftp
      3. Verifying Samba’s PGP Signature
      4. Building the Binaries
        1. Compiling Samba with Active Directory Support
          1. Installing the Required Packages for Debian
          2. Installing the Required Packages for Red Hat Linux
          3. SuSE Linux Package Requirements
      5. Starting the smbd nmbd and winbindd
        1. Starting from inetd.conf
        2. Alternative: Starting smbd as a Daemon
          1. Starting Samba for Red Hat Linux
          2. Starting Samba for Novell SUSE Linux
    2. Portability
      1. HPUX
      2. SCO UNIX
      3. DNIX
      4. Red Hat Linux
      5. AIX: Sequential Read Ahead
      6. Solaris
        1. Locking Improvements
        2. Winbind on Solaris 9
    3. Samba and Other CIFS Clients
      1. Macintosh Clients
      2. OS2 Client
        1. Configuring OS/2 Warp Connect or OS/2 Warp 4
        2. Configuring Other Versions of OS/2
        3. Printer Driver Download for OS/2 Clients
      3. Windows for Workgroups
        1. Latest TCP/IP Stack from Microsoft
        2. Delete .pwl Files After Password Change
        3. Configuring Windows for Workgroups Password Handling
        4. Password Case Sensitivity
        5. Use TCP/IP as Default Protocol
        6. Speed Improvement
      4. Windows 95/98
        1. Speed Improvement
      5. Windows 2000 Service Pack 2
      6. Windows NT 3.1
    4. Samba Performance Tuning
      1. Comparisons
      2. Socket Options
      3. Read Size
      4. Max Xmit
      5. Log Level
      6. Read Raw
      7. Write Raw
      8. Slow Logins
      9. Client Tuning
      10. Samba Performance Problem Due to Changing Linux Kernel
      11. Corrupt tdb Files
      12. Samba Performance is Very Slow
    5. LDAP and Transport Layer Security
      1. Introduction
      2. Configuring
        1. Generating the Certificate Authority
        2. Generating the Server Certificate
        3. Installing the Certificates
      3. Testing
      4. Troubleshooting
    6. Samba Support
      1. Free Support
      2. Commercial Support
    7. DNS and DHCP Configuration Guide
      1. Features and Benefits
      2. Example Configuration
        1. Dynamic DNS
        2. DHCP Server
    8. Manual Pages
      1. net
      2. nmbd
      3. nmblookup
      4. pdbedit
      5. profiles
      6. rpcclient
      7. smbcacls
      8. smbclient
      9. smb.conf
      10. smbcquotas
      11. smbd
      12. smbpasswd
      13. smbpasswd
      14. smbstatus
      15. smbtree
      16. tdbbackup
      17. tdbdump
      18. testparm
      19. wbinfo
      20. winbindd
  • Appendix A: GNU GENERAL PUBLIC LICENSE
    1. Preamble
    2. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
      1. Section 0
      2. Section 1
      3. Section 2
      4. Section 3
      5. Section 4
      6. Section 5
      7. Section 6
      8. Section 7
      9. Section 8
      10. Section 9
      11. Section 10
      12. NO WARRANTY Section 11
      13. Section 12
    3. How to Apply These Terms to Your New Programs

Reviews

The Official Samba-3

Reviewed by Roland Buresund

Good ******* (7 out of 10)

Last modified: March 26, 2022, midnight

Probably more than you ever wanted to know about Samba. Very practical, but a bit too much info.

If you're into Samba, this is recommended.

Comments

There are currently no comments

New Comment

required

required (not published)

optional

required

captcha

required