SUSE® LINUX® Advanced Administration
Total Page:16
File Type:pdf, Size:1020Kb
SUSE® LINUX ® Advanced Administration Novell Training Services www.novell.com COURSE 3038 SELF-STUDY WORKBOOK Version 1 Proprietary Statement Trademarks Copyright © 2004 Novell, Inc. All rights reserved. Novell, Inc. has attempted to supply trademark information about company names, products, and services mentioned in this manual. The following list of No part of this publication may be reproduced, photocopied, stored on a retrieval trademarks was derived from various sources. system, or transmitted without the express prior consent of the publisher. This manual, and any portion thereof, may not be copied without the express written Novell, Inc. Trademarks permission of Novell, Inc. NetWare, the N-Design, and Novell are registered trademarks of Novell, Inc. in Novell, Inc. the United States and other countries. CNA, CDE, CNI, NAEC, and Novell 1800 South Novell Place Authorized Education Center are service marks and CNE is a registered service Provo, UT 84606-2399 mark of Novell, Inc. in the United States and other countries. ConsoleOne, DirXML, and eDirectory are trademarks of Novell, Inc. GroupWise is a registered trademark of Novell, Inc. Hot Fix, and IPX is a trademark of Novell, Disclaimer Inc. NDS, Novell Directory Services, and NDPS are registered trademarks of Novell, Inc. makes no representations or warranties with respect to the contents Novell, Inc. NetWire is a registered service mark of Novell, Inc. in the United or use of this manual, and specifically disclaims any express or implied States and other countries. NLM and Novell Certificate Server are trademarks of warranties of merchantability or fitness for any particular purpose. Novell, Inc. Novell Client, Novell Cluster Services, and Novell Distributed Print Services are trademarks of Novell, Inc. ZENworks is a registered trademark of Further, Novell, Inc. reserves the right to revise this publication and to make Novell, Inc. changes in its content at any time, without obligation to notify any person or entity of such revisions or changes. Other Trademarks Further, Novell, Inc. makes no representations or warranties with respect to any Adaptec is a registered trademark of Adaptec, Inc. AMD is a trademark of NetWare software, and specifically disclaims any express or implied warranties Advanced Micro Devices. AppleShare and AppleTalk are registered trademarks of merchantability or fitness for any particular purpose. of Apple Computer, Inc. ARCserv is a registered trademark of Cheyenne Software, Inc. Btrieve is a registered trademark of Pervasive Software, Inc. Further, Novell, Inc. reserves the right to make changes to any and all parts of EtherTalk is a registered trademark of Apple Computer, Inc. Java is a trademark NetWare software at any time, without obligation to notify any person or entity or registered trademark of Sun Microsystems, Inc. in the United States and other of such changes. countries. Linux is a registered trademark of Linus Torvalds. LocalTalk is a This Novell Training Manual is published solely to instruct students in the use of registered trademark of Apple Computer, Inc. Lotus Notes is a registered Novell networking software. Although third-party application software packages trademark of Lotus Development Corporation. Macintosh is a registered are used in Novell training courses, this is for demonstration purposes only and trademark of Apple Computer, Inc. Netscape Communicator is a trademark of shall not constitute an endorsement of any of these software applications. Netscape Communications Corporation. Netscape Navigator is a registered trademark of Netscape Communications Corporation. Pentium is a registered Further, Novell, Inc. does not represent itself as having any particular expertise trademark of Intel Corporation. Solaris is a registered trademark of Sun in these application software packages and any use by students of the same shall Microsystems, Inc. The Norton AntiVirus is a trademark of Symantec be done at the students’ own risk. Corporation. TokenTalk is a registered trademark of Apple Computer, Inc. Tru64 is a trademark of Digital Equipment Corp. UNIX is a registered trademark of the Open Group. WebSphere is a trademark of International Business Machines Software Piracy Corporation. Windows and Windows NT are registered trademarks of Microsoft Throughout the world, unauthorized duplication of software is subject to both Corporation. criminal and civil penalties. If you know of illegal copying of software, contact your local Software Antipiracy Hotline. For the Hotline number for your area, access Novell’s World Wide Web page at http://www.novell.com and look for the piracy page under “Programs.” Or, contact Novell’s anti-piracy headquarters in the U.S. at 800-PIRATES (747- 2837) or 801-861-7101. Contents Contents SUSE LINUX Advanced Administration Self-Study Workbook Introduction . Intro-1 SLES 9 Server Setup Instructions . Intro-2 Check Setup Prerequisites . Intro-2 Install the SLES 9 VMware Server . Intro-3 Configure the SLES 9 VMware Server . Intro-4 Start the SLES 9 VMware Server . Intro-6 VMware Workstation Tips . Intro-7 Scenario . Intro-8 SECTION 1 Install SLES 9 Exercise 1-1 Install SLES 9 from CD. 1-2 Part I: Boot From the Installation Media . 1-3 Part II: Start the Installation Proposal . 1-3 Part III: Configure the Partitions for Your Hard Drive . 1-4 Part IV: Add Compiler and Development Tools to the Software Selection . 1-6 Part V: Start the Installation Process . 1-6 Part VI: Set the root Password . 1-6 Part VII: Set Up the Network . 1-7 Part VIII: Set Up Services and Users . 1-8 Part IX: Configure Hardware Devices . 1-8 Part XI: (Optional) Update Your SLES 9 Server With YOU . 1-10 Exercise 1-2 Configure the SLES 9 VMware Server . 1-14 Part I: Configure the SLES 9 Server with YaST . 1-14 Part II: (Optional) Update Your SLES 9 Server With YOU . 1-17 SECTION 2 Configure the Network Manually Exercise 2-1 Configure the Network Connection Manually. 2-2 Part I: Note the Current Network Configuration . 2-2 Part II: Delete the Current Network Setup with YaST . 2-4 Part III: Configure the Network Manually . 2-4 Part IV: Save the Network Connection to Interface and Hardware Configuration Files . 2-4 Version 1 Copying all or part of this manual, or distributing such copies, is strictly prohibited. TOC-1 To report suspected copying, please call 1-800-PIRATES. SUSE LINUX Advanced Administration/Self-Study Workbook SECTION 3 Configure Network Services Exercise 3-1 Configure a DNS server. 3-2 Part I: Install BIND . 3-2 Part II: Configure a DNS Master Server . 3-3 Exercise 3-2 Use the SLES 9 OpenLDAP server . 3-7 Part I: Install GQ . 3-7 Part II: Search the SLES 9 OpenLDAP Server . 3-7 Part III: Browse the SLES 9 OpenLDAP Server . 3-9 Part IV: Use an LDIF File to Add a User . 3-10 Exercise 3-3 Configure an Apache Web Server . 3-12 Part I: Install Apache . 3-12 Part II: Test the Installation . 3-13 Part III: Configure a Virtual Host for the Accounting Department . 3-14 Part IV: Configure User Authentication . 3-16 Part V: Configure SSL . 3-17 Exercise 3-4 Configure a File Server With Samba. 3-21 Part I: Install Samba . 3-21 Part II: Configure a Share for the User Geeko . 3-21 Part III: Access the Share of the User Geeko With smbclient . 3-23 Part IV: Mount Geeko's Share . 3-24 SECTION 4 Secure a SLES 9 Server Exercise 4-1 Change the PAM Configuration to Disable the Graphical Root Login. 4-2 Exercise 4-2 Use ACLs. 4-4 Part I: Configure the ACL of a Directory . 4-4 Part II: Configure a Default ACL for a Directory . 4-5 Part III: Delete an ACL . 4-6 Exercise 4-3 (Optional) Subscribe to the SUSE Security Announcements . 4-8 SECTION 5 Manage Backup and Recovery Exercise 5-1 Create Backup Files With tar. 5-2 Part I: Create a Full Backup . 5-2 Part II: Create an Incremental Backup . 5-3 Exercise 5-2 Create Drive Images With dd . 5-5 Exercise 5-3 Create a Backup of a Home Directory With rsync . 5-7 Part I: Perform a Local Backup With rsync . 5-7 Part II: Perform a Remote Backup with rsync . 5-7 Exercise 5-4 Configure a cron Job for Data Backups. 5-9 Exercise 5-5 Boot to a Shell and Configure the GRUB Boot Loader . 5-10 Part I: Boot the Rescue System (Installed SLES 9 Servers Only) . 5-10 Part II: Boot the Rescue System (SLES 9 VMware Servers Only) . 5-11 Part III: Edit and Test the GRUB Configuration File . 5-12 TOC-2 Copying all or part of this manual, or distributing such copies, is strictly prohibited. Version 1 To report suspected copying, please call 1-800-PIRATES. Contents SECTION 6 Create Shell Scripts Exercise 6-1 Produce Output from a Script . ..