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
EC-Council exams EC-Council
EMC exams EMC
Exin exams Exin
Fortinet exams Fortinet
Hitachi exams Hitachi
HP exams HP
IBM exams IBM
Isaca exams Isaca
ISC exams ISC
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 -

Free RH-302 Sample Questions:

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

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

3.Download a index.html file from and set as default page
for you station? where ? is your host number. Note file is anonymously
1. ftp
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?
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.
1. vi /etc/vsftpd.ftpusers
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 You want to allow anonymous users to
upload files on you ftp site. Configure to allow anonymous to upload the files.
1. vi /etc/vsftpd/vsftpd.conf
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 members. These hosts should
get read and write access on shared directory.
1. vi /etc/exports
/data *,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
2. Gateway Should be
3. DNS Sever Should be
4. Domain Name should be
5. Range from
1. vi /etc/dhcpd.conf
ddns-update-style none;
option routers;
option domain-name "";
option domain-name-servers;
default-lease-time 21600;
max-lease-time 43200;
subnet netmask
/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 where DNS server is
1. vi /etc/named.conf
options {
forwarders {; };
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.
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.
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, All Rights Reserved