Red Hat RH302 exam braindumps covers the core needs appearing in the RH302 real test. Your own achievement ratio will probably be enhanced with the aid of RH302 certification practice questions and answers, as well as the confidence will be boosted accordingly. You will definitely acquire through the Red Hat Red Hat RH302 exam. Or else, we present full refund or even another no cost Red Hat RH302 product for you. Dont acquire stressed about the RH302 genuine exam. As long as an individual prepare the idea by the Red Hat practice demos step by step, you are going to be undoubtedly pass. Dont wait for too lengthy, change your own career and also change your health.

2021 Mar RH302 vce

Q131. CORRECT TEXT

Set the Hostname station?.example.com where ? is your Host IP Address.

Answer and Explanation:

1. hostname station?.example.com à This will set the host name only for current session. To set hostname permanently.

2. vi /etc/sysconfig/network

HOSTNAME=station?.example.com

3. service network restart


Q132. CORRECT TEXT

There are two sites www.abc.com and www.example.com. Both sites are mappings to 192.100.0.X IP address where X is your Host address. Configure the Apache web server for these sites to make accessible on web.

Answer and Explanation:

1. vi /etc/httpd/conf/httpd.conf

NameVirtualHost 192.100.0.X

<VirtualHost www.abc.com>

ServerName www.abc.com

DocumentRoot /var/www/abc/

DirectoryIndex index.html

ServerAdmin webmaster@abc.com

ErrorLog logs/error_abc.logs

CustomLog logs/custom_abc.logs common

</VirtualHost>

<VirtualHost www.example.com>

ServerName www.example.com

DocumentRoot /var/www/example/

DirectoryIndex index.html

ServerAdmin webmaster@example.com

ErrorLog logs/error_example.logs

CustomLog logs/custom_example.logs common

</VirtualHost>

2. Create the directory and index page on specified path. (Index page can download from

ftp://server1.example.com at exam time)

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

3. service httpd start| restart

4. chkconfig httpd on

5. links http://www.abc.com

6. links http://www.example.com

For Name based Virtual Hosting, we should specified the IP address on which we are going to host the multiple sites using NameVirtualHost options.

* ServerName means you FQDN, already lookup on DNS

* DirectoryRoot path for web documents for this site.

* DirectoryIndex default page for websites.


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


Q134. CORRECT TEXT

Create the user named jane and john.

Answer and Explanation:

1. useradd jane

2. useradd john

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.


Q135. CORRECT TEXT

Create the directory /data and group owner should be the sysadmin group.

Answer and Explanation:

1. chgrp sysadmin /data

2. Verify using ls -ld /data command. You should get like

drwxr-x--- 2 root sysadmin 4096 Mar 16 17:59 /data

chgrp command is used to change the group ownership of particular files or directory.

Another way you can use the chown command.

chown root:sysadmin /data


Avant-garde RH302 download:

Q136. CORRECT TEXT

Change the root Password to redtophat

Answer and Explanation:

Boot the system in Single user modeUse the passwd command


Q137. CORRECT TEXT

You are the administrator of example.com domain. Configure to deny local login to all normal users on your domain server. As well as allow to root login only on First Terminal.

Answer and Explanation:

1. touch /etc/nologin

2. vi /etc/securetty

comment all available terminall then first.

If /etc/nologin file is created, then pam modules pan_nologin deny to all non-root users to login locally.

/etc/pam.d/login file calls the module.

#%PAM-1.0

auth required pam_securetty.so

auth required pam_stack.so service=system-auth

auth required pam_nologin.so

account required pam_stack.so service=system-auth

password required pam_stack.so service=system-auth

# pam_selinux.so close should be the first session rule

session required pam_selinux.so close

session required pam_stack.so service=system-auth

session optional pam_console.so

# pam_selinux.so open should be the last session rule

session required pam_selinux.so multiple open

pam_securetty modules checks the /etc/securetty file, which terminal are available to root. If terminal is not available in this file then pam_securetty module deny to login on unavailable terminal to root user.


Q138. CORRECT TEXT

The System you are using is for NFS (Network File Services). Some important data are shared from your system. Make automatically start the nfs and portmap services at boot time.

Answer and Explanation:

We can control the services for current session and for next reboot time. For current Session, we use service servicename start or restart or stop or status. For automatically at next reboot time:

3. chkconfig servicename on or off

eg: chkconfig nfs on

chkconfig portmap on

or

ntsysv

Select the nfs and portmap services.

4. Reboot the system and identify whether services are running or not.


Q139. CORRECT TEXT

Configure the DNS for example.com domain, where 192.100.0.20 is associated IP for www and NS is 192.100.0.X where X is your IP.

Answer and Explanation:

1. rename the file named.caching-nameserver.conf into named.conf file located into

/var/named/chroot/etc

#mv /var/named/chroot/etc/named.caching-nameserver.conf /var/named/chroot/etc/named.conf

2. Check the permission and ownership as well as SELinux Context should be like as:

-rw-r----- root named system_u:object_r:named_conf_t /var/named/chroot/etc/named.conf

If selinux context is mismatch use the restorecon -R /var command

3. vi /var/named/chroot/etc/named.conf

zone "example.com" IN {

type master;

file "example.com.zone";

};

/var/named/chroot/etc/named.conf file is used to register the zone as well as specify the global option for DNS server. There are two types of zone, i. Master, which contains the original data. ii.

Slave, backup of master. Here is the example of master zone configuration.

4. vi /var/named/chroot/var/named/example.com.zone

$TTL 345345

@ IN SOA @ webmaster.example.com.(

101; Serial Number

1H; Refresh Time

1M; Retry Time

1W; Expire Time

1D; Minimum Time to Live

)

@ IN NS 192.100.0.X

www IN A 192.100.0.20

5. Check the permission as well as SELinux Context should like this:

-rw-r--r-- root named root:object_r:named_zone_t

/var/named/chroot/var/named/example.com.zone

If selinux context is mismatch use the restorecon -R /var command

6. service named start

7. rndc reload

8. chkconfig named on

Zone file should create on /var/named/chroot/var/named. Default Directory Path is specified on

/var/named/chroot/etc/named.conf file.

$TTLàTime To Live, How much seconds cache server stores the information about DNS. And Five Parameters specified Serial Number used by slave to synchronize with master server. Refresh and Retry Time used by slave server. NS is the Name (DNS) server where lookup the domain. A (Associated IP) for particular host.


Q140. CORRECT TEXT

Make on /archive directory that only the user owner and group owner member can fully access.

Answer and Explanation:

1. chmod 770 /archive

2. Verify using : ls -ld /archive

Preview should be like:

drwxrwx--- 2 root sysuser 4096 Mar 16 18:08 /archive

To change the permission on directory we use the chmod command. According to the question that only the owner user (root) and group member (sysuser) can fully access the directory so:

chmod 770 /archive