Slashdot Mirror


Samba Administrator's Handbook

chromatic returns with a book tuned for anyone whose answer to heterogeneous networks is SAMBA, and wants 500 pages of practical advice (and answers to common problems) distilled from the fountain of SAMBA knowlege.

Samba Administrator's Handbook author Ed Booksbank, George Haberberger, Lisa Doyle pages 518 publisher M&T Books rating 7.5 reviewer chromatic ISBN 0-7645-4636-8 summary Know the theory? Here's the nuts and bolts of administrating a heterogenous network with Samba.

The Scoop Imagine you're the administrator for a diverse network. A couple of engineers have Unix boxes, while some programmers work on NT machines. Managers have Windows laptops, and you've talked them into letting you install Samba domain and print servers. You've read the documentation and understand how it works. Now what?

That's the scenario Samba Administrator's Handbook wants to address. Designed for the busy administrator who needs quick answers in a convenient package, it takes the pragmatic approach, and gets most things right. Need to set up a print queue on Solaris? Turn to the detailed table of contents to find a complete walkthrough. It's not the kind of book you'd sit down and read from cover to cover (Trust me on this), but at least you'll know what kinds of things pop up more than once in smb.conf.

What's to Like? Samba is designed to work with a variety of operating systems and platforms, and the authors cover quite a few: Solaris, RedHat and Caldera Linux distributions, and Free and Net BSD. These are good choices, because they represent a cross section of Unix land. Clients include the Windows family, as well as DOS and Unix (where applicable). Also included are task options (different utilities or command line switches). For example, the Samba installation section describes compilation, package selection during installation, and RPM installs. Samaba's rapid development receives due mention, with advanced users pointed to anonymous CVS and the excellent mailing lists.

SWAT receives the best coverage, reinforcing the notion that this book is meant to be used by administrators who don't have the luxury of looking up many pages on the server (or those who prefer to read printed versions). Additional configuration resources are also covered. These include SMBEdit, webmin and Linuxconf.

The handbook covers client-side issues very thoroughly, including a detailed section on troubleshooting under various operating systems. (The breadth of coverage surprised me, as there were commands I did not know even existed.) Also, the Best Practices chapter takes a server-level approach, with sections on backups and security.

What's to Consider? My one large gripe may only bother a few readers: The editing really seems half-hearted. This is annoying, as the layout is inconsistent in places and numerous typos mar the text. I did not notice any factual errors resulting from this, however.

Occasionally, options are mentioned but not explained. Most of the time, these are the smb.conf options included for debugging purposes, deprecated in newer versions, or options which should never be changed. Some additional information would be interesting, if not immediately useful. Likewise, the benchmarking chapter suffers from a skimpy treatment, mentioning tools but not what to do with them.

In some spots, more information than necessary is presented. For example, the generous SWAT chapter repeats some information verbatim, as certain sections of the smb.conf file take similar options. Erring on the side of caution fits the organizational goal, though reprinting tar man pages may be a bit extreme.

The SummaryShort on theory but long on facts, until you have your smb.conf memorized and can keep six different versions of the same command straight in your head, you can find quick and correct information here.

Buy this book at ThinkGeek.

Table of Contents
  1. Installation and Basic Configuration
    1. Server Installation
    2. Client Installation
    3. Basic Configuration Using SWAT
    4. Basic Operating System Configuration
    5. Other GUI Configuration Tools
  2. Advanced Configuration
    1. Naming Services
    2. Best Practices, Browsing, and Domains
    3. Performance Tuning
  3. Troubleshooting
    1. Basic Network Connectivity
    2. Testing the Samba Configuration
    3. Accessing Samba
    4. Using Net Commands to Diagnose Problems
  4. Appendices
    1. Error Codes
    2. GNU General Public License
    3. Online Resources

5 of 43 comments (clear)

  1. Re:Compare with O'Reilly by Lando · · Score: 4
    For those of you interested, O'Reilly literally gave it's book to the samba group, http://www.samba.org.

    Samba book online is located at http://us1.samba.org/samba/oreilly/ using_samba/ though you should probably log onto the closest mirror at the samba.org link about and go to the documentation from there.

    The documentation should soon be available via cvs as well.

    Lando

    --
    /* TODO: Spawn child process, interest child in technology, have child write a new sig */
  2. I apologize for your modding by georgeha · · Score: 4

    I have a small LAN that I support containing mostly NT and Win9x boxes, but I use Linux as the main server (DHCP, http, ftp, and of course Samba). As it is now, every user (in order to use shares off of the NT boxes and the Samba box) must have their username and password registered with both all the NT boxes and the Samba server. Then when they need to change their password, they must go to each box and change it many times. Is making the Samba box a Domain controller the only way to have all NT and Win9x boxes validate against the Samba password database, or is there a different password sync method? Thanks!
    -Shawn


    To being with, I don't know why your modded to -1, this seems like an abuse of moderator privileges.

    Domains are one option, the other is to have the Samba server reference another server for password verification with the password server parameter.

    I don't have a lot of experience with Domain controllers (ed checked that part of the book), but that's the way I think you need to go, either make Samba a Domain Controller, or make one of your NT boxes a Domain Controller, and have Samba join the NT Domain.

    Otherwise, you can have Samba reference another server for password verification, using the password server prompt. This only cuts down some of the password changes, the other NT boxes probably need to be changed individually.

    I hope this helps,

    George

  3. Re:Migration to encrypted passwords that works. by georgeha · · Score: 4

    Whats the best way to migrate to encrypted passwords? The way the samba docs tell you to do is fine... except in the real world where you have hundreds of users spread out over multiple servers that sync.

    Does anyone have a pretty much fullproof way of doing it? I mean, all the way down to the H_KEY settings that needs to be changed via kix.


    Are you running unencrypted passwords now? Then you could consider using the update encrypted parameter, to slowly build your encrypted password file.

    Once all the users have encrypted passwords in the smbpassd file, you start encyrpting passwords.

    Hope this helps,

    George

  4. As the author, I'll answer book question by georgeha · · Score: 4

    Wow, I'm jazzed, I never shared a Slashdot topic before.

    If anyone has any questions about writing the book, I'd be glad to answer them to the best of my ability.

    If anyone has Samba questions, I'll do my best to answer them too, though my turnaround time may be greater.

    I agree on the skimpiness of the benchmarking, we ran out of time, and it's hard to simulate real workd performance on a Pentium and 486 home network.

    As far as the duplication of pages wrt to the smb.conf section, and others sections, the publisher said to go a little overboard there, to avoid needless page flipping. We might have taken that a little too far.

    As far as including the GPL, it seems to be the thing to do, every book has it, it may be a publisher's requirement, but we included it anyway.

    Thanks,

    George

  5. We need more books like this by Gurlia · · Score: 5

    This is not intended as flamebait, but IMHO we need many more books like this for open source software. The problem is that the current open source / Linux documentation (manpages, the HOWTO's and mini-HOWTO's) require a LOT of time and reading on the part of the user, before they can even see any results. There aren't very many docs that guide you through, step-by-step, how to get some semblance of what you want up and running.

    I'm not saying that that is a bad thing; after all, we do want to educate the masses and prevent (as much as possible) clueless people who wants to be spoon-fed and never RTFM, right? But we need to remember that people like to see results. Even a little result. Having to read through an entire HOWTO, and then perhaps still not quite understanding just what it is you have to do, is very discouraging for a new user.

    We should have more walkthroughs -- pre-made "recipes", so to speak, that new users can follow and get at least some result. We need to at least get them started; then hopefully they will be more interested/inspired to actually tackle all the details in the HOWTO's or other docs that came with the software, and eventually learn what they should learn. You need to learn to walk before you can run. It's a bit harsh to stick to the "sink or swim" philosophy. Much better if we cater to those who want to learn but can't quite make it without extra help.


    ---
    --
    mikre he sophia he tou Mikrosophou.