Apple Training Series Mac OS X Advanced System Administration v10.5 Edward R. Marczak Apple Training Series: Mac OS X Advanced System Administration v10.5 Edward R. Marczak Published by Peachpit Press. For information on Peachpit Press books, contact: Peachpit Press 1249 Eighth Street Berkeley, CA 94710 510/524-2178 510/524-2221 (fax) Find us on the Web at: www.peachpit.com To report errors, please send a note to [email protected] Peachpit Press is a division of Pearson Education Copyright © 2009 by Apple Inc. and Peachpit Press Project Editor: Rebecca Freed Development Editor: Judy Walthers von Alten Production Editor: Danielle Foster Copyeditor: John Banks Tech Editors: Joel Rennich, Shane Ross Proofreader: Rachel Fudge Compositor: Danielle Foster Indexer: Valerie Perry Cover design: Mimi Heft Notice of Rights All rights reserved. No part of this book may be reproduced or transmitted in any form by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. For infor- mation on getting permission for reprints and excerpts, contact [email protected]. Notice of Liability The information in this book is distributed on an “As Is” basis without warranty. While every precaution has been taken in the preparation of the book, neither the author nor Peachpit shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the instructions contained in this book or by the computer software and hardware products described in it. Trademarks Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and Peachpit was aware of a trademark claim, the designations appear as requested by the owner of the trademark. All other product names and services identified throughout this book are used in editorial fashion only and for the benefit of such companies with no intention of infringement of the trademark. No such use, or the use of any trade name, is intended to convey endorsement or other affiliation with this book. ISBN 13: 978-0-321-56314-9 ISBN 10: 0-321-56314-X 9 8 7 6 5 4 3 2 1 Printed and bound in the United States of America This page intentionally left blank This page intentionally left blank Acknowledgments First, “I” did not write this book. There are too many contingencies that allowed its creation. Overall, I merely stood on the shoulders of the giants that precede me. There should also be two other names on the cover: Matthias Fricke and Patrick Gallagher from the Advanced System Administration “team,” with- out whom this book would be about half the volume, and no training course would exist. Thanks also to Ben Greisler for stepping very late into the process to calm nerves. At the top of my specific list, I need to thank my immediate family, my daugh- ters Emily and Lily, and particularly my wife Dorothy, who took on (even more of) the household burden while I wrote. Also, thank you for having enough sense to force me to stop writing and periodically look at the world. Thanks to my parents for inspiring a young mind and providing it with the tools to learn. Thanks also to the teachers that inspired and prepared me along the way, particularly Ken Graham, Marsha Cohen, Dr. Barry Dutchen, and Dr. Robert Marose. Thank you to Neil Ticktin for providing me with opportunity and generally having faith in me. Thanks to Schoun Regan for being Schoun Regan. Thanks to the crack team at Peachpit. Judy Walthers von Alten, you have made this an immeasurably better product. Shane Ross, you kept me sane. I hope I did not have the opposite effect on you. Thanks to everyone at Google, particularly Clay Caviness, Joseph Dries, and Nigel Kersten, who put up with my random ramblings and status reports on my progress. v This page intentionally left blank Contents at a Glance Getting Started ......................................xv Part 1 Implementation Chapter 1 Planning Systems ...................................... 3 Chapter 2 Installing and Configuring Systems ...................... 15 Chapter 3 Upgrading and Migrating Systems ....................... 45 Chapter 4 Assessing Systems ..................................... 65 Part 2 Networking Chapter 5 Working with DNS and NTP ............................ 89 Chapter 6 Controlling Access to Resources ........................ 117 Part 3 Administration Chapter 7 Securing Access to Resources ........................... 139 Chapter 8 Monitoring Systems .................................. 185 Chapter 9 Automating Systems .................................. 221 Chapter 10 Ensuring Data Integrity ............................... 263 Part 4 Optimizing and Troubleshooting Chapter 11 Ensuring Reliability .................................. 295 Chapter 12 Troubleshooting ..................................... 317 Appendix Documenting Systems ................................ 341 Index .............................................351 vii This page intentionally left blank Contents Getting Started ............................. xv Part 1 Implementation Planning Systems ............................ 3 Chapter 1 Planning Before Purchasing .............................. 4 Documenting the Initial Requirements ................... 10 What You’ve Learned .................................. 11 References ........................................... 11 Review Quiz .......................................... 12 Installing and Configuring Systems ............ 15 Chapter 2 Installing Your System ................................. 16 Configuring Your System ............................... 20 Troubleshooting ...................................... 37 What You’ve Learned .................................. 41 Review Quiz .......................................... 42 Upgrading and Migrating Systems ............ 45 Chapter 3 Upgrading Your System ................................ 46 Exporting Settings and Data ............................ 48 Importing Settings and Data ............................ 55 Troubleshooting ...................................... 61 What You’ve Learned .................................. 63 Review Quiz .......................................... 63 ix