Skip to main content

Red Hat Enterprise Linux 6 Administration: Real World Skills for Red Hat Administrators



Red Hat Enterprise Linux 6 Administration: Real World Skills for Red Hat Administrators

Sander van Vugt

ISBN: 978-1-118-30129-6 February 2013 672 Pages


The definitive guide to administering a Red Hat Enterprise Linux 6 network

Linux professionals who need a go-to guide on version 6 of Red Hat Enterprise Linux (RHEL) will find what they need in this comprehensive Sybex book. It covers RHEL administration in detail, including how to set up and manage web and mail services, use RHEL in enterprise environments, secure it, optimize storage, configure for virtualization and high availability, and much more. It also provides a great study aid for those preparing for either the RHCSA or RHCE certification exam.

  • Red Hat is the Linux market leader, and Red Hat administrators are in demand
  • This Sybex guide is a comprehensive resource on Red Hat Enterprise Linux administration and useful for those preparing for one of the Red Hat certification exams
  • Covers setting up and managing web and mail services, using RHEL in enterprise environments, securing RHEL, and optimizing storage to fit your environment
  • Explores advanced RHEL configurations, including virtualization and high availability

Red Hat Enterprise Linux 6 Administration is the guide Linux professionals and Red Hat administrators need to stay current on the newest version.

Related Resources

Introduction xxvii

Assessment Test xxxiii

Part I Getting Familiar with Red Hat Enterprise Linux 1

Chapter 1 Getting Started with Red Hat Enterprise Linux 3

Chapter 2 Finding Your Way on the Command Line 41

Part II Administering Red Hat Enterprise Linux 67

Chapter 3 Performing Daily System Administration Tasks 69

Chapter 4 Managing Software 99

Chapter 5 Configuring and Managing Storage 121

Chapter 6 Connecting to the Network 155

Part III Securing Red Hat Enterprise Linux 187

Chapter 7 Working with Users, Groups, and Permissions 189

Chapter 8 Understanding and Configuring SELinux 229

Chapter 9 Working with KVM Virtualization 245

Chapter 10 Securing Your Server with iptables 269

Chapter 11 Setting Up Cryptographic Services 293

Part IV Networking Red Hat Enterprise Linux 313

Chapter 12 Configuring OpenLDAP 315

Chapter 13 Configuring Your Server for File Sharing 333

Chapter 14 Configuring DNS and DHCP 355

Chapter 15 Setting Up a Mail Server 375

Chapter 16 Configuring Apache on Red Hat Enterprise Linux 385

Part V Advanced Red Hat Enterprise Linux Configuration 411

Chapter 17 Monitoring and Optimizing Performance 413

Chapter 18 Introducing Bash Shell Scripting 467

Chapter 19 Understanding and Troubleshooting the Boot Procedure 505

Chapter 20 Introducing High-Availability Clustering 529

Chapter 21 Setting Up an Installation Server 561

Glossary 577

Appendix A Hands-On Labs 595

Appendix B Answers to Hands-On Labs 607

Index 625

ChapterPageDetailsDatePrint Run
383Text correction: Error in Exercise 3.4 "Running a Task from cron"
The command in step 3 is missing a final dot. It should read:
*/5 * * * * mail -s "hello root" root <.

389Text correction: Error in Exercise 3.7 "Archiving and Extracting with tar"
Step one contains a typographical error. "zxvf" should be "zcvf"

391Text correction: Errors in Table 3.3
All the commands listed in the table should begin with lowercase "l". The "Command" column should read:

397Text correction: Errors in Exercise 3.8 "Configuring Logging"
Step 3 should read "Close the log configuration file..."

The file contents listed in step 6 is missing braces and should read:

    rotate 1

The command in step 7 should read:

/usr/sbin/logrotate -f /etc/logrotate.conf

4115Text correction: Error in Exercise 4.3 "Installing Software with Yum"
In step 3, the repoquery command should read:

repoquery -ql xorg-x11-apps

5134Text correction: Error in Exercise 5.3 "Setting a File System Label"
In step 4, "label" in the mount command should be in caps: mount LABEL=mylabel /mnt

6176-7Text correction: Exercise 6.5 "Securing the SSH Server"
Before starting the exercise, use the command setenforce permissive. Without it, selinux will not allow sshd to offer its services on the default http port.

6180Text correction: Error in Exercise 6.6 "Setting Up Key-Based Authentication"
In step 4, ssh_copy_id should read ssh-copy-id

7217Text correction: Exercise 7.5 "Setting Permissions for Users and Groups"
In step 2, the owner on /data/sales should be set to lisa.sales, or the next exercise will not work. The step should read:

Before setting the permissions, change the owners of these directories to chown lisa.sales /data/sales and chown linda.account /data/account

7224Text correction: Errors in Exercise 7.7 "Refining Permissions Using ACLs"
Steps 4 and 5 should read as follows:

4. Use setfacl -m d:g:account:rx,g:sales:rwx /data/sales to set the default ACL for the directory sales.
5. Add the default ACL for the directory /data/account by using setfacl -m d:g:sales:rx,g:account:rwx /data/account

8237Text correction: Error in Exercise 8.3 "Applying File Contexts"
The semanage command is formatted incorrectly with regard to spaces. There should be a space between -f " and -t, and there should not be a space between '/web(/.*) and ?'
The command should read:

semanage fcontext -a -f " -t httpd_sys_content_t '/web(/.*)?'

8239Text correction: Misidentified command under "Working with SELinux Modules"
In the first full sentence at the top of the page, both instances of selinux should read semodule

8239Text correction: Error in header, Listing 8.4
The header should read: Listing 8.4: Example lines from /var/log/audit/audit.log

9247Correction to Figure 9.1: "Libvirt overview"
The text in the topmost rectangle, "1.6 VIRT" should read: "libvirt"

9249Addition to Exercise 9.2 "Preparing Your Server to Function as a KVM Hypervisor"
Add the following text to step 1: "If no yum groups are available, use yum -y install kvm libvirt virt-manager"

13335Text correction: Error in code under "Setting Up NFSv4"
Under step 2, the line of code contains an extra space. The line should read:

13340Text correction: Instructions for Exercise 13.4 "Creating an Automount Indirect Map"
A directory named /data was already configured according to instructions in Chapter 7. To avoid conflicts with this directory, change the name of the directory in step 1 to something else, such as /mydata.

13341Text correction: Errors in Exercise 13.5 "Creating an Automount Configuration for Home Directories"
In step 1 the /home export should be exported with the no_root_squash option. The line of code should read:

/home       *(rw,no_root_squash)

The instructions fail to mention a final step. At the end of the exercise you must stop the autofs service.

13344-5Text correction: Errors in Exercise 13.6 "Setting Up a Samba Server"
In order to be consistent with the relabeling in Exercise 13.7 on the following pages, change all occurances of /sambafiles to /sambashare

In step 5, the last line in the configuration should read:
valid users = lucy, linda, lori

13348Text correction: Error in filename under "Offering FTP Services"
The name of the configuration file in the first sentence of the third paragraph (third line from the bottom of the page) should read: /etc/vsftpd/vsptpd.conf

16387Text correction: Error in Listing 16.1
The first line should read: [root@hnl conf]# cat httpd.conf

16401Text correction: Omission in Exercise 16.5 "Setting Up an SSL-Based Virtual Host"
Before beginning the exercise, use yum install mod_ssl

17451Text correction: Error under "Tuning Memory"
The third sentence incorrectly states that virtual memory is the total amount of memory available on a server. Virtual memory is the total amount of addressable memory on a server, used for internal purposes only. Virtual memory by far exceeds the amount of RAM + swap (see the discussion of /proc/meminfo on pages 427-8).