Total
Red Hat Certified System Administrator (RHCSA) v1.0 (EX200)
2ouon [@ Ja
Question 1
SIMULATION.
reste one partiions having ste 100MB and mount it on data,
Answer: See explanation below.
Explanation:
1-Use ik /devrnda to create new partition
2. Type n For New partons.
3Iewil ase for Logical or Primary Pritions, Press for logical
4 Iti ask forthe Starting Cylinder Use the Default by pressing Enter
Key,
5. Type the Size: +100M you can spect either Last cylinder of siz he
6. Press Pto very the pattions sts and remember the partons name,
7 Press w to write on partons table
8 Ether Reboot or use partprobe command
9. Use mst ext3 /dev/hda?
on.
mke2Is- dev/hda? To create ext flesystem.
vi seterftab
Wire
{dev/da? /data ant defaults 1 2
‘erty by mounting on current Sessions also: mount /dev/hda? /data
Question 2
SIMULATION.
x
‘You ate nw System Administrator and from now you are going te handle the system and your msn tasks Network monitoring, Backup ang Restore
Butyou don know the roat password. Change the roc password to redhat and login in default Runlevel
‘Answer See explanation below.
Explanation: When you Boot the System, it starts on default Runlevel speci in /etrinitab
1a tintdetouk
\When System Successfully boot, wil sk for username and password, But you don't know the rots password. Te change the root password you
‘eed to boot the system nto single user mode You can pass the Kernel arguments fom the boot loader.
1. Resta the Sytem,
2 You wil gt the bootloader GRUB screen
3. Press a and type Tor for single mode ro root=LABEL
4. System will Bat on Single User mode
5. Use pase command to change
6-Press tele
gb queits
Question 3
SIMULATION.
Yeu are 2 System administrator. Using Logfiles very easy to monitor the sytem. Now there are SO servers runing 2s Mall, Web, Proxy, ONS services
‘ete You want to centalze the logs rom al servers into on LOG Sever How will ou configute the LOG Server to secep logs from remote host?
reAnswer: See explanation below.
Explanation: By default system accept the logs only generated from local host. To accept the Log from other host configure v /ete/sysconfig/syslog
SYSLOGD_OPTIONS="-m 9-1
Where
im Ocsables ‘MARK’ messages.
+ enables logging from remate machines
~edsables DNS lookups on messages received with
sence syslog retort
Question 4 Pod
SIMULATION
‘Yur System is configured in 192.168000/24 Network and your nameserver is 192.1680254 Make successfully resolve to server! example com.
Answer: See explanation below.
planation: nameserver i specified in question,
1.Vietetesolvcont
nameserver 1921680254
2 hort server example com
Question 5 x
‘One Package named 2shis dump on fip//serverexample.com under /pub/updates directory and your FIP server is 192 1680.25. Install the package
zh
Answer: See explanation below.
Eeplanation
‘pm -ivh fip://server/example.com/pubjupdates/zsh-+
‘gin to fp server ip ip/server|example.com using anonymous user.
‘Change the diectory: ed pub and cdl updates
Download the package: mget 2h
‘Quit fom te tp prompt: bye
Insta the package
tm -ivh 3h
Veit iter package is installed or not: Ypm -q 2sh
Question 6 x
SIMULATION
Some users home directory is shared from your system, Using showmount-¢ localhost command, the shared directory isnot shown, Make access the
shared users home dtectoyAnswer: See explanation below.
Explanation
Vetfy the Fle whether Shared or not? cat etcexports
Sart the nfe service: service nf tart
Sart the portmap service: servic portmap start
Make automatically start the nfs service on nest reboot chéconfig nfs on
Make automatically start the portmap service on next reboot: config portmap on
Verify either sharing or not showmount-¢ localhost
Check that default firewall sunning on sytem?
IFeunning flush the iptables using iptables -F and stop the tables sence
Question 7
‘Add 2 new logical patton having ize 100MB and reste the data which wil be the mount point forthe new pation,
Answer: See explanation below.
Explanation
1-Use isk /devinda-> To create new partion.
2-Typen For New partons
3. te wll ase for Logical or Primary Parttions Pres for logical
4 Iti ask forthe Staring Cylinder: Use the Default by pressing Enter
Keys
5. Type the sie: +100M you can speci either Last cylinder of size here,
6. Press P to venfy the partons liste and remember the partons name
7. ress w to write on partons tabla
28. Either Reboot or use patprobe command,
9. Use ms xt /dev/hds?
on-
1 mkadfe-j /deu/hda? ->To create ont filesystem.
Dieter
3. Write
{oev/ids? /dat ext defats 00
4, Verify by mounting on current sessions also
mount /dewhda? /dat
Question 8
SIMULATION
Yeu have a domain named wawshee.com associated IP address i 192 100.02. Configure the Apache web server by implementing the SSL for
‘encryption communication
Answer : See explanation below.
Explanation
i /etfhttpd/conf.l/sslcont ServerName war shee.com DocumentRoot /var/warn/hee Directoryindex index html
ServerAdmin webmasterschce com SSLEngine on SSLCertifeatfle /ee/htpd/cont/sl ce/server cr SSLCertfcateKeyfile
Jetcintipdcontsl key/serverkey
Viraltost»cd ftcyntpdcont
3 make testcert,
Create the directory and index page on specified pat
stanestartchiconfig httpd on
{index page can download from fp//sver eample.com at exam time) service httpd
Apache can provide encrypted communications using SS. Secure Socket Layer. To make use of encrypted communication, cent must request to
tps protocol, which i uses port 443, For HTTPS protocol quired the certificate fle and key fle
Question 9 re
SIMULATION
There isa server having 17224254254 and 172.25.254 254, Your System lies on 172240.0/16, Make successfully ping to 17225.254254 by Asigning
following :172.240x where xs your station number
Answer: See explanation below.
Explanation
Use netconig command
Enter the IP Adress as given station number by your examiner: example: 1722401
inter Subnet Mask
Enter Default Gateway and primary name server
press on ok
down etn0|
up eho
verify using ifconfig
In thelab servers playing the role of route, forwarding is enabled, Just set the Correct IP and gatemay, you can ping to 11225 254254
Question 10 x
SIMULATION
Successfully resolve to serer.examplecom where your ONS servers 17224254254,
‘Answer: See explanation below.
Explanation
i fetetresolv cont
host server.examplecom
‘On every cents, DNS server is specified in /etc/resolu.cont When you request by name it wes to resolv fom DNS server.
Question 11 ra
SIMULATION
‘Your Sytem is going use as a router for 172.240.0/16 and 172.25.0/16. Enable the Fowarding,
‘echo "1" »/proc/sysinetipydfip forward
2.¥i etesyscll cont netipv4 ip forward=1
Answer See explanation below.planation: /orocis the vital filesystem, containing the information about the running kernel
To change the parameter of running kernel you should! modify on /prac From Next reboot the system kernel wl tke the value from
Jetelsyetcont
Question 12
SIMULATION
‘Who ever creates the fls/drecories on archive group ewner shouldbe automatically should be the same group owner of archive
‘Answer: See explanation below.
Eeplanation
chimed ges fachive
Verify using: ld /archive Permission shouldbe he
unrws-~ 2 aot sysuser 4096 Mar 16 1898 /archive
IF SGI bi
‘To sat the SCID bit chmod ges cirectony
“To Remove the SGID bit: chmod g-s rectory
set on directory then who every users crests the files on drectry group owner automatically the owner of parent rectory.
Question 13,
SIMULATION
Make on archive iractory that only the ser owner and group owner member can fully acces.
cl)
Question 14
SIMULATION
Notes:
NFS NFS instructor example comvar/ipfpubytheldvd
1m
"YUM hnipifinsteuctor example comy/pubjhel6/dvd
1m
lap hep instructor example com/pub/EXAM
rm
ACERT
Mm
Install dalog package,
[eee corse]
Question 15
SIMULATION
Sinus ust run in force mode
Answer See explanation below.[Orem |orn@ JL] [BIO]