Sei sulla pagina 1di 8

RHCE REDHAT 6.

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

Configure a NTP server on Server.


Question2of14
Configure Client to use Server as NTP server.
Question3of14
Configure Server to receive Syslog messages from others.
Question4of14
Configure Client to send Syslog messages to Server.
Question5of14
Configure Server as a Samba server with a workgroup called MYGROUP and a netbios name
MYSERVER.
Create the /opt/samba directory.
Create a user called sam with the password redhat.
Only allow this user to connect to the share named samba.
Question6of14
Configure Client to mount Servers share (samba) permanently.
Question7of14
Configure Apache on the Server. Create a directory called secret under the document root.
Create a file called index.html in this directory with the string TEST inside.
Restrict the access to this directory to the user tom with password redhat.
Question8of14
Configure a NFS server on Server. Create a directory called /opt/tools.
Export this directory with restricted access to Client in read-write mode.
Question9of14
Configure Client to mount the Server directory (/opt/tools) permanently.
Question10of14
Configure no direct root access through ssh on Server.
Question11of14
Permanently disable pings on Server.
Question12of14
Configure SSH on Server to forbid access from the blackhat.org domain.
Question13of14
Configure a FTP server on Server.
Configure anonymous-only download restricted to the local network (example.com).
Question14of14
Configure an email alias such thatall mail sent to root go to the user joe.

EVERY QUESTIONS IN THIS IS MANDATORY FOR YOU TO COMPLETE.example.com and


remote.test HAS 192.168.0.0/24 AND 192.168.1.0/24 NETWORK RESPECTIVELY.
YOU HAVE ONE SYSTEM WITH ONE VIRTUAL SYSTEM IN BUILD
THE PASSWORD FOR root SHOULD BE "RedHAt255".
PACKET FILTERING SHOULD NOT AFFECT THE NETWORK INTERGITY.Use the DHCP
IPaddress
YUM BASEURL IS baseurl=ftp://192.168.0.254/pub/rhel6/dvd.
EXAM TIME : 2 HRS
PLEASE MAINTAIN THE SILENCE IN EXAM ROOM
Questions 1 | selinux:
Set the "selinux" in enfrocing mode.
Questions 2 |
Enable the ip forwarding.
Questions 3 | Configure the "ssh" :
natasha should have remote "SSH" access to your machine within example.com. clients within
remote.test should not "SSH" your system.
Questions 4 | Configure FTP access:
Clients within the example.com domain should have annonomyous Download and upload acess.
Clients outside example.com doamin should not have any access to ftp service.
Questions 5 | Configure SAMBA SHARE:
Share the directory "/common" via samba. Your Samba server must be a member of
"SAMBAGRP" workgroup. The share name must be "linux" The shared must be available to
example.com clients only. The user "sarah" should have read access to the share with samba
password "redhat"
Questions 6 | Configure "web server":
Configure your system as "web server" for the site http://serverX.example.com . Download the web
page from ftp://instructor.example.com/updates/station.html Rename the the downloaded page as
"index.html" Copy the "index.html" page to the "document root" Do not make any modifications to
the content of index.html..
Questions 7 | Configure name virtual hosting server:
Configure the name virtual hosting server for the site http://wwwX.example.com. Download the
page "www.html" from ftp://instructor.example.com/updates under DocumenRoot
"/var/www/virtual".
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/updates.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. Note: you
dont have permssion to mount. you can check nfsclient using /net/(ipaddress).
Questions 10 | Configure MTA:
Configure your "MTA" mail service according to the following requirements. Your mail server should
accept the mail from remote hosts as well as localhost.
Questions 11 | CONFIGURE Aliases:
admin alias mail should be received by "harry".
Questions 12 | CONFIGURE "Iscsi":
Access the remote storage from "instructor.example.com" and create the partiton "30 MiB" and

mount it on "/mnt/storage". Download ftp://instructor.example.com/updates/file.txt to iscsi disk and


put permission as 755.
Questions 13 | Script:
Write the script for . If you won't pass any argument it will print "Err all|none " . If you pass "all" as
an argument it will print "none". If "none" will be passed as an argument it will print "all" If any thing
else will be entered nothing will be printed.
Questions 14 | Mount ISO:
Copy the iso "boot.iso" from instructor.example.com/updates and it shoud be automatically
mounted on /iso directory at booting time. OR Use .
Questions 15 | Set kernel parameter:
Enabel kernel parameter max_loop by setting its max value as 32. and is should reflect to
/proc/cmdline after reboot.
Mock-II REDHAT CERTIFIED ENGINEER LINUX CERTIFICATION EXAM
INSTRUCTIONS
EVERY QUESTIONS IN THIS IS MANDATORY FOR YOU TO COMPLETE.example.com and
remote.test HAS 192.168.0.0/24 AND 192.168.1.0/24 NETWORK RESPECTIVELY.
YOU HAVE ONE SYSTEM WITH ONE VIRTUAL SYSTEM IN BUILD
THE PASSWORD FOR root SHOULD BE "almondrich".
PACKET FILTERING SHOULD NOT AFFECT THE NETWORK INTERGITY.Use the DHCP
IPaddress
YUM BASEURL IS baseurl=ftp://192.168.0.254/pub/rhel6/dvd.
EXAM TIME : 2 HRS
PLEASE MAINTAIN THE SILENCE IN EXAM ROOM
Questions 1 | selinux:
Set the "selinux" in enfrocing mode.
Questions 2 |
Enable the ip forwarding.
Questions 3 | Configure the "ssh" :
natasha should have remote "SSH" access to your machine within example.com. clients within
remote.test should not have "SSH" access to your system.
Questions 4 | Configure FTP access:
Clients within the example.com domain should have annonomyous Download acess. Clients
outside example.com doamin should not have any access to ftp service.
Questions 5 | Configure SAMBA SHARE:
Share the directory "/common" via samba. Your Samba server must be a member of
"SAMBAGRP" workgroup. The share name must be "share" The shared must be available to
example.com clients only. The user "natasha" should have read access to the share with samba
password "redhat"
Questions 6 | Configure "web server":
Configure your system as "web server" for the site http://serverX.example.com . Download the web
page from ftp://instructor.example.com/pub/updates/station.html Rename the the downloaded page
as "index.html" Copy the "index.html" page to the "document root" Do not make any modifications
to the content of index.html..
Questions 7 | Configure name virtual hosting server:
Configure the name virtual hosting server for the site http://wwwX.example.com. Download the
page "www.html" from ftp://instructor.example.com/pub/updates and copy as index.html under

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

5.Configure FTP access on your system such that:


oClients within the example.com domain should have anonymous FTP access to your machine
oClients outside example.com domain should not have access to your FTP service
6.Share the /shared directory via SMB such that:
oYour SMB server must be a member of the SMBGROUP workgroup
The share name must be shared
The shared share must be available to example.com domain clients only
The shared share must be browseable
natasha must have read access to the share, authentication with the same password password,
if necessary
7.Configure internet web server for your domain:
oDownload fromftp://instructor.example.com/pub/rhce/station.html
oRename the downloaded file to index.html
oCopy this index.html file to the DocumentRoot of your web server
oDo NOT make any modifications to the content of index.html
8.Export your /shared directory via NFS to the example.com domain only
oYou can check your shared directory but showmount will not allow because you login from local
user oYou may check by using /net directory
9.Configure an email alias for your MTA such that mail sent to acctmgr is received by local user
paula
10.Configure SMTP mail service according to the following requirements:
oYour mail server should accept mail from remote hosts and localhost
osusan must be able to receive mail from remote hosts
oMail delivered to harry should spool into the default mail spool for harry, /var/spool/mail/harry
11.Create one more Virtual Hosting:
oVirtual host for the site:http://wwwX.example.com, where X is your station number, then perform
the following:
Set the DocumentRoot to /var/www/virtual
Downloadftp://instructor.example.com/pub/rhce/www.html
Rename the downloaded file to index.html
Place this index.html in the DocumentRoot of the virtual host
Do NOT make any changes to the content of this file
Ensure that harry is able to create content in /var/www/virtual
oNOTE: the original website:http://stationX.example.commust still be accessable, DNS resolution

for the hostname wwwX.example.com is already provided by NameServer on


instructor.example.com
12.Pass the kernel argument sysctl=1 to the kernel and make sure that the argument is available
across the reboot
13.Create the script that print foo or bar when user input foo or bar otherwise show something else
14.Mount an ISO file placed at /root permanently to the directory /mnt/data
15.Configure yourself as ISCSI initiator to the ISCSI target instructor.example.com.Then create a
partition of 1200MB and mount it under /mnt/data1
16.User paula should not have permission to schedule a cron job
17.Extend your website:
oCreate a directory in document root name as secret
oDownloadftp://instructor.example.com/pub/rhce/secret.html
oPlace the document root in configuration file as /var/www/html/secret
oThis Website should be accessible on your local host and should not be accessed
on others

Potrebbero piacerti anche