01_577131 ffirs.qxd 3/9/05 6:25 PM Page i Red Hat Enterprise ® Linux 4 ® FOR DUMmIES ‰ by Terry Collings TEAM LinG - Live, Informative, Non-cost and Genuine ! 01_577131 ffirs.qxd 3/9/05 6:25 PM Page ii Red Hat®Enterprise Linux®4 For Dummies® Published by Wiley Publishing, Inc. 111 River Street Hoboken, NJ 07030-5774 www.wiley.com Copyright © 2005 by Wiley Publishing, Inc., Indianapolis, Indiana Published by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permit- ted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, e-mail: [email protected]. Trademarks:Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for the Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates in the United States and other countries, and may not be used without written permission. Red Hat is a registered trademark of Red Hat, Inc. Linux is a registered trademark of Linus Torvalds. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book. LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REP- RESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CON- TENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE CRE- ATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS. THE ADVICE AND STRATEGIES CON- TAINED HEREIN MAY NOT BE SUITABLE FOR EVERY SITUATION. THIS WORK IS SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR OTHER PROFESSIONAL SERVICES. IF PROFESSIONAL ASSISTANCE IS REQUIRED, THE SERVICES OF A COMPETENT PROFESSIONAL PERSON SHOULD BE SOUGHT. NEITHER THE PUBLISHER NOR THE AUTHOR SHALL BE LIABLE FOR DAMAGES ARISING HEREFROM. THE FACT THAT AN ORGANIZATION OR WEBSITE IS REFERRED TO IN THIS WORK AS A CITATION AND/OR A POTENTIAL SOURCE OF FUR- THER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFOR- MATION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE. FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS WORK MAY HAVE CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHEN IT IS READ. For general information on our other products and services, please contact our Customer Care Department within the U.S. at 800-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002. For technical support, please visit www.wiley.com/techsupport. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. Library of Congress Control Number: 2004117578 ISBN: 0-7645-7713-1 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 1O/SZ/QT/QV/IN TEAM LinG - Live, Informative, Non-cost and Genuine ! 01_577131 ffirs.qxd 3/9/05 6:25 PM Page iii About the Author Terry Collingsis the Instructional Technologist at Muhlenberg College in Allentown, PA where he is responsible for researching and implementing emerging technology in an educational environment. He is also the system administrator for Red Hat Linux servers on campus. Terry is also an adjunct faculty at Lehigh Carbon Community College where he teaches A+ and Network+ certification courses. He has previously taught courses on Unix, Linux, TCP/IP, and Novell Netware. Terry is the co-author of Linux Bibleand Red Hat Linux Networking and System Administration(first and second editions) as well as a contributing writer to the Linux Weekend Crash Course. He was the technical editor for the KDE Bible, The Samba Book, Unix Weekend Crash Course, Red Hat Linux 9 For Dummies, Solaris 9 For Dummies, Linux Timesaving Techniques,and Fedora Linux 2 For Dummies. TEAM LinG - Live, Informative, Non-cost and Genuine ! 01_577131 ffirs.qxd 3/9/05 6:25 PM Page iv TEAM LinG - Live, Informative, Non-cost and Genuine ! 01_577131 ffirs.qxd 3/9/05 6:25 PM Page v Dedication This book is dedicated to my lovely wife Nancy, who kept our toddler enter- tained so I could work on this project. Author’s Acknowledgments I always have a hard time writing the acknowledgments for my books because there are so many people to recognize that I am always afraid that I’ll miss someone. Well, here goes. I would like to thank all the people at Wiley who worked on this book, espe- cially Terri Varveris, my acquisitions editor, who finally convinced me to write a For Dummiesbook. I’ve known Terri for several years and have come to realize what a gem she is. Thanks to Chris Morris, my project editor, for keeping everything on track, and thanks to the technical and copy editors for putting their polish on the book. A special thank you goes to Doyle Smith who provided me with a few PCs so I could run all four versions of Enterprise Linux simultaneously. And finally, I would like to thank my daughter Sabrina, whose early morning cries would wake me so I could do some work on this book. She was an essential part of its completion. TEAM LinG - Live, Informative, Non-cost and Genuine ! 01_577131 ffirs.qxd 3/9/05 6:25 PM Page vi Publisher’s Acknowledgments We’re proud of this book; please send us your comments through our online registration form located at www.dummies.com/register/. Some of the people who helped bring this book to market include the following: Acquisitions, Editorial, and Composition Services Media Development Project Coordinator: Nancee Reeves, Project Editor:Christopher Morris EmilyWichlinski Acquisitions Editor:Terri Varveris Layout and Graphics: Andrea Dahl, Lauren Goddard, Joyce Haughey, Sr. Copy Editor:Teresa Artman Stephanie D. Jumper, Melanee Prendergast, Technical Editor:Susan Douglas Jacque Roth, Ron Terry Editorial Manager:Kevin Kirschner Proofreaders: Leeann Harney, Joe Niesen, Media Development Manager: Carl Pierce, Dwight Ramsey, TECHBOOKS Laura VanWinkle Production Services Media Development Supervisor: Indexer: TECHBOOKS Production Services Richard Graves Editorial Assistant:Amanda Foxworth Cartoons:Rich Tennant (www.the5thwave.com) Publishing and Editorial for Technology Dummies Richard Swadley,Vice President and Executive Group Publisher Andy Cummings,Vice President and Publisher Mary Bednarek,Executive Acquisitions Director Mary C. Corder,Editorial Director Publishing for Consumer Dummies Diane Graves Steele,Vice President and Publisher Joyce Pepple,Acquisitions Director Composition Services Gerry Fahey,Vice President of Production Services Debbie Stailey,Director of Composition Services TEAM LinG - Live, Informative, Non-cost and Genuine ! 02_577131 ftoc.qxd 3/9/05 6:24 PM Page vii Contents at a Glance Introduction.................................................................1 Part I: Becoming Familiar with Enterprise Linux ............7 Chapter 1: Getting Acquainted with Enterprise Linux...................................................9 Chapter 2: Exploring the Desktop..................................................................................17 Chapter 3: Putting Your System to Work.......................................................................41 Chapter 4: Exploring the File System and Command Shell.........................................61 Part II: Configuring Your Enterprise Linux Local Area Network.............................................................83 Chapter 5: Configuring and Managing the X Window System....................................85 Chapter 6: Configuring and Managing Printers............................................................97 Chapter 7: Configuring the Network............................................................................109 Chapter 8: The Network File System............................................................................123 Chapter 9: Connecting to Windows PCs Using Samba...............................................131 Part III: Securing Your Enterprise Linux System..........141 Chapter 10: Security Basics..........................................................................................143 Chapter 11: Intrusion Detection and Prevention........................................................161 Part IV: Configuring Your Enterprise Linux Internet Services...................................................................179 Chapter 12: Configuring and Managing DNS Servers.................................................181 Chapter 13: Configuring and Managing an E-Mail Server..........................................203 Chapter 14: Configuring and Managing an FTP Server..............................................221 Chapter 15: Serving Web Pages....................................................................................235 Part V: Maintaining Your Enterprise Linux System.......251 Chapter 16: Maintaining Your System with the Red Hat Network............................253 Chapter 17: Administering Users and Groups............................................................267 Chapter 18: Installing and Upgrading Software Packages.........................................279 Chapter 19: Backing Up and Restoring Your Files......................................................287 TEAM LinG - Live, Informative, Non-cost and Genuine ! 02_577131 ftoc.qxd 3/9/05 6:24 PM Page viii Part VI: The Part of Tens...........................................311 Chapter 20: Ten Tips for Optimizing Your System.....................................................313 Chapter 21: Ten Troubleshooting and Problem-Solving Tips...................................329 Part VII: Appendixes.................................................339 Appendix A: Installing Red Hat Enterprise Linux.......................................................341 Appendix B: What’s on the CD-ROM?..........................................................................361 Index.......................................................................369 TEAM LinG - Live, Informative, Non-cost and Genuine ! 02_577131 ftoc.qxd 3/9/05 6:24 PM Page ix Table of Contents Introduction...................................................................1 About This Book................................................................................................1 How This Book Is Organized............................................................................2 Part I: Becoming Familiar with Enterprise Linux.................................2 Part II: Configuring Your Enterprise Linux Local Area Network........3 Part III: Securing Your Enterprise Linux System..................................3 Part IV: Configuring Your Enterprise Linux Internet Services...........3 Part V: Maintaining Your Enterprise Linux System.............................4 Part VI: The Part of Tens.........................................................................4 Part VII: Appendixes................................................................................4 Icons Used in This Book...................................................................................5 Typographical Roadsigns.................................................................................5 Part I: Becoming Familiar with Enterprise Linux ..............7 Chapter 1:Getting Acquainted with Enterprise Linux . . . . . . . . . . . . . . .9 Exploring the History of Enterprise Linux.....................................................9 Examining the Versions of Red Hat Enterprise............................................10 Red Hat Enterprise AS...........................................................................11 Red Hat Enterprise ES...........................................................................11 Red Hat Enterprise WS..........................................................................12 Red Hat Desktop....................................................................................12 Putting Enterprise Linux to Work..................................................................13 Configuring your local network...........................................................13 Using Enterprise Linux to maintain your system..............................14 Securing your system............................................................................14 Providing Internet services..................................................................15 Chapter 2:Exploring the Desktop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 Examining the Graphical Login Screen.........................................................17 Logging In and Using the GNOME Desktop..................................................19 Playing with the panel...........................................................................20 Managing applets on the panel............................................................21 Choosing applications from the Applications menu.........................22 Choosing actions from the Actions menu..........................................24 Using the Nautilus File Manager....................................................................25 Displaying your home folder................................................................27 Displaying the contents of a folder.....................................................27 Opening files...........................................................................................27 Accessing FTP sites...............................................................................28 TEAM LinG - Live, Informative, Non-cost and Genuine !