Sie sind auf Seite 1von 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