★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions
Free Instant Download NEW RH302 Exam Dumps (PDF & VCE):
Available on:
https://www.certleader.com/RH302-dumps.html
It is more faster and easier to pass the Red Hat RH302 exam by using 100% Guarantee Red Hat Red Hat Certified Engineer on Redhat Enterprise Linux 5 (Labs) questuins and answers. Immediate access to the Improve RH302 Exam and find the same core area RH302 questions with professionally verified answers, then PASS your exam with a high score now.
2021 Apr RH302 free practice test
Q131. 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
Q132. CORRECT TEXT
You are the Network Engineer of example.com domain. Configure to allow users user1, user2 and user3 to login only between 9am to 17pm on very day.
Answer and Explanation:
1. vi /etc/security/time.conf
login;*;user1|user2|user3;Al0900-1700
2. vi /etc/pam.d/login
account required pam_time.so
For Time based authentication, we should configured in /etc/security/time.conf
Syntax of /etc/security/time.conf
services;ttys;users;times
services
is a logic list of PAM service names that the rule applies to.
ttys
is a logic list of terminal names that this rule applies to.
users
is a logic list of users to whom this rule applies.
times
the format here is a logic list of day/time-range entries the days are specified by a sequence of two character entries, MoTuSa for example is Monday Tuesday and Saturday. Note that repeated days are unset MoMo = no day, and MoWk = all weekdays bar Monday. The two character combinations accepted are
Mo Tu We Th Fr Sa Su Wk Wd Al
the last two being week-end days and all 7 days of the week respectively. As a final example, AlFr means all days except Friday.
pam_time modules checks the file /etc/security/time.conf for authentication. So, we should call the pam_time modules in /etc/pam.d/login.
Q133. CORRECT TEXT
Configure the Slave DNS for example.com domain where master DNS is 192.100.0.254.
Answer and Explanation:
Slave DNS is the backup of master DNS. Automatically within a certain time slave DNS synchronizes with the Master DNS server.
1. vi /var/named/chroot/etc/named.conf
zone "example.com" IN {
type slave;
masters { 192.100.0.254; };
file "example.com.zone";
};
named-checkconf command checks the syntax for /var/named/chroot/etc/named.conf file.service named start | restart
Q134. CORRECT TEXT
There is a server having 172.24.254.254 and 172.25.254.254. Your System lies on 172.24.0.0/16.
Make successfully ping to 172.25.254.254 by Assigning following IP: 172.24.0.x Where x is your station number.
Answer and Explanation:
1. vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=x.x.x.x
NETMASK=x.x.x.x
2. Enter the IP Address as given station number by your examiner: example: 172.24.0.1
3. Enter Subnet Mask
4. Enter Default Gateway and primary name server
5. press on ok
6. ifdown eth0
7. ifup eth0
8. verify using ifconfig
In the lab server is playing the role of router, IP forwarding is enabled. Just set the Correct IP and gateway, you can ping to 172.25.254.254.
Q135. CORRECT TEXT
Add a user named user4 and make primarily belongs to training group. As well account should expire on 30 days from today.
Answer and Explanation:
1. useradd username
2. passwd username
3. usermod -e "date"
example: usermod -e "12 Feb 2006" user4
Verify: chage -l user4
Up to the minute RH302 exam question:
Q136. CORRECT TEXT
Create the user named user1, user2, user3
Answer and Explanation:
2. useradd user1
3. useradd user2
4. useradd user3
5. passwd user1
6. passwd user2
7. passwd user3
We create the user using useradd command and we change the password of user using passwd command. If you want to set the blank password use: passwd -d username.
Q137. CORRECT TEXT
All mails to my133t.org should get by marion user.
Answer and Explanation:
3. vi /etc/mail/virtusertable
@my133t.org marion
# service sendmail restart
/etc/mail/virtusertable file is used to send the mail coming for virtual user to real user. According to question, all mail to cracker.org should get by eric user so
@my133t.org eric : Which sends all mail of cracker.org to eric user.
Q138. CORRECT TEXT
Add a user named user4 and make primarily belongs to training group. As well account should expire on 30 days from today.
Answer and Explanation:
useradd usernamepasswd usernameusermod -e "date"
example: usermod -e "12 Feb 2006" user4
Verify: chage -l user4
Q139. CORRECT TEXT
Install the dialog-*
Answer and Explanation:
Questions asking you to install the dialog package from the server. In your Lab FTP server as well as NFS server are configured. You can install either through FTP or NFS.
1. Just Login to server1.example.com through FTP: ftp server1.example.com
2. Enter to pub directory: cd pub
3. Enter to RedHat/RPMS: cd RedHat/RPMS
4. Download the Package: mget dialog-*
5. Logout from the FTP server: bye
6. Install the package: rpm -ivh dialog-*
7. Verify the package either installed or not: rpm -q dialog
Q140. CORRECT TEXT
Boot your System Successfully on runlevel 3.
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:
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 !
This error occurred in your system before showing welcome redhat linux. That means problem in grub boot loader.
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.