Using Samba, 2Nd Edition Table of Contents
Total Page:16
File Type:pdf, Size:1020Kb
file:///D|/Linux/Samba/using_samba_2ed/toc.html Using Samba, 2nd Edition By Jay Ts, Robert Eckstein, and David Collier- Brown 2nd Edition, February 2003 O'Reilly & Associates, ISBN: 0-596-00256-4 www.oreilly.com/catalog/samba2/ Table of Contents Preface 1. Learning the Samba What Is Samba? What Can Samba Do for Me? Getting Familiar with an SMB Network An Introduction to the SMB Protocol Windows Workgroups and Domains What's New in Samba 2.2? What's New in Samba 3.0? What Can Samba Do? An Overview of the Samba Distribution How Can I Get Samba? 2. Installing Samba on a Unix System Bundled Versions Downloading the Samba Distribution Configuring Samba Compiling and Installing Samba Enabling SWAT A Basic Samba Configuration File Firewall Configuration Starting the Samba Daemons Testing the Samba Daemons 3. Configuring Windows Clients file:///D|/Linux/Samba/using_samba_2ed/toc.html (1 of 4) [26/9/2003 12:10:16] file:///D|/Linux/Samba/using_samba_2ed/toc.html Windows Networking Concepts Setting Up Windows 95/98/Me Computers Setting Up Windows NT 4.0 Computers Setting Up Windows 2000 Computers Setting Up Windows XP Computers 4. Windows NT Domains Samba as the Primary Domain Controller Adding Computer Accounts Configuring Windows Clients for Domain Logons Logon Scripts Roaming Profiles System Policies Samba as a Domain Member Server Windows NT Domain Options 5. Unix Clients Sharing Files on Windows 95/98/Me Sharing Files on Windows NT/2000/XP smbclient smbfs smbsh smbutil and mount_smbfs 6. The Samba Configuration File The Samba Configuration File Special Sections Configuration Options Server Configuration Disk Share Configuration Networking Options with Samba Virtual Servers Logging Configuration Options 7. Name Resolution and Browsing Name Resolution Browsing 8. Advanced Disk Shares Filesystem Differences File Permissions and Attributes on MS-DOS and Unix Windows NT/2000/XP ACLs file:///D|/Linux/Samba/using_samba_2ed/toc.html (2 of 4) [26/9/2003 12:10:16] file:///D|/Linux/Samba/using_samba_2ed/toc.html Name Mangling and Case Locks and Oplocks Connection Scripts Microsoft Distributed Filesystems Working with NIS 9. Users and Security Users and Groups Controlling Access to Shares Authentication of Clients Passwords Authentication with winbind 10. Printing Sending Print Jobs to Samba Printing to Windows Printers 11. Additional Samba Information Time Synchronization Magic Scripts Internationalization Windows Messenger Service Miscellaneous Options 12. Troubleshooting Samba The Tool Box The Fault Tree Extra Resources Appendix A. Example Configuration Files Appendix B. Samba Configuration Option Quick Reference Appendix C. Summary of Samba Daemons and Commands Appendix D. Downloading Samba with CVS Appendix E. Configure Options Appendix F. Running Samba on Mac OS X Server file:///D|/Linux/Samba/using_samba_2ed/toc.html (3 of 4) [26/9/2003 12:10:16] file:///D|/Linux/Samba/using_samba_2ed/toc.html Appendix G. GNU Free Documentation License Index file:///D|/Linux/Samba/using_samba_2ed/toc.html (4 of 4) [26/9/2003 12:10:16] file:///D|/Linux/Samba/using_samba_2ed/ch00.html Preface You are reading a book about Samba, a software suite that networks Windows, Unix, and other operating systems using Windows' native networking protocol. Samba allows Unix servers to offer Windows networking services by matching the filesystem and networking models of Unix to those of Windows. Samba acts as a bridge between the two systems, connecting the corresponding parts of their architectures and providing a translation wherever necessary. Bridging the gap between systems as dissimilar as Windows and Unix is a complex task, which Samba handles surprisingly well. To be a good Samba administrator, your abilities must parallel Samba's. For starters, you need to know basic Unix system and network administration and have a good understanding of Windows filesystems and networking fundamentals. In addition, you need to learn how Samba fills in the "gray area" between Unix and Windows. Once you know how everything fits together, you'll find it easy to configure a Samba server to provide your network with reliable and high-performance computational resources. Our job is to make all of that easier for you. We do this by starting out with a quick and yet comprehensive tour of Windows networking in Chapter 1, followed by tutorially-oriented Chapter 2 and Chapter 3, which tell you how to set up a minimal Samba server and configure Windows clients to work with it. Most likely, you will be surprised how quickly you can complete the required tasks. We believe that a hands-on approach is the most effective, and you can use the Samba server you build in Chapter 2 and Chapter 3 as a test system for trying out examples that we show and describe throughout the book. You can jump around from chapter to chapter if you like, but if you continue sequentially from Chapter 4 onward, by the time you finish the book you will have a well-configured production Samba server ready for use. All you have to do is add the appropriate support for your intended purpose as we explain how to use each feature. Audience for This Book This book is primarily intended for Unix administrators who need to support Windows clients on their network, as well as anyone who needs to access the resources of a Windows network environment from a Unix client. While we assume you are familiar with basic Unix system administration, we do not assume you are a networking expert. We do our best along the way to help out with file:///D|/Linux/Samba/using_samba_2ed/ch00.html (1 of 6) [26/9/2003 12:10:17] file:///D|/Linux/Samba/using_samba_2ed/ch00.html unusual definitions and terms. Furthermore, we don't assume that you are an expert in Microsoft Windows. We carefully explain all the essential concepts related to Windows networking, and we go through the Windows side of the installation task in considerable detail, providing examples for both Windows 95/98/Me and Windows NT/2000/XP, which are significantly different. For the Unix side, we give examples that work with common Unix operating systems, such as Linux, Solaris, FreeBSD, and Mac OS X. Organization Here is a quick description of each chapter: Chapter 1 introduces Samba and its capabilities, then describes the most important concepts of NetBIOS and SMB/CIFS networking. Finally, we give you a quick overview of the daemons and utilities that are included in the Samba distribution. Chapter 2 covers configuring, compiling, installing, setting up, and testing the Samba server on a Unix platform. Chapter 3 explains how to configure Microsoft Windows 95/98/Me and Windows NT/2000/XP clients to participate in an SMB network. Chapter 4 explains the ins and outs of Windows NT domains and how to configure Samba to work in a network set up as a Windows NT domain. Chapter 5 describes methods for accessing SMB shares on the network from Unix client systems. Chapter 6 gets you up to speed on the structure of the Samba configuration file and shows you how to take control of file-sharing services. Chapter 7 introduces name resolution, which is used to convert NetBIOS computer names into IP addresses, and browsing, the method used in SMB networking to find what resources are being shared on the network. Chapter 8 continues the discussion of file-sharing options, and covers more advanced functions such as permissions, access control lists, opportunistic locks, and setting up a Distributed filesystem tree. file:///D|/Linux/Samba/using_samba_2ed/ch00.html (2 of 6) [26/9/2003 12:10:17] file:///D|/Linux/Samba/using_samba_2ed/ch00.html Chapter 9 discusses how to set up Samba users, introduces you to Samba security, and shows you how to work with encrypted and nonencrypted passwords. Chapter 10 discusses printer setup for sharing Unix printers on the SMB network, and allowing Unix workstations to access SMB shared printers. Chapter 11 bundles several miscellaneous topics associated with Samba, such as configuring Samba shares for programmers and internationalization issues. Chapter 12 details what to do if you have problems installing Samba. This comparatively large chapter is packed with troubleshooting hints and strategies for identifying what is going wrong. Appendix A provides working examples of smb.conf files for use in configuring Samba for its more common applications. You can easily modify the examples for use in a wide variety of circumstances. Appendix B covers each option that can be used in the Samba configuration file. Appendix C is a quick reference that covers each server daemon and tool that make up the Samba suite. Appendix D explains how to download the latest development version of the Samba source code using CVS. Appendix E documents each option that can be used with the configure command before compiling the Samba source code. Appendix F includes directions for sharing files and printers with the Server edition of Mac OS X. Appendix G is the copyright license under which this book is published. Conventions Used in This Book The following font conventions are followed throughout this book: Italic file:///D|/Linux/Samba/using_samba_2ed/ch00.html (3 of 6) [26/9/2003 12:10:17] file:///D|/Linux/Samba/using_samba_2ed/ch00.html Filenames, file extensions, URLs, executable files, command options, and emphasis. Constant width Samba configuration options, computer names, user and group names, hostnames, domain names, other code that appears in the text, and command-line information that should be typed verbatim on the screen. Constant width bold Commands that are entered by the user and new configuration options that we wish to bring to the attention of the reader. Constant width italic Replaceable content in code and command-line information. TIP This designates a note, which is an important aside to the nearby text.