ࡱ > g i f bjbj .> j j R > l P P P d 8 T d g f t t " C. C. C. f f f f f f f $ zh j r f P C. * C. C. C. f %4
f %4 %4 %4 C. P f %4 C. f %4 N %4 s: Kb l 0 P f h Jd \ 51 x c * f f 0 g c k 2 x k f %4 d d Matric No:_________________
NAPIER UNIVERSITY
SCHOOL OF COMPUTING
CO32034
SERVER ADMINISTRATION
ACADEMIC SESSION: 2005-6
EXAMINATION DIET: JANUARY
TRIMESTER: ONE
EXAM DURATION: 2 HOURS
READING TIME: NONE
EXAM PAPER INFORMATION
Answer ALL questions.
Write the answers into the box provided under each question. The box size should be sufficient to answer the specified question. Each question is worth 2 marks. If you are running out of space (for example because you need to make a correction to your answer), you may use the back of the page but in that case, please, put a note at the bottom of the page saying "TURN OVER".
Number of pages - ?
Number of questions TWENTY
All exam papers to be returned to the examiner.
OPEN BOOK EXAMINATION
EXAMINERS: GORDON RUSSELL & UTA PRISS
PLEASE READ FULL INSTRUCTIONS BEFORE COMMENCING WRITING
What is the function of su, and what is the difference between su gordon" and su gordon"?
Mark [2]
What type of files would you expect to find in /sbin?
Mark [2]
Consider the following line:gordon:x:44:In which file in /etc would you expect to see such a line, and what does it mean?
Mark [2]
The following commands are typed on a Unix computer.
mkdir temp
cd temp/
mkdir txt.txt/
cd txt.txt/
touch hello
cd ..
ls *.*
What is printed on the screen in response to the last line of the commands?
Mark [2]
Comment on two differences between an init.d approach to running a daemon and the use of xinetd.
Mark [2]
What are the key differences between files in /etc/skel and /etc/profile.d?
Mark [2]
Consider the following topology:
The ethernet devices shown are from the point of view of M1.
Assume MGW is the gateway machine for this cluster of machines.
Also from the viewpoint of M1, the following is known:
Eth0 : 162.2.1.20/16
Eth1 : 162.1.1.3/24 Eth2 : 162.1.2.5/24
MGW is 162.2.1.1
M2 is 162.1.1.4
M3 is 162.1.2.10Supply ifconfig lines for this scenario for use on M1.
Mark [2]
Continuing from the previous question, supply ip route commands for M2.
Mark [2]
Show the iptable commands relevant in defining an egress filter allowing only related or established connections, as well as outgoing http, to be accepted and all other egress traffic to be rejected. You can assume egress only involves eth0.
Mark [2]
Consider the following iptable configuration:iptables P INPUT dropiptables A INPUT m state --state RELATED,ESTABLISHED j ACCEPTiptables A INPUT p tcp --sport ssh j ACCEPTWould incoming ssh connection requests be blocked? Give an explanation for your answer.
Mark [2]
To test a web server which is hosting the virtual host grussell.org, using only telnet, what would you type at the telnet prompt?
Mark [2]
What fields would you expect to have to define in a VirtualHost definition in apache?
Mark [2]
Supply mod_rewrite instructions such that a request for http://grussell.org/~uta gets redirected externally and permanently to http://upriss.org.uk.
Mark [2]
With respect to email delivery, discuss the difference between a header and an envelope.
Mark [2]
Provide a virtualusertable for sendmail which supports the following:
email to anyone except andrew and jim at hello.com gets delivered to bob locally.
email to andrew@hello.com gets delivered locally to andrew.
email to jim@hello.com gets delivered to andrew.
Mark [2]
The following is an .htaccess file of a fictitious student on a students web account.
AuthType Basic
AuthName "Password Required"
AuthUserFile /home/09006754/.www-password
Require user server_admin
Provide the code to change the password for server_admin.
Mark [2]
A database administrator wants to export the data of a single database table from Mysql and import it into an Oracle database. What is the commonly most widely used format for exporting/importing data between different databases? What type of command can be used to achieve the export/import?
Mark [2]
Below are some lines from httpd.conf:
UserDir public_html
ServerName www.titan.napier.ac.uk:80
ErrorDocument 500 "The server made a boo boo."
ErrorDocument 404 "Not found!!!!."
ErrorDocument 402 http://www.example.com/subscription_info.html
There are two possibilities of what can happen when a client requests http://www.titan.napier.ac.uk/~cs100/public_html. What is most likely going to be displayed to the client's browser? What is the condition for the second, less likely possibility?
Mark [2]
Below is a line from a webserver logfile:
2005-10-17 00:00:08 W3SVC1097 213.171.193.80 GET /robots.txt - 80 -
202.160.180.33 HTTP/1.0 Mozilla/5.0+(compatible;+Yahoo!+Slurp;
+http://help.yahoo.com/help/us/ysearch/slurp) - - 404 0 2 1814 194 421
What kind of request was this? Was this a successful request (i.e. was a document found)?
Mark [2]
Can a directory on a normal Linux computer contain the files file1.txt, file2.txt and File2.txt? What happens if these files are tar-zipped, copied and unpacked onto a case-preserving case-insensitive file systems, such as the default HFS+ on OS X.
Mark [2]
Total Marks [40]
END OF PAPER
PAGE
PAGE 9
Your answer:
Your answer:
Your answer:
Your answer:
Your answer:
Your answer:
Your answer:
Your answer:
Your answer:
Your answer:
Your answer:
Your answer:
Your answer:
Your answer:
Your answer:
Your answer:
Your answer:
Your answer:
eth0
MGW
eth2
M1
eth1
M3
M2
Your answer:
Your answer:
E G N Q R j k l m 5 n p p
q
@ ⷬɛɆɆɆɆɆɆɆɆɆɆɆɆɆ (j CJ OJ QJ U^J mH nH sH u 5>*OJ QJ ^J >*^J ^J 5>* OJ QJ \^J 5OJ QJ \^J OJ QJ \^J OJ QJ ^J >* OJ QJ ^J 5>* OJ QJ ^J 5OJ QJ ^J 5CJ OJ QJ ^J 5CJ OJ QJ \^J 4 / 0 D E F G Q R j k l m n
&