A Practical Guide to Fedora and Red Hat Enterprise Linux / Edition 6

A Practical Guide to Fedora and Red Hat Enterprise Linux / Edition 6

by Mark G. Sobell
Pub. Date:
Prentice Hall


View All Available Formats & Editions
Current price is , Original price is $59.99. You
Select a Purchase Option
  • purchase options
    $34.36 $59.99 Save 43% Current price is $34.36, Original price is $59.99. You Save 43%.
  • purchase options
    $30.06 $59.99 Save 50% Current price is $30.06, Original price is $59.99. You Save 50%.
    Note: Access code and/or supplemental material are not guaranteed to be included with textbook rental or used textbook.
  • purchase options


A Practical Guide to Fedora and Red Hat Enterprise Linux / Edition 6

“I have found this book to be a very useful classroom text, as well as a great Linux resource. It teaches Linux using a ground-up approach that gives students the chance to progress with their skills and grow into the Linux world. I have often pointed to this book when asked to recommend a solid Linux reference.”

Eric Hartwell, Chair, School of Information Technology, ITT Technical Institute

The #1 Fedora and RHEL resource—a tutorial AND on-the-job reference

Master Linux administration and security using GUI-based tools, the command line, and Perl scripts

Set up key Internet servers, step by step, including Samba, Apache, sendmail, DNS, LDAP, FTP, and more

Master All the Techniques You Need to Succeed with Fedora™ and Red Hat® Enterprise Linux®

In this book, one of the world’s leading Linux experts brings together all the knowledge you need to master Fedora or Red Hat Enterprise Linux and succeed with it in the real world. Best-selling author Mark Sobell explains Linux clearly and effectively, focusing on skills you’ll actually use as a user, programmer, or administrator. Now an even more versatile learning resource, this edition adds skill objectives at the beginning of each chapter.

Sobell assumes no prior Linux knowledge. He starts at the beginning and walks you through every topic and task that matters, using easy-to-understand examples. Step by step, you’ll learn how to install and configure Linux from the accompanying DVD, navigate its graphical user interface, provide file/print sharing, configure network servers, secure Linux desktops and networks, work with the command line, administer Linux efficiently, and even automate administration with Perl scripts.

Mark Sobell has taught hundreds of thousands of Linux and UNIX professionals. He knows every Linux nook and cranny—and he never forgets what it’s like to be new to Linux. Whatever you want to do with Linux—now or in the future—you’ll find it here.

Compared with the other Linux books out there, A Practical Guide to Fedora™ and Red Hat® Enterprise Linux®, Sixth Edition, delivers

  • Complete, up-to-the-minute coverage of Fedora 15 and RHEL 6
  • State-of-the-art security techniques, including up-to-date firewall setup techniques using system-config-firewall and iptables, and a full chapter on OpenSSH (ssh)
  • Coverage of crucial topics such as using su and sudo, and working with the new systemd init daemon
  • Comprehensive coverage of the command line and key system GUI tools
  • More practical coverage of file sharing using Samba, NFS, and FTP
  • Superior coverage of automating administration with Perl
  • More usable, realistic coverage of Internet server configuration, including Apache (Web), sendmail, NFSv4, DNS/BIND, and LDAP, plus new coverage of IPv6
  • More and better coverage of system/network administration tasks, including network monitoring with Cacti
  • Deeper coverage of essential administration tasks—from managing users to CUPS printing, configuring LANs to building a kernel
  • Complete instructions on keeping Linux systems up-to-date using yum
  • And much more, including a 500+ term glossary and comprehensive indexes

Includes DVD! Get the full version of the Fedora 15 release!

Product Details

ISBN-13: 9780132757270
Publisher: Prentice Hall
Publication date: 08/24/2011
Pages: 1224
Product dimensions: 7.46(w) x 8.92(h) x 1.69(d)

About the Author

Mark G. Sobell is President of Sobell Associates Inc., a consulting firm that specializes in UNIX and Linux training, support, and custom software development. He has more than twenty-five years of experience working with UNIX and Linux systems and is the author of many best-selling books, including A Practical Guide to Linux® Commands, Editors, and Shell Programming, Second Edition, and A Practical Guide to Ubuntu Linux®, Third Edition, both from Prentice Hall.

Read an Excerpt

The Book

Whether you are an end user, a system administrator, or a little of each, this book explains with step-by-step examples how to get the most out of a Fedora or Red Hat Enterprise Linux (RHEL) system. In 28 chapters, this book takes you from installing a Fedora or Red Hat Enterprise Linux system through understanding its inner workings to setting up secure servers that run on the system.The Audience

This book is designed for a wide range of readers. It does not require you to have programming experience, but having some experience using a general-purpose computer is helpful. This book is appropriate for

  • Students who are taking a class in which they use Linux
  • Home users who want to set up and/or run Linux
  • Professionals who use Linux at work
  • System administrators who need an understanding of Linux and the tools that are available to them
  • Computer science students who are studying the Linux operating system
  • Programmers who need to understand the Linux programming environment
  • Technical executives who want to get a grounding in Linux

A Practical Guide to Fedora and Red Hat® Enterprise Linux®, College Edition, gives you a broad understanding of many facets of Linux, from installing Fedora/RHEL through using and customizing it. No matter what your background, this book gives you the knowledge you need to get on with your work. You will come away from this book understanding how to use Linux, and this book will remain a valuable reference for years tocome.Overlap

If you read A Practical Guide to Linux® Commands, Editors, and Shell Programming, you will notice some overlap between that book and the one you are reading now. The first chapter, and the chapters on the utilities, the filesystem, programming tools, and the appendix on regular expressions are very similar in the two books, as are the three chapters on the Bourne Again Shell (

bash). Chapters that appear in this book but not in A Practical Guide to Linux® Commands, Editors, and Shell Programming include Chapters 2 and 3 (installation), Chapters 4 and 8 (Fedora/RHEL and the GUI), Chapter 10 (networking), all of the chapters in Part IV (system administration) and Part V (servers), and Appendix C (security).This Book Includes Fedora 8 on a DVD

A Practical Guide to Fedora and Red Hat® Enterprise Linux®, College Edition, includes a DVD that you can use to install or upgrade to Fedora 8. Chapter 2 helps you get ready to install Fedora. Chapter 3 provides step-by-step instructions for installing Fedora from this DVD. This book guides you through learning about, using, and administrating Fedora or Red Hat Enterprise Linux.What Is New in This Edition?

The college edition of A Practical Guide to Fedora and Red Hat® Enterprise Linux® covers Fedora 8 and Red Hat Enterprise Linux version 5. There is a new section on LDAP in Chapter 21. Chapters 2 and 3 cover booting into a live session and installing from live media. All the changes, large and small, that have been made to Fedora/RHEL since the previous edition of this book have been incorporated into the explanations and examples.Features of This Book

This book is designed and organized so you can get the most out of it in the shortest amount of time. You do not have to read this book straight through in page order. Once you are comfortable using Linux, you can use this book as a reference: Look up a topic of interest in the table of contents or index and read about it. Or think of the book as a catalog of Linux topics: Flip through the pages until a topic catches your eye. The book includes many pointers to Web sites where you can get additional information: Consider the Internet an extension of this book.

A Practical Guide to Fedora and Red Hat® Enterprise Linux®, College Edition, is structured with the following features:

  • In this book, the term Fedora/RHEL refers to both Fedora and Red Hat Enterprise Linux. Features that apply to only one operating system or the other are marked as such using these indicators:

    FEDORA or


  • Optional sections enable you to read the book at different levels, returning to more difficult material when you are ready to delve into it.
  • Caution boxes highlight procedures that can easily go wrong, giving you guidance before you run into trouble.
  • Tip boxes highlight ways that you can save time by doing something differently or situations when it may be useful or just interesting to have additional information.
  • Security boxes point out places where you can make a system more secure. The security appendix presents a quick background in system security issues.
  • Concepts are illustrated by practical examples throughout the book.
  • Chapter summaries review the important points covered in each chapter.
  • Review exercises are included at the end of each chapter for readers who want to further hone their skills. Answers to even-numbered exercises are at www.sobell.com.
  • This book provides resources for finding software on the Internet. It also explains how download and install software using

    yum, BitTorrent, and, for Red Hat Enterprise Linux, Red Hat Network (RHN).

  • The glossary defines more than 500 common terms.
  • The book describes in detail many important GNU tools, including the

    gcc C compiler, the

    gdb debugger, the GNU Configure and Build System,

    make, and


  • Pointers throughout the text provide help in obtaining online documentation from many sources including the local system, the Red Hat Web site, the Fedora Project Web site, and other locations on the Internet.
  • Many useful URLs (Internet addresses) point to sites where you can obtain software, security programs and information, and more.
  • The comprehensive index helps you locate topics quickly and easily.
Key Topics Covered in This Book

This book contains a lot of information. This section distills and summarizes its contents. You may want to review the table of contents for more detail. This book covers the following.Installation

  • Describes how to download from the Internet and burn both Fedora Desktop Live Media CD/DVDs and Fedora Install Media DVDs.
  • Helps you plan the layout of the system’s hard disk and assists you in using Disk Druid or the GNOME graphical partition editor (

    gparted) to partition the hard disk.

  • Explains how to use the Logical Volume Manager (LVM2) to set up, grow, and migrate logical volumes, which are similar in function to traditional disk partitions.
  • Discusses booting into a live Fedora session and installing Fedora from that session.
  • Describes in detail how to install Fedora/RHEL from a DVD, CD, a hard disk, or over a network using FTP, NFS, or HTTP.
  • Covers boot command line parameters (

    FEDORA), responses to the boot: prompt (

    RHEL), and explains how to work with Anaconda, Fedora/RHEL’s installation program.

  • Covers the details of customizing the X.org version of the X Window System.
Working with Fedora/RHEL
  • Introduces the graphical desktop (GUI) and explains how to use desktop tools including the panel, Panel menu, Main menu, Window Operations menu, Desktop menu, Desktop switcher, and terminal emulator.
  • Presents the KDE desktop and covers using Konqueror to manage files, start programs, and browse the Web.
  • Covers the GNOME desktop and the Nautilus file manager.
  • Explains how to customize your desktop to please your senses and help you work more efficiently.
  • Covers the Bourne Again Shell (

    bash) in three chapters, including an entire chapter on shell programming that includes many sample shell scripts.

  • Explains the command line interface (CLI) and introduces more than 30 command line utilities.
  • Presents a tutorial on the

    vim (

    vi work-alike) textual editor.

  • Covers types of networks, network protocols, and network utilities.
  • Explains hostnames, IP addresses, and subnets, and explores how to use

    host and

    dig to look up domain names and IP addresses on the Internet.

  • Covers distributed computing and the client/server model.
System Administration
  • Explains how to use the Fedora/RHEL

    system-config-* tools to configure the display, DNS, Apache, a network interface, and more. You can also use these tools to add users and manage local and remote printers. (See page 429 for a list of these tools.)

  • Describes how to use the following tools to download software and keep a system current:
  • yum—Downloads and installs software packages from the Internet, keeping a system up-to-date and resolving dependencies as it processes the packages. You can run

    yum manually or set it up to run automatically every night.

  • BitTorrent—Good for distributing large amounts of data such as the Fedora installation DVD and the live media CD/DVD. The more people who use BitTorrent to download a file, the faster it works.
  • up2date—The Red Hat Enterprise Linux tool for keeping system software current.

  • Covers graphical system administration tools, including the Main menu, GNOME and KDE menu systems, KDE Control Center, and KDE Control panel.
  • Explains system operation, including the boot process, init scripts, emergency mode, rescue mode, single-user and multiuser modes, and steps to take if the system crashes.
  • Describes files, directories, and filesystems, including types of files and filesystems,

    fstab (the filesystem table), automatically mounted filesystems, filesystem integrity checks, filesystem utilities, and fine-tuning of filesystems.

  • Covers backup utilities including



    dump, and


  • Explains how to customize and build a Linux kernel.
  • Helps you manage basic system security issues using

    ssh (secure shell), vsftpd (secure FTP server), Apache (the httpd Web server),

    iptables (firewall), and more.

  • Presents a complete section on SELinux (Security Enhanced Linux), including instructions for using

    system-config-selinux to configure SELinux.

  • Covers using

    system-config-firewall to set up a basic firewall to protect the system.

  • Provides instructions on using

    iptables to share an Internet connection over a LAN and to build advanced firewalls.

  • Describes how to set up a

    chroot jail to protect a server system.

  • Explains how to use TCP wrappers to control who can access a server.
  • Covers controlling servers using the xinetd superserver.
Clients and Servers
  • Explains how to set up and use the most popular Linux servers, providing a chapter on each: Apache, Samba, OpenSSH, sendmail, DNS, NFS, FTP, NIS and LDAP,

    iptables (all of which are included with Fedora/RHEL).

  • Describes how to set up a CUPS printer server.
  • Describes how to set up and use a DHCP server.
  • Covers programming tools including the GNU

    gcc compiler, the

    gdb debugger,

    make, and CVS for managing source code.

  • Explains how to debug a C program.
  • Describes how to work with shared libraries.
  • Provides a complete chapter on shell programming using

    bash, including many examples.


Chapter 1 presents a brief history of Linux and explains some of the features that make it a cutting-edge operating system. The “Conventions Used in This Book” (page 16) section details the typefaces and terminology this book uses.

Part I, “Installing Fedora and Red Hat Enterprise Linux,” discusses how to install Fedora/RHEL. Chapter 2 presents an overview of the process of installing Fedora/RHEL, including hardware requirements, downloading and burning a CD/DVD, and planning the layout of the hard disk. Chapter 3 is a step-by-step guide to installing either Fedora or Red Hat Enterprise Linux and covers installing from a CD/DVD, a live session, a local hard disk, and installing over the network using FTP, NFS, or HTTP. It also shows how to set up the X Window System and customize your graphical user interface (GUI).

Part II, “Getting Started with Fedora and Red Hat Enterprise Linux,” familiarizes you with Fedora/RHEL, covering logging in, the GUI, utilities, the filesystem, and the shell. Chapter 4 introduces desktop features, including the panel and the Main menu; explains how to use Konqueror to manage files, run programs, and browse the Web; and covers finding documentation, dealing with login problems, and using the window manager. Chapter 5 introduces the shell command line interface, describes more than 30 useful utilities, and presents a tutorial on the

vim text editor. Chapter 6 discusses the Linux hierarchical filesystem, covering files, filenames, pathnames, working with directories, access permissions, and hard and symbolic links. Chapter 7 introduces the Bourne Again Shell (

bash) and discusses command line arguments and options, redirecting input to and output from commands, running programs in the background, and using the shell to generate and expand filenames.

TIP: Experienced users may want to skim Part II
If you have used a UNIX or Linux system before, you may want to skim over or skip some or all of the chapters in Part II. All readers should take a look at “Conventions Used in This Book” (page 16), which explains the typographic and layout conventions that this book uses, and “Getting the Facts: Where to Find Documentation” (page 114), which points out both local and remote sources of Linux/Fedora/RHEL documentation.

Part III, “Digging into Fedora and Red Hat Enterprise Linux,” goes into more detail about working with the system. Chapter 8 discusses the GUI and includes a section on how to run a graphical program on a remote system and have the display appear locally. The section on GNOME describes GNOME utilities and explains how to use the Nautilus file manager, including its spatial view, while the section on KDE explains more about Konqueror and KDE utilities. Chapter 9 extends the

bash coverage from Chapter 7, explaining how to redirect error output, avoid overwriting files, and work with job control, processes, startup files, important shell builtin commands, parameters, shell variables, and aliases. Chapter 10 explains networks, network security, and the Internet and discusses types of networks, subnets, protocols, addresses, hostnames, and various network utilities. The section on distributed computing describes the client/server model and some of the servers you can use on a network. Details of setting up and using clients and servers are reserved until Part V.

Part IV covers system administration. Chapter 11 discusses core concepts such as Superuser, SELinux (Security Enhanced Linux), system operation, general information about how to set up a server, DHCP, and PAM. Chapter 12 explains the Linux filesystem, going into detail about types of files, including special and device files, the use of

fsck to verify the integrity of and repair filesystems, and the use of

tune2fs to change filesystem parameters. Chapter 13 explains how to keep a system up-todate by downloading software from the Internet and installing it, including examples of using yum, BitTorrent, and RHEL’s

up2date utility. Chapter 14 explains how to set up the CUPS printing system so you can print on the local system as well as on remote systems. Chapter 15 details customizing and building a Linux kernel. Chapter 16 covers additional administration tasks, including setting up user accounts, backing up files, scheduling automated tasks, tracking disk usage, and solving general problems. Chapter 17 explains how to set up a local area network (LAN), including both hardware (including wireless) and software setup.

Part V goes into detail about setting up and running servers and connecting to them with clients. The chapters in this part of the book cover the following clients/servers:

  • OpenSSH—Set up an OpenSSH server and use


    scp, and

    sftp to communicate securely over the Internet.

  • FTP—Set up a vsftpd secure FTP server and use any of several FTP clients to exchange files with the server.
  • Mail—Configure sendmail and use Webmail, POP3, or IMAP to retrieve email; use SpamAssassin to combat spam.
  • NIS and LDAP—Set up NIS to facilitate system administration of a LAN and LDAP to distribute information and authenticate users over a network.
  • NFS—Share filesystems between systems on a network.
  • Samba—Share filesystems and printers between Windows and Linux systems.
  • DNS/BIND—Set up a domain nameserver to let other systems on the Internet know the names and IP addresses of local systems they may need to contact.
  • iptables—Share a single Internet connection between systems on a LAN and set up a firewall to protect local systems.
  • Apache—Set up an HTTP server that serves Web pages that browsers can display.

Part VI covers programming. Chapter 27 discusses programming tools and environments available under Fedora/RHEL, including the C programming language and debugger,

make, shared libraries, and source code management using CVS. Chapter 28 goes into greater depth about shell programming using

bash, with the discussion being enhanced by extensive examples.

Part VII includes appendixes on regular expressions, helpful Web sites, system security, and free software. This part also includes an extensive glossary with more than 500 entries and a comprehensive index.Supplements

The author’s home page (www.sobell.com) contains downloadable listings of the longer programs from this book as well as pointers to many interesting and useful Linux sites on the World Wide Web, a list of corrections to the book, answers to even-numbered exercises, and a solicitation for corrections, comments, and suggestions.

Table of Contents

List of JumpStarts xxxix

Preface xli

Chapter 1: Welcome to Linux 1

The History of UNIX and GNU–Linux 2

What Is so Good About Linux? 6

Overview of Linux 11

Additional Features of Linux 16

Conventions Used in This Book 18

Chapter Summary 20

Exercises 20

Part I: Installing Fedora/RHEL Linux 23

Chapter 2: Installation Overview 25

The Desktop Live CD and the Install DVD 26

More Information 27

Planning the Installation 28

The Installation Process 43

Downloading and Burning a CD/DVD 44

Gathering Information About the System 48

Chapter Summary 49

Exercises 50

Advanced Exercises 50

Chapter 3: Step-by-Step Installation 51

Running a Fedora Live Session 52

Installing Fedora/RHEL 54

Installation Tasks 67

gnome-control-center/Displays: Configures the Display 85

Chapter Summary 85

Exercises 86

Advanced Exercises 86

Part II: Getting Started with Fedora/RHEL 87

Chapter 4: Introduction to Fedora and Red Hat Enterprise Linux 89

Curbing Your Power (Superuser/root Privileges) 90

A Tour of the Fedora/RHEL Desktop 90

Getting the Most Out of the Desktop 112

Updating, Installing, and Removing Software Packages 122

Where to Find Documentation 125

More About Logging In 134

Working from the Command Line 139

Chapter Summary 142

Exercises 143

Advanced Exercises 144

Chapter 5: The Linux Utilities 145

Special Characters 146

Basic Utilities 147

Working with Files 149

(Pipe): Communicates Between Processes 156

Four More Utilities 157

Compressing and Archiving Files 159

Locating Utilities 164

Displaying User and System Information 166

Communicating with Other Users 170

Email 171

Tutorial: Using vim to Create and Edit a File 172

Chapter Summary 179

Exercises 182

Advanced Exercises 183

Chapter 6: The Linux Filesystem 185

The Hierarchical Filesystem 186

Directory Files and Ordinary Files 187

Pathnames 191

Working with Directories 194

Access Permissions 202

ACLs: Access Control Lists 208

Links 213

Chapter Summary 219

Exercises 221

Advanced Exercises 222

Chapter 7: The Shell 225

The Command Line 226

Standard Input and Standard Output 232

Running a Command in the Background 242

Filename Generation/Pathname Expansion 244

Builtins 249

Chapter Summary 250

Exercises 251

Advanced Exercises 252

Part III: Digging into Fedora/RHEL 255

Chapter 8: Linux GUIs: X and GNOME 257

X Window System 258

The Nautilus File Browser Window 266

The Nautilus Spatial View (RHEL) 272

GNOME Utilities 273

Chapter Summary 277

Exercises 277

Advanced Exercises 278

Chapter 9: The Bourne Again Shell 279

Background 280

Shell Basics 281

Parameters and Variables 301

Special Characters 315

Processes 316

History 319

Aliases 334

Functions 338

Controlling bash: Features and Options 340

Processing the Command Line 344

Chapter Summary 354

Exercises 356

Advanced Exercises 357

Chapter 10: Networking and the Internet 359

Introduction to Networking 360

Types of Networks and How They Work 362

Communicate Over a Network 381

Network Utilities 382

Distributed Computing 390

WWW: World Wide Web 400

Chapter Summary 402

Exercises 403

Advanced Exercises 404

Part IV: System Administration 405

Chapter 11: System Administration: Core Concepts 407

Running Commands with root Privileges 409

The init Daemon 426

System Operation 448

Rescue Installed System 457

Securing a System 458

System Administration Tools 469

Setting Up a Server 477

DHCP: Configures Network Interfaces 489

nsswitch.conf: Which Service to Look at First 494

Getting Help 497

Chapter Summary 497

Exercises 498

Advanced Exercises 499

Chapter 12: Files, Directories, and Filesystems 501

Important Files and Directories 502

File Types 514

Filesystems 519

Chapter Summary 528

Exercises 528

Advanced Exercises 528

Chapter 13: Finding, Downloading, and Installing Software 531

Introduction 532

JumpStart: Installing and Removing Packages Using yum 534

Finding the Package That Holds an Application or File You Need 537

yum: Keeps the System Up-to-Date 538

BitTorrent 545

RPM: The RPM Package Manager 547

Installing Non-rpm Software 551

Keeping Software Up-to-Date 553

wget: Downloads Files Noninteractively 555

Chapter Summary 556

Exercises 557

Advanced Exercises 557

Chapter 14: Printing with CUPS 559

Introduction 560

Fedora/RHEL Configures a Local Printer Automatically 562

JumpStart I: Configuring a Printer Using system-config-printer 562

JumpStart II: Setting Up a Local or Remote Printer 565

Working with the CUPS Web Interface 568

Configuring Printers 570

Traditional UNIX Printing 577

Print from Windows 579

Printing to Windows 581

Chapter Summary 581

Exercises 582

Advanced Exercises 582

Chapter 15: Building a Linux Kernel 583

Downloading, Installing, and Prepping the Kernel Source Code 585

Configuring and Compiling the Linux Kernel 588

Installing the Kernel, Modules, and Associated Files 594

GRUB: The Linux Boot Loader 595

dmesg: Displays Kernel Messages 597

Chapter Summary 598

Exercises 598

Advanced Exercises 599

Chapter 16: Administration Tasks 601

Configuring User and Group Accounts 602

Backing Up Files 605

Scheduling Tasks 611

System Reports 615

Maintaining the System 617

MySQL 635

Chapter Summary 643

Exercises 643

Advanced Exercises 644

Chapter 17: Configuring and Monitoring a LAN 645

Setting Up the Hardware 646

Configuring the Systems 650

NetworkManager: Configures Network Connections 651

Setting Up Servers 656

Introduction to Cacti 657

More Information 668

Chapter Summary 668

Exercises 669

Advanced Exercises 669

Part V: Using Clients and Setting Up Servers 671

Chapter 18: OpenSSH: Secure Network Communication 673

Introduction to OpenSSH 674

Running the ssh, scp, and sftp OpenSSH Clients 677

Setting Up an OpenSSH Server (sshd) 688

Troubleshooting 695

Tunneling/Port Forwarding 696

Chapter Summary 698

Exercises 699

Advanced Exercises 699

Chapter 19 FTP: Transferring Files Across a Network 701

Introduction to FTP 702

Running the ftp and sftp FTP Clients 704

Setting Up an FTP Server (vsftpd) 712

Chapter Summary 726

Exercises 726

Advanced Exercises 726

Chapter 20: sendmail: Setting Up Mail Servers, Clients, and More 729

Introduction to sendmail 730

Setting Up a sendmail Mail Server 732

JumpStart I: Configuring sendmail on a Client 733

JumpStart II: Configuring sendmail on a Server 734

Working with sendmail Messages 735

Configuring sendmail 739

SpamAssassin 744

Additional Email Tools 749

Authenticated Relaying 754

Chapter Summary 756

Exercises 757

Advanced Exercises 757

Chapter 21: NIS and LDAP 759

Introduction to NIS 760

Running an NIS Client 763

Setting Up an NIS Server 769

LDAP 776

Setting Up an LDAP Server 779

Tools for Working with LDAP 784

Chapter Summary 788

Exercises 789

Advanced Exercises 789

Chapter 22: NFS: Sharing Directory Hierarchies 791

Introduction to NFS 793

Running an NFS Client 795

Setting Up an NFS Server 801

automount: Mounts Directory Hierarchies on Demand 811

Chapter Summary 814

Exercises 815

Advanced Exercises 815

Chapter 23: Samba: Linux and Windows File and Printer Sharing 817

Introduction to Samba 818

Running Samba Clients 822

Setting Up a Samba Server 826

Troubleshooting 840

Chapter Summary 843

Exercises 844

Advanced Exercises 844

Chapter 24: DNS/BIND: Tracking Domain Names and Addresses 845

Introduction to DNS 846

Setting Up a DNS Server 858

Configuring a DNS Server 866

Setting Up Different Types of DNS Servers 879

Chapter Summary 889

Exercises 890

Advanced Exercises 890

Chapter 25: system-config-firewall and iptables: Setting Up a Firewall 891

JumpStart: Building a Firewall Using system-config-firewall 893

Introduction to iptables 895

Building a Set of Rules Using iptables 902

Copying Rules to and from the Kernel 908

system-config-firewall: Generates a Set of Rules 909

Sharing an Internet Connection Using NAT 910

Chapter Summary 914

Exercises 914

Advanced Exercises 915

Chapter 26: Apache (httpd): Setting Up a Web Server 917

Introduction 918

Running an Apache Web Server 920

Filesystem Layout 923

Configuration Directives 925

The Fedora/RHEL httpd.conf File 947

Advanced Configuration 950

Troubleshooting 956

Modules 957

webalizer: Analyzes Web Traffic 963

MRTG: Monitors Traffic Loads 964

Error Codes 964

Chapter Summary 965

Exercises 965

Advanced Exercises 966

Part VI: Programming Tools 967

Chapter 27: Programming the Bourne Again Shell 969

Control Structures 971

File Descriptors 1003

Parameters and Variables 1006

Builtin Commands 1018

Expressions 1032

Shell Programs 1040

Chapter Summary 1050

Exercises 1052

Advanced Exercises 1053

Chapter 28: The Perl Scripting Language 1057

Introduction to Perl 1058

Variables 1066

Control Structures 1073

Working with Files 1082

Sort 1086

Subroutines 1087

Regular Expressions 1090

CPAN Modules 1095

Examples 1098

Chapter Summary 1101

Exercises 1102

Advanced Exercises 1102

Part VII: Appendixes 1103

Appendix A: Regular Expressions 1105

Characters 1106

Delimiters 1106

Simple Strings 1106

Special Characters 1106

Rules 1109

Bracketing Expressions 1110

The Replacement String 1110

Extended Regular Expressions 1111

Appendix Summary 1113

Appendix B: Help 1115

Solving a Problem 1116

Finding Linux-Related Information 1117

Specifying a Terminal 1122

Appendix C: Security 1125

Encryption 1126

File Security 1131

Email Security 1131

Network Security 1132

Host Security 1135

Security Resources 1140

Appendix Summary 1143

Appendix D: The Free Software Definition 1145

Glossary 1149

JumpStart Index 1199

File Tree Index 1201

Utility Index 1205

Main Index 1211

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews

A Practical Guide to Fedora and Red Hat Enterprise Linux 2.3 out of 5 based on 0 ratings. 3 reviews.
Anonymous More than 1 year ago
"Thnks blue!" I meow with a smile "hey we should get back to camp"
Anonymous More than 1 year ago
Lionblaze was with you when you both were kits...
Anonymous More than 1 year ago
The info for this product is WRONG!!! B&N is giving details on the SEVENTH EDITION and selling the SIXTH EDITION. I thought I was getting a product that covered Fedora 19, all I got was up to Fedora 15!!!