Exam Code: RH302 (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Red Hat Certified Engineer on Redhat Enterprise Linux 5 (Labs)
Certification Provider: Red Hat
Free Today! Guaranteed Training- Pass RH302 Exam.
Q81. CORRECT TEXT
Configure the webserver for your local domain. Download a www.html file from
ftp.server1.example.com/pub/rhce and rename it as index.html.
Answer and Explanation:
Your local domain mean example.com domain. Lookup the example.com using host example.com you will get the IP address 192.168.0.254.
1. vi /etc/httpd/conf/httpd.conf
<VirtualHost 192.168.0.254>
ServerName sexample.com
DocumentRoot /var/www/example
DirectoryIndex index.html
ServerAdmin webmaster@example.com
</VirtualHost>
2. mkdir /var/www/example
3. Download the index.html file from the ftp server specified in question
4. Rename the www.html file to index.html
Check the SELinux context of index page , should like this:
-rw-r--r-- root root system_u:object_r:httpd_sys_content_t /var/www/html/index.html
If SELinux Context is mismatched, use the restorecon -R /var command
5. service httpd start|restart
6. chkconfig httpd on
7. check using: links http://example.com
Q82. CORRECT TEXT
Create the user named jeff, marion, harold
Answer and Explanation:
1. useradd jeff
2. useradd marion
3. useradd harold
useradd command is used to create the user. All user's information stores in /etc/passwd and user;s shadow password stores in /etc/shadow.
Q83. CORRECT TEXT
Raw printer named printerx where x is your station number is installed and shared on server1.example.com. Install the shared printer on your PC to connect shared printer using IPP Protocols. Your server is 192.168.0.254.
Answer and Explanation:
1. Open the Browser either firefox or links
2. Type : http://localhost:631
3. Click on Manage Printer
4. Click on Add Printer
5. Type Queue name like stationx and click on continue
6. Type Device type or printing Protocol: i.e Internet printing Protocol
7. Click on Continue
8. Type Device URL: ipp://server1.example.com/printers/printerx
9. Click on Continue
10. Select RAW Model printer
11. Click on Continue
12. Test by sending the printing job
Q84. CORRECT TEXT
There are Mail servers, Web Servers, DNS Servers and Log Server. Log Server is already configured. You should configure the mail server, web server and dns server to send the logs to log server.
Answer and Explanation:
According to question, log server is already configured. We have to configure the mail, web and dns server for log redirection.
In mail, web and dns server:
1. vi /etc/syslog.conf
mail.* @logserveraddress
2. service syslog restart
mail is the facility and * means the priority. It sends logs of mail services into log server.
Q85. CORRECT TEXT
Create the partition having 100MB size and mount it on /mnt/neo
Answer and Explanation:
18. Use fdisk /dev/hda àTo create new partition.
19. Type n àFor New partitions
20. It will ask for Logical or Primary Partitions. Press l for logical.
21. It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.
22. Type the Size: +100M àYou can Specify either Last cylinder of Size here.
23. Press P to verify the partitions lists and remember the partitions name.
24. Press w to write on partitions table.
25. Either Reboot or use partprobe command.
26. Use mkfs -t ext3 /dev/hda? Where ? is your partition number
27. Or
28. mke2fs -j /dev/hda? àTo create ext3 filesystem.
29. mkdir /mnt/neo
30. vi /etc/fstab
31. Write:
32. /dev/hda? /mnt/neo ext3 defaults 1 2
33. Verify by mounting on current Sessions also:
34. mount /dev/hda? /mnt/neo
Q86. CORRECT TEXT
You are new System Administrator and from now you are going to handle the system and your main task is Network monitoring, Backup and Restore. But you don't know the root password.
Change the root password to redhat and login in default Runlevel.
Answer and Explanation:
When you Boot the System, it starts on default Runlevel specified in /etc/inittab:
Id:?:initdefault:
When System Successfully boot, it will ask for username and password. But you don't know the root's password. To change the root password you need to boot the system into single user mode.
You can pass the kernel arguments from the boot loader.
1. Restart the System.
2. You will get the boot loader GRUB screen.
3. Press a and type 1 or s for single mode
ro root=LABEL=/ rhgb queit s
4. System will boot on Single User mode.
5. Use passwd command to change.
6. Press ctrl+d
Q87. CORRECT TEXT
Install the Redhat Linux RHEL 5 through NFS. Where your Server is server1.example.com having IP 172.24.254.254 and shared /var/ftp/pub. The size of the partitions are listed below:
/ à 1048
/home à 1028
/boot à 512
/var à 1028
/usr à 2048
Swap -> 1.5 of RAM Size
/storageà configure the RAID Level 0 of remaining all free space.
After completing the installation through NFS solve the following questions. There are two networks 172.24.0.0/16 and 172.25.0.0/16. As well as there are two domains example.com on 172.24.0.0/16 network and my133t.org on 172.25.0.0/16 network. Your system is based on example.com domain. SELinux should be in enforce mode.
Answer and Explanation:
1. Insert the CD on CD-ROM and start the system.
2. In Boot: Prompt type linux askmethod
3. It will display the language, keyboard selection.
4. It will ask you for the installation method.
5. Select the NFS Image from the list
6. It will ask the IP Address, Net mask, Gateway and Name Server. Select Use
Dynamic IP Configuration: because DHCP Server will be configured in your exam lab.
7. It will ask for the NFS Server Name and Redhat Enterprise Linux Directory.
Specify the NFS Server: 172.24.254.254
Directory: /var/ftp/pub
8. After Connecting to the NFS Server Installation start in GUI. Go up to the partition screen by selecting the different Options.
9. Create the partition According to the Question because Size and what-what partition should you create at installation time is specified in your question
10. Create the two RAID partitions having equal size of remaining all free space.
11. Click on RAID button
12. Type mount point /data
13. Select RAID Level 0
14. Click on ok
15. Then select the MBR Options, time zone and go upto package selections.
It is another Most Important Time of installation. Due to the time limit, you should care about the installation packages. At Exam time you these packages are enough.
X-Window System
GNOME Desktop
(these two packages are generally not required)
Administration Tools.
System Tools
Windows File Server
FTP Servers
Mail Servers
Web Servers
Network Servers
Editors
Text Based Internet
Server Configuration Tools
Base
Printing Supports
When installation will complete, your system will reboot. Jump for another Question.
Q88. CORRECT TEXT
We are working on /data initially the size is 2GB. The /dev/test0/lvtestvolume is mount on /data.
Now you required more space on /data but you already added all disks belong to physical volume.
You saw that you have unallocated space around 5 GB on your harddisk. Increase the size of lvtestvolume by 5GB.
Answer and Explanation:.
1. Create a partition having size 5 GB and change the syste id '8e'.
2. use partprobe command
3. pvcreate /dev/hda9 à Suppose your partition number is hda9.
4. vgextend test0 /dev/hda9 à vgextend command add the physical disk on volume group.
5. lvextend -L+5120M /dev/test0/lvtestvolume
6. verify using lvdisplay /dev/test0/lvtestvolume.
Q89. CORRECT TEXT
You are working as a System Administrator at Certkiller. Your Linux Server crashed and you lost every data. But you had taken the full backup of user's home directory and other System Files on /dev/st0, how will you restore from that device?
Answer and Explanation:
1. Go to on that directory where you want to restore.
2. restore -rf /dev/st0
To restore from backup we use the restore command. Here backup will restore from /dev/st0 on current Directory.
Q90. CORRECT TEXT
Your system is giving error while booting on Runlevel 5 . Make successfully boot your system in runlevel 5.
Answer and Explanation:
While you load the X Window System, you will get the problem. To troubleshoot follow the following steps:
1. Check the /tmp is full ?
2. Check your quota, hard limit is already crossed ?
3. Check xfs service is running ?
4. Boot the system on runlevel 3 and execute the system-config-display command
5. Edit the /etc/inittab to set default runlevel 5.
id:5:initdefault: