3COM certification 3COM
Adobe certification Adobe
Apple certification Apple
Avaya certification Avaya
BEA certification BEA Systems
Business Objects certification Business Objects
Check Point certification CheckPoint
Cisco certification Cisco
Citrix certification Citrix
CIW certification CIW
COGNOS certification COGNOS
CompTIA certification CompTIA
CWNP certification CWNP
EC-Council certification EC-Council
EMC certification EMC
Exam Express certification Exam Express
Exin certification Exin
F5 Networks certification F5 Networks
H3C certification H3C
HDI certification HDI
HP certification HP
Hitachi certification Hitachi
IBM certification IBM
Isaca certification Isaca
ISC certification ISC
ISEB certification ISEB
Juniper certification Juniper Networks
Lotus certification Lotus
LPI certification LPI
Microsoft certification Microsoft
Mile2 certification Mile2
Network Appliance certification Network Appliance
Nortel certification Nortel
Novell certification Novell
Oracle certification Oracle
PMI certification PMI
RedHat certification RedHat
RSA certification RSA Security
SAIR certification SAIR
SAS certification SAS Institute
SNIA certification SNIA
Sun certification Sun
Sybase certification Sybase
Symantec certification Symantec
Teradata certification Teradata
Tibco certification Tibco
Veritas certification Veritas
VMware certification VMware
All Exams

RedHat RH-302 Exam - CertifySky.net

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.