Having a Red Hat RH302 certification within hand will be an advantage regarding those who want to hunt for a excellent job within IT discipline. Taking your Actualtests Red Hat RH302 online training course and having the RH302 certificate may enhance your profession opportunity. Actualtests.com offers 7/24 customer support. If you knowledge some difficulties during the research, please email to www.support@Actualtests.net. We additionally welcome your guidance and suggestions. All of us will perform our very best to serve anyone!


♥♥ 2021 NEW RECOMMEND ♥♥

Free VCE & PDF File for Red Hat RH302 Real Exam (Full Version!)

★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions

Free Instant Download NEW RH302 Exam Dumps (PDF & VCE):
Available on: http://www.surepassexam.com/RH302-exam-dumps.html

2021 Apr RH302 exam fees

Q11. CORRECT TEXT

Configure to deny the pop and imap connection from outside local LAN as well as station20.example.com.

Answer and Explanation:

1. vi /etc/hosts.deny

dovecot:ALL EXCEPT .example.com EXCEPT station20.example.com

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.


Q12. CORRECT TEXT

Create the partition having 100MB size and mount it on /mnt/neo

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? Where ? is your partition number

10. Or

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

12. mkdir /mnt/neo

13. vi /etc/fstab

14. Write:

15. /dev/hda? /mnt/neo ext3 defaults 1 2

16. Verify by mounting on current Sessions also:

17. mount /dev/hda? /mnt/neo


Q13. CORRECT TEXT

You have a directory /local. You want to make available that directory to all the members of example.com and trusted.cracker.org. But directory should available in read and write to all the members of example.com domain and read only to cracker.org domain.

Answer and Explanation:

1. vi /etc/exports

/local *.example.com(rw,sync) trusted.cracker.org(ro,sync)

Check the SELinux Context, should be like this:

-rw-r--r-- root root system_u:object_r:exports_t /etc/exports

Use the restorecon -R /etc command to restore the selinux context of the file.

2. service nfs start | restart

3. service portmap start | restart

4. chkconfig nfs on

5. chkconfig portmap on

In Linux to share the data we use the /etc/exports file. Pattern is:

Path client(permission)

Shared Directory Path, Client can be single host or domain name or ip address. Permission should specify without space with client lists in parentheses. NFS is RPC service so portmapper service should restart after starting the nfs service. We can specify multiple clients' list separating by space with different shared option.


Q14. CORRECT TEXT

You are giving the RHCE exam. Now you should boot your System properly. When you started your System, You got one message that.

INIT Entering runlevel 9

INIT: no more processes left in this runlevel

How will you boot your System properly?

Answer and Explanation:

You should know about the /etc/inittab file, where default runlevel will define. And Much more runlevel specific Scripts are called here.

Actually that problem will occur if you don't specify the default runlevel.

1. Reboot the system

2. Boot the System on single user mode.

Except for a normal boot of Linux, single-user mode is the most commonly used option. This is the system maintenance mode for experienced Linux administrators. It allows you to perform clean backups and restores to any partitions as needed from local hardware. It also allows you to run administration commands, recover or repair password and shadow password files, run filesystem checks, and so forth.

3. vi /etc/inittab and Write

id:runlevel:initdefault:

Standard Runlevels in RedHat Enterprise Linux


Q15. CORRECT TEXT

Create the user named jackie, curtin, david

Answer and Explanation:

1. useradd jackie

2. useradd curtin

3. useradd david

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.


Latest RH302 exam question:

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


Q17. CORRECT TEXT

Deny to john user login locally.

Answer and Explanation:

1. vi /etc/security/access.conf

-:john:LOCAL

2. vi /etc/pam.d/system-auth

account required /lib/security/pam_access.so

/etc/security/access.conf file helps to allow or deny login to users on the basis of origin.

Syntax of /etc/security/access.conf

permission : users : origins

The first field should be a "+" (access granted) or "-" (access denied) character.

The second field should be a list of one or more login names, group names, or ALL (always matches). A pattern of the form user@host is matched when the login name matches the "user" part, and when the "host" part matches the local machine name.

The third field should be a list of one or more tty names (for non-networked logins), host names, domain names (begin with "."), host addresses, internet network numbers (end with "."), ALL (always matches) or LOCAL (matches any string that does not contain a "." character).

In our example denied to john user to login locally.


Q18. CORRECT TEXT

Successfully resolv to server1.example.com where your DNS server is 172.24.254.254

Answer and Explanation:

1. vi /etc/resolv.conf

nameserver 172.24.254.254

2. host server1.example.com

On every clients, DNS server is specified in /etc/resolv.conf. When you request by name it tries to resolve from DNS server.


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


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