The RH302 exam is the first along with necessary action to get the actual Red Hat Red Hat certification. The RH302 actual exam tests a candidate?¡¥s ability and expertise in actual implementation. You can take the Red Hat RH302 online course for you to prepare the actual Red Hat exam. You can furthermore take a quiz before buy the actual Red Hat Red Hat products. Nonetheless, its hard for you for you to choose any proper Red Hat RH302 training materials as a result of the quite a few varieties involving Red Hat Red Hat exam questions and answers in the market. We are proud with the passing ratio. Its our honor and duty for you to offer you the best services. Customer support is online at anytime, please make contact with us and express the questions or advice and suggestions. Your satisfaction is our perpetual objective.
2021 Mar RH302 practice exam
Q81. CORRECT TEXT
Create one partitions having size 100MB and mount it on /data.
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?
Or
mke2fs -j /dev/hda? àTo create ext3 filesystem.vi /etc/fstab
Write:
/dev/hda? /data ext3 defaults 0 0
11. Verify by mounting on current Sessions also:
mount /dev/hda? /data
Q82. 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.
Q83. CORRECT TEXT
Your Local Domain is example.com. Configure the send mail server for you local LAN. As well as enable the pop and pop secured protocol.
Answer and Explanation:
1. vi /etc/mail/local-host-names
example.com
2. vi /etc/mail/sendmail.mc
dnl # DEAMON_OPTIONS(`Port=smtp,Addr=127.0.0.1,Name=MTA`)dnl
3. m4 /etc/mail/sendmail.mc >/etc/mail/sendmail.cf
4. vi /etc/mail/access
192.168.0 RELAY
example.com RELAY
5. service sendmail start | restart
6. chkconfig dovecot on
7. vi /etc/dovecot.conf
protocols = pop3 pop3s
8. service dovecot start | restart
9. chkconfig dovecot on
/etc/mail/local-host-names file contains the aliases to hostname. Mail server program reads the
/etc/mail/sendmail.cf. To change the configuration on mail server, we should edit the
/etc/mail/sendmail.mc file and should generate the sendmail.cf using m4 command.
By default sendmail server allows to connect to local host only. So we should edit the
/etc/mail/sendmail.mc file to allow connect to other hosts.
By default sendmail server will not forward mail. we should specify on /etc/mail/access to relay or to block mail coming from domain or network or individual email address.
By default dovecot service start only the imap protocol. To start pop protocol with dovecot, we should write in /etc/dovecot.conf file.
Q84. CORRECT TEXT
Boot your System Successfully on runlevel 3. (Next Question)
Answer and Explanation:
This is boot related problem. There will be same questions repeated two times but problem is different.
First When you restart the system you will get the Error:
File Not Found
mount: error 15 mounting ext3
mount: error 2 mounting none
switchroot: mount failed: 22
umount /initrd/dev/: 2
Kernel Panic: no syncing: Attempted to kill init !
Restart the System
Check the grub boot loader configuration by pressing e shortcut key.
You will see like:
root (hd0,0)
kernel /vmlinuz-2.6.9-5.EL ro root= / rhgb quiet
initrd /initrd-2.6.9-5.EL.img
OR
root (hd0,0)
kernel /vmlinuz-2.6.9-5.EL ro root=LABEL=/root rhgb quiet
initrd /initrd-2.6.9-5.EL.img
Then Edit Boot loader to make like
root (hd0,0)
kernel /vmlinuz-2.6.9-5.EL ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-5.EL.img
Check all lines and edit as same as above. Press b to boot the system
After booting the system you should correct the /etc/grub.conf file.
If still you are getting Error like File not found, it seems that either kernel file or initrd file is missing.
To troubleshoot with these problem, boot the system on rescue mode.
i. linux rescue
ii. chroot /mnt/sysimage
iii. Check the files on /boot, if not available install the kernel package from ftp or nfs server
iv. Create the initrd image file on boot using: mkinitrd initrd-2.6.9-5.EL.img `uname -r`
Q85. CORRECT TEXT
Configure the telnet connection only from your local LAN (192.168.0.0/24) between 9-17pm.
Answer and Explanation:
1. vi /etc/xinetd.d/telnet
service telnet {
only_from = 192.168.0.0/24
access_times = 09:00-17:00
}
2. chkconf telnet on
3. service xinetd restart
xinetd based services can manage by specifying host and time parameters. Only_from means connection allowed network, remaining hosts explicitly deny. access_times specify when service is available.
Improve RH302 free practice test:
Q86. CORRECT TEXT
You have ftp site named ftp.example.com. You want to allow anonymous users to upload files on you ftp site. Configure to allow anonymous to upload the files.
Answer and Explanation:
1. vi /etc/vsftpd/vsftpd.conf
anon_upload_enable=yes
chown_uploads=yes
chown_username=username
2. service vsftpd start| restart
3. directory owner should be ftp user: chown ftp directory path allowed to upload files.
4. Write permission should be set to owner user.
By default anonymous user can only download files from the ftp. Should write
anon_upload_enable=yes to enable anonymous upload files. Default Directory for anonymous is /var/ftp.
Q87. CORRECT TEXT
One New Kernel is released named kernel-hugemem. Kernel is available on ftp://server1.example.com under pub directory for anonymous. Install the Kernel and make previous new kernel is default to boot System.
Answer and Explanation:
2. rpm -ivh ftp://server1.example.com/pub/kernel-hugemem-*
2. vi /etc/grub.conf
Set the default to new kernel
default=0
Example of /etc/grub.conf
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux ES (2.6.9-5.ELhugemem)
root (hd0,0)
kernel /vmlinuz-2.6.9-5.ELhugemem ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.9-5.ELhugemem.img
title Red Hat Enterprise Linux ES (2.6.9-5.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-5.EL ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.9-5.EL.img
rpm command is used to install, update and remove the rpm package. -ivh option is install, verbose, and display the hash mark.
Q88. CORRECT TEXT
There are two different networks, 192.168.0.0/24 and 192.168.1.0/24. Your System is in 192.168.0.0/24 Network. One RHEL 5 Installed System is going to use as a Router. All required configuration is already done on Linux Server. Where 192.168.0.254 and 192.168.1.254 IP Address are assigned on that Server. How will make successfully ping to 192.168.1.0/24 Network's Host?
Answer and Explanation:
1. vi /etc/sysconfig/network
GATEWAY=192.168.0.254
OR
vi /etc/sysconf/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.0.?
NETMASK=255.255.255.0
GATEWAY=192.168.0.254
2. service network restart
Q89. 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
Q90. CORRECT TEXT
Deny to all users except root to run cron schedule.
Answer and Explanation:
1. vi /etc/cron.allow
root
or
vi /etc/cron.deny
Write all user name to deny.
/etc/cron.allow, /etc/cron.deny file is used to control users to allow or deny. If /etc/cron.allow file is created only that users are allowed to run cron schedule. Another way to deny to users is /etc/cron.deny write all user name on single line.