You have to solve three of the five simulated RHCE-level problems correctly. Your time starts after you've answered all of the simulated RHCT problems correctly; thus, you'll have at least 1.5 hours for this part of the exam. Ideally, you'll have a friend or classmate help you prepare your computer. Assume that you have access to a network server with the RHEL installation files.
You may want to have your friend or classmate prepare additional questions. Some boot exercises can be easily created from the Scenario and Solution list in Chapter 16. Other exercises on network services can be created based on what you've learned in Chapters 7 and 9–15. Exercises related to adding, removing, and resizing logical volumes can be developed from the information in Chapter 8.
In these exercises, you'll be working with an RHEL computer with some key files messed up. Ideally, you'll have a friend or classmate help you prepare your computer. Assume that you have a network server with the RHEL installation files. This should be on a system with some free unpartitioned space on the hard drive, and one filesystem, /tmp, on a logical volume.
You'll also need a computer on which you can boot directly from your CD drive, so you can use the first Red Hat installation CD. (If you can boot from the USB, you can substitute a specially prepared boot USB drive described in Chapter 2.) Then walk away, and have the colleague who is preparing the exam take the following steps:
Copy and back up the /etc/inittab configuration file. One possible name is /etc/bak.inittab.
Open /etc/inittab file in a text editor.
Change the x in the id:x:initdefault line to 4.
Comment out the l4:4:wait:/etc/rc.d/rc 4 line in /etc/inittab. Save your changes.
Activate SELinux in enforcing mode.
Change the kernel directive in the GRUB configuration file (/boot/grub/grub.conf), to point the root directive as shown:
Open /etc/fstab, and comment out the directive associated with the /boot directory filesystem; the result should be similar to:
LABEL=/boot /boot ext3 defaults 1 2
Make sure that the Apache, NFS, sendmail, and vsFTP services aren't set to start in runlevel 4, but are set to start in other standard runlevels (2, 3, and 5). To make this work, you can use commands such as:
# chkconfig httpd on # chkconfig httpd --level 4 off
Disable SELinux protection for the Apache, NFS, and vsFTP server daemons. Use the SELinux Management Tool.
Set up a regular standard firewall with the system-config-securitylevel command. Don't allow in any special traffic.
Check your /etc/hosts.allow and /etc/hosts.deny files. If there are rules related to ftpd or ALL services in either file, comment them out.
Open the Samba configuration file, and comment out the [homes] stanza. If required, in the SELinux Management tool, disable the Allow Samba To Share Users Home Directories option.
Make sure you have a boot disc or USB key that can serve as a rescue disc. As the Red Hat Exam Prep guide requires the use of the first RHEL installation CD as a rescue disc, make sure your computer can boot from this CD.
Use the poweroff command to stop Linux.
Tell the RHCE candidate that he or she will face a challenge during the boot process, will need to make sure /boot is properly mounted, and will need to reduce the space available to the /tmp filesystem on a logical volume. Ask the candidate to make sure the NFS, sendmail, Apache, and vsFTP services are working and available to other systems. Suggest that if SELinux is deactivated, everything else has to be done perfectly.