Friday, July 23, 2010

RHCE Sample Question

Morning Session – 2 and half hours

Phase 1 – 8 Questions

Q1. Login Problem (Compulsory)

Q2. Configure network settings to specification so that you can ping 192.168.1.254 (Compulsory)

Q3. dig server1.example.com should work properly (Compulsory)

Q4. Successfully login to init 5 as root (Compulsory)

Q5. Resize a 200 MB LVM to a 100 MB LVM without losing data

Q6. User neo should be able to create 30K file but not 70K file (quotas)

Q7. Create 100 MB partition and mount it as /mnt/new. Should work across reboot (Compulsory)

Q8. Showmount –e should show the /export directory as available.

Phase 2 – Boot Troubleshooting

Examiner will insert a CD which will perform a very basic installation in text mode. The examiner will then remove the CD and then ask you to reboot. Once you reboot, you will get a kernel panic error. Once you set this right, your system will not boot because it cannot see the LABEL root. You will need to use resuce mode, find the device that has the /etc/fstab file and then modify it in such a way that fstab contains the line LABEL=/ instead of LABEL=root

If the system boots without any problems into runlevel 3, then 20 marks.
If the system boots into maintenance mode, then 10 marks
If the system does not boot at all, then 0 marks



Afternoon Session – 3 Hours
Q1. Install RHEL3 according to the following requirement:-

/boot - 128 MB
/ - 256 MB
/home - 512 MB
/usr - 2048 MB
/var - 512 MB
swap - 1.5 – 2 times the amount of RAM as 
specified in /proc/meminfo
Remaining space should be given to a RAID 0 set and a directory /data should be mounted on it.
Q2. Connect to http://somesite/cgi-bin/form.php and fill in your details

Q3. Install the dialog rpm

Q4. Create a directory called sysadmin. Create a group called sysadmin. Change the 
Group ownership of the sysadmin directory to sysadmin group. Create a user called
Jane and the secondary group should be sysadmin. Create a user called John and 
Secondary group should be sysadmin. Create a user called eric who should not be a 
Member of other groups and he should not get an interactive shell

Q5. Create a file in the sysadmin directory by logging in as jane. Check if john is able to 
Access the file

Q6. Enable IP Forwarding on your system

Q7. Implement a web server by copying a .html from the NFS server into your Document 
Root
Q8. Configure sendmail in such a way that it is reachable from remote machines on its IP
And also local host
Q9. Configure FTP in such a way that cracker.org (192.168.1.0/255.255.255.0) machines 
cannot connect but example.com machines can.
Q10. Configure SSH in such a way that cracker.org machines cannot connect but
Example.com machines can.

Q11. Create a samba share called X on your system. User jane should have access to it

Q12. Bind your system to the NIS domain RHCE. Try to login as user guestX

Q13. Configure automount in such a way that server1.example.com:/rhome/nisuserX is 
Automatically mounted on your home directory. The user should be able to login
Successfully

Q14. Configure a printer queue which will forward print jobs to the shared print queue on
Server1.example.com

Q15. Configure POP3 on your system such that user jane is able to receive mails. Disable
POP3 for cracker.org machines

Q16. Configure Squid to share internet connection on port 8080 with example.com 
Machines
Q17. Configure SSL for SSH on your system. Create a certificate using which your 
System will SSH to station249.example.com

Q18. Configure your web server to host multiple sites on same IP

Q19. Configure imaps in such a way that john gets authenticated and allowed to use
Imaps. Cracker.org machines should not get authenticated

Q20. Create a mail alias for example.com as something.com




**********************Trouble Shooting***********************
1. login as root. Your root password should be redhat. (COMPULSARY)

2. You should be able to ping server1.cracekr.com

3. You should be able to dig server1.example.com (COMPULSARY)

4. You should get GUI login in the next reboot (Xwindows problem) (COMPULSARY)

5. When you type showmount -e localhost /export is seen as exported. (COMPULSARY)

6. when user neo type dd if=/dev/zero of=somefile bs=1024 count=30 he succeed.

when he type dd if=/dev/zero of=somefile bs=1024 count=70 he fails.

7. Resize your logical volume myvol to 300Mb. A + or - 10Mb variation is allowed.

8. Create a new partion of 100Mb size and mount it permanently under /mnt/new. (COMPULSARY)

9 And 10 kernel panic. Problems in /etc/fstab and /boot/grub/grub.conf

************************RHCT**************************

1. Fll the enrollment form.

2. Install a dialog rpm. RPM lies in /var/ftp/pub

3. Installation requirement

/home - 512 /boot - 128

/var - 512 / - 256

/usr - 2048 swap - 1.5 to 2 times of memory seen

in proc filesystem. All the remainig space will be allocated to raid 0 and mount it on /data.

4. Add a group named sysadmin. Add 3 users john, jane, and eric out of which eric should not have
a login window. john and jane are members of secondary group sysadmin.

5. Create a directory sysadmin under /data. The members of sysadmin should be able to create files
in sysadmin. The files created in sysadmin should have group ownership as sysadmin.

6. Enable ip forwarding.

7. Export /data only to example.com domain

8. Upgrade with appropriate kernel. New kernel lies in /var/ftp/pub/updates.

9. Printer configuration through IPP(cups). The print que is stationx. and server is
server1.example.com. You can check it under site http://server1.example.com:631/printers/stationx/

10. In the server nisuserx has his home directory in /rhome/stationx/nisuserx.
In your system nisuserx should get his home directory in /rhome/nisuserx. All other nisusers should be able to login but others can't get their home directory.

11. User jane sets a cronjob to print hello to any output device at
1.30AM
********************************RHCE**********************************
1. Enable ssh only to user john. or enable ssh only to example.com

2. configure an ftp server only to example.com

3. Configure a pop3 server only to example.com so that user eric should get his mail.

4. Setup an SMTP server such that you can receive mail from any network.

5. Setup a samba server. The workgroup is example. A share named data is shared and it should be browsable and should not be writable. The valid user is john.
6. Setup a site named stationx.example.com. The html file lies in /var/ftp/pub/html/htmlfile.
Use ftp to download the html file.

7. Setup a proxy server on port 8080 only to example.com

8. Configure imaps in such a way that john gets authenticated and allowed to use
Imaps. Cracker.org machines should not get authenticated.

9. Setup a site named wwwx.exmaple.com where x is your station number. Document root is
/www/date. Html file lies in /var/ftp/pub/www/wwwfie. User john should be able to host site on it.

10. Create a mail alias for example.com as something.com





Section 1
**********
Troubleshooting (45 minutes)
----------------------------
1) Login to the system as root with password "redhat"
2) ping to ip 202.88.219.129
3) mount the exported directory /var/ftp/pub of 192.168.100.79 on to the directory /mnt/cdrom/ refer file "/root/network.txt" for network configuration
4) The system should boot in run level 5 with graphical login screen
5) resize lvm to have 50mb more space
6) mount the the remote share to /mnt/ (iptables)
7) share the directory /data with rw permission to all (portmap)
NOTE Re-Installation of the system is not allowed in section 1 (rescue disk will be provided)

Section 2
***********
Installation and RHCT (2 hours)
--------------------------------
1)Install with the following specification
/boot 100Mb
/home 5Gb
/opt 5Gb
swap 500Mb
/ 1000mb
remaining /data as raid partition
with Hostname "exam" and root password "redhat"
Network installation is to be done
ip of local system 192.168.100.20
ftp server 192.168.100.79 /var/ftp/pub/
anonymous login

2) Configure your machine to get dynamic ip
3) Install dialog rpm
4) Create a user "mark" who does not have an interactive shell
5) Create a user "green" who also belongs to group "mark"
6) Create a user who belongs group "mark" only
7) Configure your machine as dns client
DNS server 192.168.100.79
DOMAINNAME example.com
8) Configure an NIS client
NIS server 192.168.100.79
NISDOMAINNAME example.com
9) Configure your machine to mount the home directory of user "nisuser" at boot time
server 192.168.100.79
home directory of user "nisuser" 192.168.100.79:/home/nisuser
10) Create a directory "share" in / with rwx permission to all users in group "mark"
Files created in this directory should have read permission to all
But users cannot delete files created by others
11) Configure a cron job to create a file "logout" in /root
with the content "Time up" at 06:00 am everyday
12) Configure a local printer with queue name "prqu"
13) install the kernel rpm and boot with the new kernel(ftp server and location of kernel rpm will be given)

RHCE PART
14)configure your machine as ftp server with access restricted to the domain cracker.org
15)configure your machine as an ssh server with access only from cracker.org
16)configure your machine as samba server to share the directory /data with rw permission to all members of example.com domain. members of cracker.org should not be allowed to access the share
17)set up your machine as mail server.mails to root should be delivered to user mark
18)set up your machine as httpd server server name tux.example.com (index.html for this wil be provided at ftp site)

Advanced conf
---------------------
19)enable imap with ssl support
20)configure a virtul host virtual.example.com (index.html will be provided at ftp site)
21)configure squid
17) Configure your machine to have a default runlevel of 3

Sample Model Question

RHCE QUESTION SUGGESTIONS ( EL3)
Two Parts:-
Trouble Shooting and Maintenance – morning session – duration 2.5 hrs
RHCT and RHCE both combined – afternoon session - duration 3 hrs.
Trouble Shooting and Maintenance :- (Two Phases)
=>Phase One – 8 questions
=>Phase Two – 2 questions
Phase One:-
Login Problem –
Username: root
Password: redhat
The candidate should able to login with username and password as given above(COMPULSORY)
Your system should able to ping with the given IP (server)
NFS. showmount command should show the exported directory.
(COMPULSORY)
LVM (resizing the logical volume)
Quota (user limit given)
Creating and mounting a new partition (COMPULSORY)
DIG should execute properly, giving you the answer, authority and query section of a given IP (server).
Changing the run level to 5. User should able to login in GUI mode.
The Compulsory Questions should be completed in one hour of maximum. Failing to do this will disqualify the candidate from continuing the exam.
The candidate should report to the examiner as soon as he feels he had completed.
Examiner will give the confirmation that he had completed the compulsory question successfully. He can continue with the remaining questions.
Phase Two :-
The candidate can report to the examiner after completing the phase one questions. However he can not get the confirmation for the successful completion of remaining (except Compulsory) questions. The examiner will give you a CD which will put your system onto a small installation after typing phase two in the installation screen.
After the installation the candidate will be in grub screen asking for OS. When you enter into the OS, Kernel Panic error will occur. The following problems are the components of Phase Two.
Boot Problem (Arguments May be edited in /boot/grub/grub.conf).
fstab Problem ( /etc/fstab file may be edited).
After completing the Trouble Shooting and Maintenance Session the candidate can go for a break.
Note: one can not go back to Phase One after entering Phase Two.
Only for the Compulsory questions one can get confirmation.
Failing to score 80% will result in losing the certification, but one can go thro’ the other sections of the exam.
RHCT
Enrolling your name and email id in the given address.
Installation of any rpm.
Installation of EL3 with given partion specification along with raid .
Group Administration.
Kernel Updation.
Network Printer Configuration.
IP Forwarding.
Crontab Execution
NIS (The candidate should bind his machine to server and should able to see the available users in the server)
Autofs (The candidate should able to login with specified username From Server)
RHCE
Denying the SSH Service to specified machines.
Denying the FTP Service to specified machines.
Configuring the POP3 sever and also denying this service from other machines
specified.
Setting the given user to receive all mails which are directed to a group.
Configuring Mail Server.
Configuring Samba.
NFS (The candidate should export successfully the specified file/directory to the specified network )
Configuring Apache.
The above 8 question is enough for the candidate to achieve the RHCE Certification, if completed successfully. However the following Extra 3 questions will also be a choice for him to score more. Only the best two will be taken into consideration from the following.
Extra
Squid (Candidate should configure his machine as Squid Proxy and should share the internet only to the specified network )
Mail Certification.
Extending your Web Server to have another Website.
Througout the exam, the questions will be based on two networks one in ‘0’ network that is candidate’s home network and other is ‘1’ network that is Cracker’s network . Both the networks will have Servers. ( Ex: server1.example.com , cracker1.example.com)