Professional Documents
Culture Documents
0 slovedPaper
RHCE..
NETWORK INFORMATION
1.desktop45.example.com (hostname)
2.ipadd=192.168.0.45
3.example.com=192.168.0.0/24(Network Address)
4.remote.test=192.168.1.0/24(crackers Address)
#setup
#/etc/init.d/network restart
#ping 192.168.0.254
#vim base.repo
1. Selinux
2. IPforward
3. SMTP
Configure an SMTP mail server. Your host should be able to receive remote
mails.
Mail of <user> should be spooled to /var/spool/mail/<user> .
4. ALIAS
All mails sent to admin user should be directed to natasha
5. Script
Create a script in bash /root/script.sh such that ,If the script is run in
the
following manner # /root/script.sh python
o/p > perl
AND
# /root/script.sh perl
o/p > python
Make sure that if the no. arguement is not provided properly , then error
o/p
should be displayed as
o/p > Invalid Arguement
If wrong arguement is provided , then error o/p should be displayed as
o/p > python|perl
6. FTP
Configure an ftp server. User <user> should be able to login via ftp .
anonymous user can download from your site.
(.my133.org) .remote.test should be denied access to ftp server.
7. NFS
Share a directory /nfsshare over a n/w ,accessable to (domainX.example.com)
.example.com network.
Your share can be remotely tested from your physical host in
(/nfs/domainXshare) /nfs/desktopX . xxx
8. LOOP
Mount an iso file /root/boot.iso on /disk . This mount should be persistant
across system restart
9. SSH
Congigure ssh server.
This service must be accessable only over (domainX.example.com)
.example.com network .
10. Website
Host an apache webserver over your hostname.
The webpage to be hosted is shared as
(ftp://host.domainX.example.com/pub/web/station.html)
ftp://instructor.example.com/pub/web/station.html.
The name resolution is provided on your dns server.
Do not edit the webpage contents .
11. iSCSI
Import an iscsi disk from the server <hostname.domainname>
instructor.example.com.
The iscsi disk must be mounted as /mnt/iscsi.Download iscsi.txt file in
mounted directory from(ftp://host.domainX.example.com/pub/)
This mount should be persistant across reboot.
12. V Web
Host a virtual website over (wwwX.domainX.example.com) d.example.com . The
webpage to be hosted
is shared as (ftp://host.domainX.example.com/pub/web/www.html)
ftp://instructor.example.com/pub/web/www.html.
Create a DocumentRoot /var/www/virtual for hosting this page.
Owner of /var/www/virtual should be harry.
The name resolution is provided on your dns server.
15. copy the file station.html to /var/www/html/secure/index.html. Secure the file & make
it available to only localhost over apache webserver .
13. Samba
Create a samba share /samba with share name samba .
Your workgroup should be IT .
this share should be browsable . The natasha <user> can access this share
as readable only .
This share is accessable only over (domainX.example.com) example.com .
14. Cron deny
The user jean should not be able to add a cron job for herself.
16. Pass a parameter sysvctl=1 to your kernel at boot time
. changes made should be persistant .
RHEL6 RHCE Sample exam 1
documenRoot "/var/www/virtual".
User called rock should able to add some content into that directory(use acl permissions).
Questions 8 | Configure "web server":
Create the directory "limited" for the DocumentRoot of your webserver. Download the page
"host.html" from ftp://instructor.example.com/pub/updates. And move as index.html.It should be
accessable to localhost and not to any other host.
Questions 9 | NFS Server:
Export your "/common" (created Default) directory via NFS to the example.com domain, and
ensure that client should able to add some content. Note: you don't have permssion to mount. you
can check nfsclient using /net/(ipaddress) in phisical machine(Base machine).
Questions 10 | Configure MTA:
Configure your postfix mail service according to the following requirements. Your mail server
should accept the mail from remote hosts as well as localhost(check it only in phisical machine).
Questions 11 | CONFIGURE Aliases:
admin alias mail should be received by "harry".Check it in PM only not in VM.
Questions 12 | CONFIGURE "Iscsi":
Access the remote storage from "instructor.example.com" and create the partiton "25 MiB" and
mount it on "/storage". Download ftp://instructor.example.com/pub/updates/file.txt to iscsi disk and
put permission as 775.
Questions 13 | Script:
Write the script called /root/program . If you pass an argument as "foo" it should print "bar" . If you
pass an argument as "bar" it should print "foo". If won't pass any argument or pass anything other
then "foo" and "bar" then the output should be stderr: /root/program Err foo|bar.
Questions 14 | Mount ISO:
Copy the iso "boot.iso" from instructor.example.com/pub/updates and it shoud be automatically
mounted on /ios directory at booting time.
Questions 15 | Set kernel parameter:
Enabel kernel parameter kernstack by setting its value to 1. and is should reflect to /proc/cmdline
after reboot.
RHCE 6.0 Exam Practice Question Paper with Answers
NOTE: You will note that some requirements specify that a service should not be available from the
DNS domain: my133t.org (172.24.0.0/255.255.0.0).All systems in your domain are in the
192.168.0.0/255.255.255.0 subnet
1.SE Linux must be running in the Enforcing Mode:
A.SE LINUX
2.Enable IP Forwarding on your machine:
3.Configure SSH access as follows:
onatasha has remote SSH access to your machine from within example.com
oClients with my133t.org should NOT have access toSSH on your system
4.Configure SMTP mail on your system according to these criteria:
oharry must be able to retrieve email from your machine using SMTP within example.com
oClients within my133t.org domain should not have access to your SMTP service