100% found this document useful (3 votes)
2K views3 pages

Rhce Questions

This document contains instructions and questions for an RHCE certification exam. It includes 20 questions related to configuring services and systems on Red Hat Enterprise Linux 7. Exam takers are given 3.5 hours to complete all questions on two virtual machines configured for the exam. Questions cover topics like SELinux, networking, NFS, Samba, web servers, iSCSI, and more. Candidates are expected to provide detailed responses for configuring each service or system as outlined in each question.

Uploaded by

RaJu SinGh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (3 votes)
2K views3 pages

Rhce Questions

This document contains instructions and questions for an RHCE certification exam. It includes 20 questions related to configuring services and systems on Red Hat Enterprise Linux 7. Exam takers are given 3.5 hours to complete all questions on two virtual machines configured for the exam. Questions cover topics like SELinux, networking, NFS, Samba, web servers, iSCSI, and more. Candidates are expected to provide detailed responses for configuring each service or system as outlined in each question.

Uploaded by

RaJu SinGh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

5/11/2016 RHCEQUESTIONS

RHCE(Ex300)onRHEL7
FullMarks=300
PassMark=210
TIME=3.5hours

*****************************RHCEEXAM******************************
REDHATCERTIFIEDENGINEERLINUXCERTIFICATIONEXAM
EXAMTIME:3:30HRS
PLEASEMAINTAINTHESILENCEINEXAMROOM
=====================================================
INSTRUCTIONS
EVERYQUESTIONSINTHISISMANDATORYFORYOUTOCOMPLETE

THEREARETWOVMSHASBEENCONFIGUREDINEXAM.
===============================================
PLEASEFindthebelowdetailsANDPasswordforrootuseris"anaconda"
forboththevm.
VMI VMII
===== =======
HostNameSTATION1.DOMAINX.example.com HOSTNAME=STATION2.DOMAINX.EXAMPLE.COM
IP172.25.X.11 IP=172.25.X.10
Gateway172.25.X.254 GATEWAY=172.25.X.254
DNS172.25.254.254 DNS=172.25.254.254
Netmask255.255.255.0 NETMASK=255.255.255.0
Domain:DOMAINXexample.com DOMAIN=DOMAINX.EXAMPLE.CO

YOURCLASSROOMYUMBASEURLhttp://content.example.com/rhel7.0/x86_64/dvd

Qustion1>SetSelinuxinEnforcingmode

SettheselinuxpolicyPermissivetoEnfrocingonbothsides.
________________________________________________________________________________________________________

Customizetheuserenvironmentonbothsystems.
_______________________________________________

Q2.Createacustomcommandcalled"qstat"onbothsystem1andsystem2thatrunsthecommand'/usr/bin/psAopid,tty,user,fname,rsz'
Thatcommandshouldbeavailabletoallusersonthesystem.
_________________________________________________________________________________________________________

Qustion3>Configuressh:

ConfiguresshserveronserverX.example.comanddomain.my113t.orgshouldnothavesshaccess.
______________________________________________________________________________________________________________

Question4|Configureipv6inbothserverX&desktopX
ConfigureIPV6onbothserverX.example.com&desktopX.example.com.AccordingtofollowingIP.
serverX.example.comfddb:fe2a:ab1e::c0a8:X/64
desktopX.example.comfddb:fe2a:ab1e::c0a8:20+X/64
Note:('X'indiacteyourSystemnumber).
______________________________________________________________________________________________________________

Qustion5>ConfigureNetworkTeaming.(reaggregation)onbothsides.

ConfigureNetworkteamingonsystem1andsystem2usetwodevicecalledeno1andeno2
inserverXIpaddressis192.168.0.100/24
anddesktopXipaddressis192.168.0.200/24

_____________________________________________________________________________________________________________
Qustion6>portforwarding:

ConfigurePORTFORWARDINGincommingconnectiononport513/tcponthefirewalltoport132/tcponnetwork192.168.0.0/24

_______________________________________________________________________________________________________________

Q7.Configuremailonbothsystem1andsystem2.

>Donotacceptincomingmailfromexternalsources.
>Allmailsentlocallyonthissystemautomaticallyroutedtoserver1.group11.example.com
>Mailsentfromthesesystemsshouldshowupascommingfromgroup11.example.com
>Yourmaxtestbysendingmailto'another"
>Thesystemserver1.group11.example.comisconfiguredtodropmailforthisuserhttp://system1/receivedmail.

____________________________________________________________________________________________________________
Qustion8>NFSServer:

Exportyour"/public"directoryviaNFStotheexample.comdomain.Makesurethatclientinexample.comdomainshouldabletoread
onlypermissionin/public.

___________________________________________________________________________________________________________

ConfiguresecureNFSserver.
****************************
Q9.Exportyour"/publicsecure"directorywithusekerboresviaNFStothegroup11.example.comdomain.Makesurethatclientin
group11.example.comdomainshouldabletoreadandwritepermissionin/publicsecre.Andcreateasubdirectorycalled"publicshare"and
publicsharedirectoryownerpermissionshouldbenahur.andnahurusershouldabletoreadandwrite.Usekeytabforthesystem1
http://server1.grou11.example.com/pub/materials/system1.keytab.

NFSmounts.

file:///I:/%C2%A0/RHCE@RHCSA/RHCE%20QUESTIONS 1/3
5/11/2016 RHCEQUESTIONS

*****************

Q10.a)Mount/publicpermanentlyonthe/mnt/secureonthesystem2.
b)Mountthesecurenfsshare/publicsecurepermanentlyonthe/mnt/securepathonsystem2
>Verifythattheuserldapuser1hasreadandwriteaccessonthe/mnt/securepathonthesystem2andusekeytabfile
http://classroom.example.com/pub/keytabs/desktopX.keytab

____________________________________________________________________________________________________________
Qustion11>ConfigureSAMBASHARE:

Q11.Sharethedirectory"/common"viasamba.Yoursambaservermustbeamemberof"Staff"workgroup.
>Thesharenamemustbe"common".Makesurethatbrowsablemustbeenabled.
>Thesharedmustbeavailabletoexample.comclientsarea.
>Theuser"Harry"shouldhavereadaccesstothesharewithsamba

____________________________________________________________________________________
ConfigureSambaShare.
**********************

Q12.Sharethedirectory"/secure"viasamba.
>Thesharenamemustbe"secure".Makesurethatbrowsablemustbeenabled.
>Thesharedmustbeavailabletoexample.comclientsarea.
>Theuser"rob"shouldhavereadaccesstothesharewithsambapassword"animous"anduser"robby"shoudhavereadandwrite
accesstothesharewithsambapassword"animous"

_______________________________________________________________________________________________________________
MultiuserSambamount.
**********************

Q13.Mount/securethesambasharepermanentelyonthe/mnt/secure
>Mountportonsystem2asamultiusermount.
>Mountsambasharewiththecredentialsofuserrobandpassword"animous"

______________________________________________________________________________________________________________
Qustion14>Configure"webserver":

Q14.Configurethesystem1as"webserver"forthesitehttp://serverX.example.com
>Downloadthewebpagestation.htmlfromhttp://classroom.example.com/pub/updates/station.html
>Renamethedownloadedpageasindex.html.
>Copytheindex.htmlfiletothe"documentroot"anddontmodify

ii)Makesurethewebsiteshouldbeallowtoexample.comonlyanddenytomy133t.orgdoimain.

_____________________________________________________________________________________________________________
Qustion15>Configure"webserver":

Createthedirectory"confidential"fortheDocumentRootofyourwebserver.Downloadthepage"host.html"from
http://classroom.example.com/pub/updates/host.htmlAndmoveasindex.html.Itshouldbeaccessabletolocalhostonlyandnottoany
otherhost.

____________________________________________________________________________________________________________

Qustion16>Configurenamevirtualhostingserver:

Configurethenamevirtualhostingserverforthesitehttp://wwwX.example.com.Downloadthepage"www.html"from
http://classroom.example.com/pub/updates/www.htmlandrenameasindex.htmlunderdocumenRoot"/var/www/virtual".Usercalledrock
shouldabletoaddsomecontentinto/var/www/virtualdirectory.

_____________________________________________________________________________________________________
Qustion17>Configurewsgiwebserver:

Configure"wsgi"webserversitename"webappX.example.com"anddownloaddynamicWSGIconentfrom
http://classroom.example.com/pub/updates/webpp.wsgiandstoredinsidevirtualwebserverDocumentRootofyourwebserver.anddonot
effectvirtualwebserevr.portshouldbe8999andclientshouldaccessthewebsiteusingwebappX.example.com:8999.
________________________________________________________________________________
17:confiuresslwebserver

Configuresecurewebserversitenamehttp://serverX.example.comantthewebsitewillneddtoprotectwithtls.andthe
certificatecanbedownloadfromhttp://classroom.example.com/pub/exampleca.crt
http://classroom.example.com/pub/tls/private/server11.keyhttp://classroom.example.com/pub/tls/private/server11.crt

___________________________________________________________________________________________________________
Qustion19>CONFIGURE"targetserver":

configuretargetserverusethethisiqniqn.201502.com.example.group11:system1and3Gbackingstoredevicevolumegroupname
iscsi_storage.iscsistorageshouldavailabetodesktopX.example.comsysetmonly.

_____________________________________________________________________________________________________________
20:Configureiscsiclient.

Createanew2024MbiscsitargetonyourdesktopX.example.commachine.thistargetshouldbecallediqn.2014
09.com.example.group11:system1andassignfilesystemext4andmountunder/mnt/iscsidirectory.
_________________________________________________________________________________________
Qustion21>Configuremariadb.

Installmariadbdatabaseanduserrootpasswordisanimousdatabasesholudaccessonlylocalhost.createa"Contacts"datebase
andrestoreadatabasebackuphttp://classroom.example.com/pub/updates/mariadb.dump.robusercanqueryandaccess"contacts"database
shouldbeusepasswordis"animous".

___________________________________________________________
Qustion22>listtheusersinformationwhohavethepassword=animousfromusertable.usertablelocatedinmysqldatabase.andstore
theresultinthefilenamepassword.txtinthelocation/mnt

______________________________________________________________________________________________________________
file:///I:/%C2%A0/RHCE@RHCSA/RHCE%20QUESTIONS 2/3
5/11/2016 RHCEQUESTIONS

Qustion23>Script:

Writethescriptcalled/root/script.Ifyoupassanargumentas"redhat"itshouldprint"fedora".Ifyoupassanargumentas
"fedora"itshouldprint"redhat".Ifwon'tpassanyargument(or)ifyoupassanotherargumentotherthan"redhat"and"fedora"itwill
printstandarderror"/root/scriptredhat|fedora".
__________________________________________________________________________________________________________________

Q24.Createascriptonsystem1.

>Itshouldbeasingleargumentwhichisthenameoffilethatcontainusernames.
>Ifargumentisnotsupplieditshoulddisplayusage:/root/batchusersandexit.
>Ifnonexistantfileisspecified,itshoulddisplayfilenotfound.
>Accountsshouldbeencountedwithloginshell/bin/false
>Scriptdoesnotrootneedtosetpassword.

file:///I:/%C2%A0/RHCE@RHCSA/RHCE%20QUESTIONS 3/3

You might also like