10 Tips For RH302 candidates

Ucertify RH302 Questions are updated and all RH302 answers are verified by experts. Once you have completely prepared with our RH302 exam prep kits you will be ready for the real RH302 exam without a problem. We have Up to date Red Hat RH302 dumps study guide. PASSED RH302 First attempt! Here What I Did.


♥♥ 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

Q71. CORRECT TEXT

Deny login to user15 and user16 on Saturday.

Answer and Explanation:

1. vi /etc/security/time.conf

login;*;user15|user16;Sa0000-2400

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.


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


Q73. CORRECT TEXT

There are two different networks 192.168.0.0/24 and 192.168.1.0/24. Where 192.168.0.254 and 192.168.1.254 IP Address are assigned on Server. Verify your network settings by pinging 192.168.1.0/24 Network's Host.

Answer and Explanation:

1. vi /etc/sysconfing/network

NETWORKING=yes

HOSTNAME=station?.example.com

GATEWAY=192.168.0.254

2. service network restart

Or

1. vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

ONBOOT=yes

BOOTPROTO=static

IPADDR=X.X.X.X

NETMASK=X.X.X.X

GATEWAY=192.168.0.254

2. ifdown eth0

3. ifup eth0


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


Q75. CORRECT TEXT

Raw (Model) printer named printer1 is installed and shared on 192.168.0.254. You should install the shared printer on your PC to connect shared printer using IPP Protocols.

Answer and Explanation:

IPP( Internet Printing Protocol), allows administrator to manage printer through browser so CUPS is called Internet Printing Protocol based on HTTP. We can Install the printer either through:

system-confing-printer tool or through Browser.

1. Open the browser and Type on address: http://localhost:631 àCUPS (Common Unix Printing System) used the IPP protocol. CUPS use the 631 port.

2. Click on Manage Printer.

3. Click on Add Printer.

4. Type Printer name, Location, Description.

5. Select Device for bb. (Select IPP).

6. Device URL: ipp://192.168.0.254/ipp/ queue name àSame printer name of shared printer.

7. Select Model/Driver RAW printer.

8. service cups restart


Q76. CORRECT TEXT

Share the Internet using squid for your Local LAN. Proxy server should be run on 8080 port.

Answer and Explanation:

1. vi /etc/squid/squid.conf

#detault:

http_port 8080

#Recommended minimum configuration:

# Near the src acl src section

acl mynet src 192.168.0.0/255.255.255.0

#Default:

# http_access deny all

#Under Here

http_access allow mynet

2. service squid start

3. chkconfig squid on

squid is a proxy caching server, using squid we can share the internet, block the internet, to certain network. First we should define the port for squid, the standard port for squid is 3128. We can run squid on different port by specifying http_port portnumber.

To block or allow the Internet access to hosts, we should create the acl (Access Control List). In this file we can specify only the IP address.

Example: acl aclname src IP/Netmask

After creating acl we can block or allow the internet to specified acl.

http_access allow | deny alcname


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


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


Q79. CORRECT TEXT

Your Machine Name is stationx.example.com, (x is your host IP address) which is already resolved. Set the default page for stationx.example.com by downloading www.html file from ftp.server1.example.com.

Answer and Explanation:ftp ftp.server1.example.comDownload the www.html

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

move the downloaded file into /var/www/htmlRename the file into index.htmlCheck using links

http://stationx.example.com

/var/www/html is the default directory for httpd service. Index.html is the default directory index. To set the default page without configuring virtualhost copy the file as a index.html in /var/www/html.


Q80. CORRECT TEXT

Make user1, user2 and user3 belongs to training group.

Answer and Explanation:

1. usermod -G training user1

2. usermod -G training user2

3. usermod -G training user3

4. Verify from : cat /etc/group

There are two types of group, I) primary group II) Secondary or supplementary group.

5. Primary Group: Primary group defines the files/directories and process owner group there can be only one primary group of one user.

6. Secondary Group is used for permission. Where permission are defined for group members, user can access by belonging to that group.

Here user1, user2 and user3 belong as supplementary to training group. So these users get the permission of group member.