Free Cheat-test Samples and Demo Questions Download
Adobe exams Adobe
Apple exams Apple
Avaya exams Avaya
Check Point exams Check Point
Cisco exams Cisco
Citrix exams Citrix
CIW exams CIW
CompTIA exams CompTIA
CWNP exams CWNP
EC-Council exams EC-Council
EMC exams EMC
Exin exams Exin
Fortinet exams Fortinet
GIAC exams GIAC
Hitachi exams Hitachi
HP exams HP
IBM exams IBM
Isaca exams Isaca
ISC exams ISC
ISEB exams ISEB
Juniper exams Juniper
LPI exams LPI
McAfee exams McAfee
Microsoft exams Microsoft
Oracle exams Oracle
PMI exams PMI
Riverbed exams Riverbed
SNIA exams SAP
Sun exams SAS
Symantec exams Symantec
VMware exams VMware
All certification exams

RedHat RH-302 Exam - Cheat-Test.com

Free RH-302 Sample Questions:

1.If any mail coming from outside of the local LAN block all mails.
Answer:
Outside the LAN means cracker.org. All host on exam on example.com domain and
outside domain means cracker.org.
To block the mail coming from cracker.org
1. vi /etc/mail/access
@cracker.rog REJECT
2. service sendmail start | restart
3. chkconfig sendmail on

2.Configure the Apache webserver for station?.example.com (associated IP is your
host IP address) by downloading the index.html from ftp://server1.example.com.
Answer:
1. vi /etc/httpd/conf/httpd.conf
<VirtualHost 192.168.0.?>
ServerName station?.example.com
DocumentRoot /var/www/station?
DirectoryIndex index.html
ServerAdmin webmaster@example.com
</VirtualHost>
2. Create the directory and index page on specified path. (Index page
can download from ftp://server1.example.com at exam time)
3. service httpd start|restart
4. chkconfig httpd on

3.Download a index.html file from ftp.server1.example.com and set as default page
for you station?.example.com where ? is your host number. Note file is anonymously
available.
Answer:
1. ftp ftp://server1.example.com
2. Login as an anonymous and download the file.
3. Copy the file in /var/www/html if you downloaded in another location.
4. service httpd restart
5. Test using links: links http://station?.example.com
Note: In examination Lab DNS will configure for every stations.

4.You want to deny to user1 and user2 users to access files via ftp. Configure to deny
these users to access via ftp.
Answer:
1. vi /etc/vsftpd.ftpusers
user1
user2
2. service vsftpd start| restart
Using /etc/vsftpd.ftpusers file we can deny to certain users to access files via ftp. As
well as there is another file named /etc/vsftpd.user_list can be used to allow or to
deny to users.

5.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:
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.

6.Share /data directory using NFS only to example.com members. These hosts should
get read and write access on shared directory.
Answer:
1. vi /etc/exports
/data *.example.com(rw,sync)
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.

7.Configure the DHCP server by matching the following conditions:
1. Subnet and netmask should be 192.168.0.0 255.255.255.0
2. Gateway Should be 192.168.0.254
3. DNS Sever Should be 192.168.0.254
4. Domain Name should be example.com
5. Range from 192.168.0.10-50
Answer:
1. vi /etc/dhcpd.conf
ddns-update-style none;
option routers 192.168.0.1;
option domain-name "example.com";
option domain-name-servers 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;
subnet 192.168.0.0 netmask 255.255.255.0
{
range 192.168.0.10 192.168.0.50;
}
/etc/dhcpd.conf file is used to configure the DHCP. Some global options i.e Gateway,
domainname, DNS server specified using option keyword.
3. service dhcpd start | restart

8.Configure the caching only-name server for example.com where DNS server is
192.100.0.254.
Answer:
1. vi /etc/named.conf
options {
forwarders { 192.168.22.250; };
forward only;
};
2. service named start | restart
Caching-only name server forwards a request to another name server or to the root
name servers in orders to determine the authoritative name server for the resolution.
Once resolution has taken place, the caching-only name server stores the resolved
information in a cache for the designated time to live period.

9.One Logical Volume named /dev/test0/testvolume1 is created. The initial Size of that
disk is 100MB now you required more 200MB. Increase the size of Logical Volume,
size should be increase on online.
Answer:
1. lvextend -L+200M /dev/test0/testvolume1
Use lvdisplay /dev/test0/testvolume1)
2. ext2online -d /dev/test0/testvolume1
lvextend command is used the increase the size of Logical Volume. Other command
lvresize command also here to resize. And to bring increased size on online we use
the ext2online command.

10.We are working on /data initially the size is 2GB. The /dev/test0/lvtestvolume is
mount on /data. Now you required more space on /data but you already added all
disks belong to physical volume. You saw that you have unallocated space around 5
GB on your harddisk. Increase the size of lvtestvolume by 5GB.
Answer:
1. Create a partition having size 5 GB and change the syste id '8e'.
2. use partprobe command
3. pvcreate /dev/hda9 Suppose your partition number is hda9.
4. vgextend test0 /dev/hda9 vgextend command add the physical disk on volume group.
5. lvextend -L+5120M /dev/test0/lvtestvolume
6. verify using lvdisplay /dev/test0/lvtestvolume.


© 2014 Cheat-Test.com, All Rights Reserved