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.
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
Appendix A Hands-On Labs 595
Appendix B Answers to Hands-On Labs 607
|3||83||Text 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 <.
|3||89||Text correction: Error in Exercise 3.7 "Archiving and Extracting with tar"|
Step one contains a typographical error. "zxvf" should be "zcvf"
|3||91||Text correction: Errors in Table 3.3 |
All the commands listed in the table should begin with lowercase "l". The "Command" column should read:
|3||97||Text 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:
The command in step 7 should read:
/usr/sbin/logrotate -f /etc/logrotate.conf
|4||115||Text correction: Error in Exercise 4.3 "Installing Software with Yum"|
In step 3, the repoquery command should read:
repoquery -ql xorg-x11-apps
|5||134||Text 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
|6||176-7||Text 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.
|6||180||Text correction: Error in Exercise 6.6 "Setting Up Key-Based Authentication"|
In step 4, ssh_copy_id should read ssh-copy-id
|7||217||Text 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
|7||224||Text 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
|8||237||Text 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(/.*)?'
|8||239||Text 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
|8||239||Text correction: Error in header, Listing 8.4|
The header should read: Listing 8.4: Example lines from /var/log/audit/audit.log
|9||247||Correction to Figure 9.1: "Libvirt overview"|
The text in the topmost rectangle, "1.6 VIRT" should read: "libvirt"
|9||249||Addition 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"
|13||335||Text correction: Error in code under "Setting Up NFSv4"|
Under step 2, the line of code contains an extra space. The line should read:
|13||340||Text 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.
|13||341||Text 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:
The instructions fail to mention a final step. At the end of the exercise you must stop the autofs service.
|13||344-5||Text 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
|13||348||Text 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
|16||387||Text correction: Error in Listing 16.1|
The first line should read: [root@hnl conf]# cat httpd.conf
|16||401||Text correction: Omission in Exercise 16.5 "Setting Up an SSL-Based Virtual Host"|
Before beginning the exercise, use yum install mod_ssl
|17||451||Text 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).