getcertified4sure.com

RH302 guidance(91 to 100) for IT learners: Apr 2021 Edition




2021 Apr RH302 free practice exam

Q91. CORRECT TEXT

You are giving RHCE exam. Examiner gave you the Boot related problem and told to you that make successfully boot the System. When you started the system, System automatically asking the root password for maintenance. How will you fix that problem?

Answer and Explanation:

Maintenance mode also known as emergency mode. System boots on emergency mode when file system error occurred. It is due to unknown partition, bad filesystem specified in /etc/fstab. To slove follow the steps

1. Give the Root password

2. fdisk -l à Verify the Number of parations.

3. Identify the Root partition, e2label /dev/hda1, e2label /dev/hda2.....

4. Remount the root partation on rw mode: mount -o remount,defaults /dev/hda6 /

5. vi /etc/fstab

Correct all partitions, mount point, mount options, file system etc.

6. Press ctrl+d


Q92. CORRECT TEXT

Create one partitions having size 100MB and mount it on /data.

Answer and Explanation:

1. Use fdisk /dev/hda à To create new partition.

2. Type n à For New partitions

3. It will ask for Logical or Primary Partitions. Press l for logical.

4. It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.

5. Type the Size: +100M à You can Specify either Last cylinder of Size here.

6. Press P to verify the partitions lists and remember the partitions name.

7. Press w to write on partitions table.

8. Either Reboot or use partprobe command.

9. Use mkfs -t ext3 /dev/hda?

Or

mke2fs -j /dev/hda? à To create ext3 filesystem.

10. vi /etc/fstab

Write:

/dev/hda? /data ext3 defaults 1 2

11. Verify by mounting on current Sessions also:

mount /dev/hda? /data


Q93. 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


Q94. CORRECT TEXT

Make Secondary belongs the both users on sysadmin group.

Answer and Explanation:

1. usermod -G sysadmin john

2. usermod -G sysadmin jane

3. Verify by reading /etc/group file

Using usermod command we can make user belongs to different group. There are two types of group one primary and another is secondary. Primary group can be only one but user can belongs to more than one group as secondary.

usermod -g groupname username à To change the primary group of the user

usermod -G groupname username à To make user belongs to secondary group.


Q95. 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 all logs of mail service to mail into log server.


Q96. CORRECT TEXT

Who ever creates the files/directories on /data group owner should be automatically should be the same group owner of /data.

Answer and Explanation:

1. chmod g+s /data

2. Verify using: ls -ld /data

Permission should be like:

drwxrws--- 2 root sysadmin 4096 Mar 16 18:08 /data

If SGID bit is set on directory then who every users creates the files on directory group owner automatically the owner of parent directory.

To set the SGID bit: chmod g+s directory

To Remove the SGID bit: chmod g-s directory


Q97. CORRECT TEXT

Add a new logical partition having size 100MB and create the /data which will be the mount point for the new partition.

Answer and Explanation:

Use fdisk /dev/hda àTo create new partition.Type n àFor New partitionsIt will ask for Logical or Primary Partitions. Press l for logical.It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.Type the Size: +100M àYou can Specify either Last cylinder of Size here.Press P to verify the partitions lists and remember the partitions name.Press w to write on partitions table.Either Reboot or use partprobe command.Use mkfs -t ext3 /dev/hda?Ormke2fs -j /dev/hda? àTo create ext3 filesystem.vi /etc/fstabWrite:/dev/hda? /data ext3 defaults 0 0Verify by mounting on current Sessions also:mount /dev/hda? /data


Q98. CORRECT TEXT

Configure to allow the ssh service only from 192.168.0.0/24 except 192.168.0.4

Answer and Explanation:

1. vi /etc/hosts.deny

sshd: 192.168.0. EXCEPT 192.168.0.4

We can secure the services using tcp_wrappers. There are main two files, /etc/hosts.allow and /etc/hosts.deny.

There will be three stage access checking

-Is access explicitly permitted? Means permitted from /etc/hosts.allow?

- Otherwise, Is access explicitly denied? Means denied from /etc/hosts.deny?

- Otherwise, by default permit access if neither condition matched.

To deny the services we can configure /etc/hosts.deny file using ALL and EXCEPT operation.

Pattern of /etc/hosts.allow and /etc/hosts.deny file is:

Demon_list:client_list:options

In Client list can be either domain name or IP address.


Q99. CORRECT TEXT

Your System is configured in 192.168.0.0/24 Network and your nameserver is 192.168.0.254.

Make successfully resolve to server1.example.com.

Answer and Explanation:

Very Easy question, nameserver is specified in question,

1. vi /etc/resolv.conf

nameserver 192.168.0.254

2. host server1.example.com


Q100. CORRECT TEXT

Install the Redhat Linux RHEL 4 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

/data à 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 cracker.org on 172.25.0.0/16 network. Your system is based on example.com domain.

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

Printing Supports

When installation will complete, your system will reboot. Jump for another Question.