Using Samba

Overview

This book is the comprehensive guide to Samba administration, officially adopted by the Samba Team. Wondering how to integrate Samba's authentication with that of a Windows domain? How to get Samba to serve Microsoft Dfs shares? How to share files on Mac OS X? These and a dozen other issues of interest to system administrators are covered. A whole chapter is dedicated to troubleshooting!

The range of this book knows few bounds. Using Samba takes you from basic installation and ...

See more details below
Paperback (Third Edition)
$32.00
BN.com price
(Save 28%)$44.99 List Price
Other sellers (Paperback)
  • All (24) from $4.96   
  • New (10) from $21.17   
  • Used (14) from $4.96   
Using Samba: A File & Print Server for Linux, Unix & Mac OS X

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$19.99
BN.com price
(Save 44%)$35.99 List Price

Overview

This book is the comprehensive guide to Samba administration, officially adopted by the Samba Team. Wondering how to integrate Samba's authentication with that of a Windows domain? How to get Samba to serve Microsoft Dfs shares? How to share files on Mac OS X? These and a dozen other issues of interest to system administrators are covered. A whole chapter is dedicated to troubleshooting!

The range of this book knows few bounds. Using Samba takes you from basic installation and configuration — on both the client and server side, for a wide range of systems — to subtle details of security, cross-platform compatibility, and resource discovery that make the difference between whether users see the folder they expect or a cryptic error message.

The current edition covers such advanced 3.x features as:

  • Integration with Active Directory and OpenLDAP
  • Migrating from Windows NT 4.0 domains to Samba
  • Delegating administrative tasks to non-root users
  • Central printer management
  • Advanced file serving features, such as making use of Virtual File System (VFS) plugins.

Samba is a cross-platform triumph: robust, flexible and fast, it turns a Unix or Linux system into a file and print server for Microsoft Windows network clients. This book will help you make your file and print sharing as powerful and efficient as possible. The authors delve into the internals of the Windows activities and protocols to an unprecedented degree, explaining the strengths and weaknesses of each feature in Windows domains and in Samba itself.

Whether you're playing on your personal computer or an enterprise network, on one note or a full three-octave range, Using Samba will give you an efficient and secure server.

Read More Show Less

Editorial Reviews

Booknews
A book/CD-ROM guide to Samba administration, with chapters on installation, configuration, and optimization, and material on recent additions such as integration with Windows NT domains and the SWAT graphic configuration tool. Goes through the PC side of installation in detail, and gives examples for both Windows 95/98 and Windows NT, as well as examples for common Unix operating systems such as Linux 2.0 and Solaris 2.6. For Unix administrators in a PC environment. The CD-ROM is a complete mirror of the Samba FTP site, with sources, ready-to-install binaries, documentations, and related utilities. Annotation c. Book News, Inc., Portland, OR (booknews.com)
Read More Show Less

Product Details

  • ISBN-13: 9780596007690
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 1/1/2007
  • Edition description: Third Edition
  • Edition number: 3
  • Pages: 448
  • Sales rank: 436,712
  • Product dimensions: 7.04 (w) x 9.18 (h) x 1.09 (d)

Meet the Author

Gerald (Jerry) Carter received his Masters degree in Computer Science from Auburn University, where he continues to pursue his PhD. He has been a member of the Samba development Team since 1998 and his involvement with Unix systems and network administration of UNIX began in 1995. Jerry currently works for HP, working on embedded printing appliances. Having published articles with various web-based magazines, he teaches instructional courses as a consultant for several companies and conferences.

Jay Ts is a system administrator and programmer with many years of experience working with several versions of Unix and other operating systems. Nowadays he works as an independent consultant out of his home in Sedona, Arizona.

Robert Eckstein has worked with Java since its first release. In aprevious life, he has been an editor for O'Reilly Media, Inc. and aprogrammer for Motorola's cellular technology division. He hasauthored, co-authored, or edited a number of books, including Java Swing, JavaEnterprise Best Practices, Using Samba, XML Pocket Reference, andWebmaster in a Nutshell. In his spare time he has been known to tinkerwith filmmaking and digital photography, as well as collecting vintagevideo game consoles. He currently lives in Austin, Texas with his wifeMichelle, his children Lauren and Nathan, and their talking dogGinger.

Read More Show Less

Read an Excerpt


1. Learning the Samba

If you are a typical system administrator, then you know what it means to be swamped with work. Your daily routine is filled with endless hardware incompatibility issues, system outages, data backup problems, and a steady stream of angry users. So adding another program to the mix of tools that you have to maintain may sound a bit perplexing. However, if you're determined to reduce the complexity of your work environment, as well as the workload of keeping it running smoothly, Samba may be the tool you've been waiting for.

A case in point: one of the authors of this book used to look after 70 Unix developers sharing 5 Unix servers. His neighbor administered 20 Windows 3.1 users and 5 OS/2 and Windows NT servers. To put it mildly, the Windows 3.1 administrator was swamped. When he finally left -- and the domain controller melted -- Samba was brought to the rescue. Our author quickly replaced the Windows NT and OS/2 servers with Samba running on a Unix server, and eventually bought PCs for most of the company developers. However, he did the latter without hiring a new PC administrator; the administrator now manages one centralized Unix application instead of fifty distributed PCs.

If you know you're facing a problem with your network and you're sure there is a better way, we encourage you to start reading this book. Or, if you've heard about Samba and you want to see what it can do for you, this is also the place to start. We'll get you started on the path to understanding Samba and its potential. Before long, you can provide Unix services to all your Windows machines -- all without spending tons of extra time or money. Sound enticing? Great, then let's get started.

What is Samba?

Samba is a suite of Unix applications that speak the SMB (Server Message Block) protocol. Many operating systems, including Windows and OS/2, use SMB to perform client-server networking. By supporting this protocol, Samba allows Unix servers to get in on the action, communicating with the same networking protocol as Microsoft Windows products. Thus, a Samba-enabled Unix machine can masquerade as a server on your Microsoft network and offer the following services:
  • Share one or more filesystems
  • Share printers installed on both the server and its clients
  • Assist clients with Network Neighborhood browsing
  • Authenticate clients logging onto a Windows domain
  • Provide or assist with WINS name server resolution
Samba is the brainchild of Andrew Tridgell, who currently heads the Samba development team from his home of Canberra, Australia. The project was born in 1991 when Andrew created a fileserver program for his local network that supported an odd DEC protocol from Digital Pathworks. Although he didn't know it at the time, that protocol later turned out to be SMB. A few years later, he expanded upon his custom-made SMB server and began distributing it as a product on the Internet under the name SMB Server. However, Andrew couldn't keep that name -- it already belonged to another company's product -- so he tried the following Unix renaming approach:

grep -i 's.*m.*b' /usr/dict/words

And the response was:

salmonberry samba sawtimber scramble

Thus, the name "Samba" was born.

Which is a good thing, because our marketing people highly doubt you would have picked up a book called "Using Salmonberry"!

Today, the Samba suite revolves around a pair of Unix daemons that provide shared resources -- or shares -- to SMB clients on the network. (Shares are sometimes called services as well.) These daemons are:

smbd

A daemon that allows file and printer sharing on an SMB network and provides authentication and authorization for SMB clients.

nmbd

A daemon that looks after the Windows Internet Name Service (WINS), and assists with browsing.

Samba is currently maintained and extended by a group of volunteers under the active supervision of Andrew Tridgell. Like the Linux operating system, Samba is considered Open Source software (OSS) by its authors, and is distributed under the GNU General Public License (GPL). Since its inception, development of Samba has been sponsored in part by the Australian National University, where Andrew Tridgell earned his Ph.D. [1] In addition, some development has been sponsored by independent vendors such as Whistle and SGI. It is a true testament to Samba that both commercial and non-commercial entities are prepared to spend money to support an Open Source effort.

At the time of this printing, Andrew had completed his Ph.D. work and had joined San Francisco-based LinuxCare.

Microsoft has also contributed materially by putting forward its definition of SMB and the Internet-savvy Common Internet File System (CIFS), as a public Request for Comments (RFC), a standards document. The CIFS protocol is Microsoft's renaming of future versions of the SMB protocol that will be used in Windows products -- the two terms can be used interchangeably in this book. Hence, you will often see the protocol written as "SMB/CIFS."

1.2 What Can Samba Do For Me?

As explained earlier, Samba can help Windows and Unix machines coexist in the same network. However, there are some specific reasons why you might want to set up a Samba server on your network:
  • You don't want to pay for - or can't afford - a full-fledged Windows NT server, yet you still need the functionality that one provides.
  • You want to provide a common area for data or user directories in order to transition from a Windows server to a Unix one, or vice versa.
  • You want to be able to share printers across both Windows and Unix workstations.
  • You want to be able to access NT files from a Unix server.
Let's take a quick tour of Samba in action. Assume that we have the following basic network configuration: a Samba-enabled Unix machine, to which we will assign the name hydra, and a pair of Windows clients, to which we will assign the names phoenix and chimaera, all connected via a local area network (LAN). Let's also assume that hydra also has a local inkjet printer connected to it, lp, and a disk share named network - both of which it can offer to the other two machines. A graphic of this network is shown in Figure 1.1.

In this network, each of the computers listed share the same workgroup. A workgroup is simply a group nametag that identifies an arbitrary collection of computers and their resources on an SMB network. There can be several workgroups on the network at any time, but for our basic network example, we'll have only one: the SIMPLE workgroup....

Read More Show Less

Table of Contents

Preface;
Audience for This Book;
How This Book Is Organized;
Conventions Used in This Book;
Using Code Examples;
How to Contact Us;
Safari® Enabled;
Acknowledgments;
Chapter 1: An Introduction to Samba;
1.1 What Is Samba?;
1.2 What Can Samba Do for Me?;
1.3 The Common Internet File System;
1.4 Connecting to a CIFS File Share;
1.5 Browsing;
1.6 Authentication: Peer-to-Peer Versus Domains;
1.7 What's in Samba 3.0?;
1.8 Future Research in Samba 4.0;
1.9 What Can Samba Do?;
1.10 An Overview of the Samba Distribution;
1.11 How Can I Get Samba?;
Chapter 2: Installing Samba on a Unix System;
2.1 Binary Packages;
2.2 Compiling from Source;
2.3 Compiling and Installing Samba;
2.4 Enabling the Samba Web Administration Tool (SWAT);
2.5 A Basic Samba Configuration File;
2.6 Firewall Configuration;
2.7 Starting the Samba Daemons;
Chapter 3: Configuring Windows Clients;
3.1 Windows Networking Concepts;
3.2 Windows Setup;
Chapter 4: The Samba Configuration File;
4.1 Basic Syntax and Rules;
4.2 Special Sections;
4.3 Configuration File Options;
4.4 Basic Server Configuration;
4.5 Disk Share Configuration;
4.6 Networking Options with Samba;
4.7 Virtual Servers;
4.8 Logging Configuration Options;
Chapter 5: Accounts, Authentication, and Authorization;
5.1 Security Modes;
5.2 User Management;
5.3 Group Mapping;
5.4 User Privilege Management;
5.5 Controlling Authorization for File Shares;
Chapter 6: Advanced Disk Shares;
6.1 Special Share Names;
6.2 Filesystem Differences;
6.3 Access Control Lists;
6.4 Microsoft Distributed File Systems;
6.5 Virtual File Systems;
6.6 Executing Server Scripts;
Chapter 7: Printing;
7.1 Print Shares;
7.2 A Usable Print Share;
7.3 Samba and CUPS;
7.4 The [printers] Service;
7.5 Enabling SMB Printer Sharing in OS X;
7.6 Creating a PDF Printer;
7.7 Managing Windows Print Drivers;
7.8 Printers and Security;
7.9 Disabling Point and Print;
7.10 Printing, Queue Lists, and tdb Files;
7.11 Printing to Windows Printers;
7.12 Printing Parameters;
Chapter 8: Name Resolution and Network Browsing;
8.1 Name Resolution;
8.2 Network Browsing;
Chapter 9: Domain Controllers;
9.1 Samba Domains: NT 4.0 or Active Directory?;
9.2 Configuring a Samba PDC;
9.3 Configuring a Samba BDC;
9.4 passdb Recommendations;
9.5 Migrating an NT 4.0 Domain to Samba;
9.6 Domain Trusts;
9.7 Remote Server Management;
Chapter 10: Domain Member Servers;
10.1 Joining a Domain;
10.2 Domain and ADS Security Modes;
10.3 Matching Domain Users to Local Accounts;
10.4 Winbind;
10.5 Additional Winbind Features;
Chapter 11: Unix Clients;
11.1 The Linux CIFS Filesystem;
11.2 FreeBSD's smbfs;
11.3 Mac OS X;
11.4 smbclient;
11.5 Remote Administration with net;
Chapter 12: Troubleshooting Samba;
12.1 The Tool Box;
12.2 Samba Logs;
12.3 Unix Utilities;
12.4 The Fault Tree;
12.5 Troubleshooting Browsing;
12.6 Troubleshooting Name Services;
12.7 Troubleshooting Network Addresses;
12.8 Troubleshooting NetBIOS Names;
12.9 Extra Resources;
Appendix A: Summary of Samba Daemons and Commands;
A.1 SMB URI Syntax;
A.2 Samba Daemons;
A.3 Samba Client Programs;
Appendix B: Downloading Samba with Subversion;
Appendix C: Configure Options;
C.1 Install Directory and Library Options;
C.2 Developer Options;
C.3 Authentication Options;
C.4 File Serving Features;
C.5 Printing Options;
C.6 Clients and Libraries;
Colophon;

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)