Group Project LinuxOS Part B
Group Project LinuxOS Part B
Success Criteria
- To be able to configure Apache server
- To be able to configure MySQL server.
- To be able to configure PHP interpreter.
- To be able to configure NTP server.
- To be able to configure FTP server
- To be able to implement an access control mechanism for the purpose of authorizing
webpages and directory.
- Configuring MLS.
Keywords
SELinux, Apache, php, mysql, ntp, smtp, pop, localhost, htaccess, htpasswd, ftp, MLS
Resources
Option-A: LAMP (Linux, Apache, MySQL, and PHP) Servers hosted in a virtual machine.
Option-B: XAMPP Servers (XML, Apache, MySQL, PHP, and Perl) installed on Windows
OS.
Red Hat Enterprise Linux 6.0: https://access.redhat.com/documentation/en-
US/Red_Hat_Enterprise_Linux/6/html/Security-Enhanced_Linux/creating-a-user-with-a-
specific-mls-range.html
Information Technology Management | Ryerson University 1
Informatio
on Systems Security and P
Privacy – ITM
M 820 Part B
SELinux Projeect: http://sellinuxproject.org/page/NB
B_MLS#Multti-Level_Seccurity_and_M
Multi-
Category_Sec
C curity
Pro
oject Prreparattion: In
nstallingg the LA
AMP P
Platform
m
10 Maarks
1. In
nstall Fed
dora SELiinux 23 (o Operating Systems in a
or later vversion) O
Vmware
V viirtual macchine.
2. In
nstall Apa
ache serveer
o yum install httpd
o servicce httpd startt (note: after httpd started, make sure the Firefox is installed)
test successsful installaation by brow wsing the UR
RL: localhosst
Th he test page should
s be dissplayed.
3. In
nstall MyS
SQL Data
abase (Forr SELinux version 23)
a. yum install
i mysqql mysql-serv
ver
b. system
mctl enable mysqld.servvice
c. system
mctl start my
ysqld.service
d. mysqql_secure_insstallation
Note:
N ng a later veersion (e.g., Fedora 25)) do the folloowing:
If you are installin
a) yum install mysql m mysql-serverr
b) systemcctl enable mmysqld.servicce
c) systemcctl start mariiadb.servicee
d) mysql__secure_instaallation
4. In
nstall PHP
P5
a. yum install
i php
b. system mctl restart httpd.service
h e
c. test PHP5
P by creaating a PHP document
i. vi /var/wwww/html/info o.php
<?php php pinfo ( ); ?>
d. test thhe page in th u
he browser using the httpp://localhost/ RL
t/info.php UR
Note: Aftfter successfuult PHP instaallation you should get a following ffigure (or
similar):
Management | Ryerson U
Information TTechnology M University 2
Informatio
on Systems Security and P
Privacy – ITM
M 820 Part B
5. In
nstall php
pMyAdmin
n
a. yum install
i phpm
myadmin
b. configure phpMy yAdmin usin
ng the VI ediitor:
vi /etcc/httpd/conf.d/phpMyAddmin.conf
6. Restart
R Ap
pache serv
ver
system
mctl restart httpd.service
h e
7. Access
A php
pMyAdmin
n by using
g the URL
L http://loccalhost/ph
hpmyadmiin
Part 1:
1 Passw
word Pro
otect Websites
W P
Pages 15 Marrks
httpp://httpd.apachee.org/docs/2.2//howto/htaccesss.html
http://docs.fed
doraproject.org
g/en-US/Fedoraa/16/html/Systtem_Administrrators_Guide/ch-Web_Serverrs.html
http://www.reeallylinux.com
m/docs/htaccesss.shtml
Using access
a filess, implemen
nt an accesss control m mechanism m that authhenticate ussers
while atttempting tot access websites,
w fiiles of webbsites, or thhe entire diirectory.
Replace the
t conten nts of the innfo.php pagge with thee followingg
code andd test your access conntrol schem me based onn attemptinng
to accesss this page;; the page ccan be foun
und at /var/w
www/htmll
<html>
Information TTechnology M
Management | Ryerson U
University 3
Informatio
on Systems Security and P
Privacy – ITM
M 820 Part B
<hr size=
=20 color=
=orange>
<h1 align
n=center> Informatioon Systemss Security and Privaccy
<br> ITMM 820 Projject</h1>
n=center> Group nam
<h2 align mes: xxxxxx</h2>
<hr size=
=20 color=
=orange>
</html>
/var/wwww/html
vi yourfille.html
htpasswdd –c filenamee UserNamee
Part 2: Installing
g FTP Serv
ver (pure--ftpd) in A
Anonymou
us Mode 10 Maarks
pure-FTPPd is a free (BSD), secure, production-qu
p ality and standdard-conformaant FTP serveer. It doesn't prrovide
useless beells and whistlles, but focusees on efficien
ncy and ease oof use. It provvides simple aanswers to com
mmon
needs, plu
us unique usefuul features forr personal userrs as well as hoosting provideers.
2.1
2 Install pure-ftpd
p server (http:://www.pureeftpd.org/prooject/pure-ftppd)
o yum -y- install purre-ftpd
o system
mctl start puree-ftpd.service
mctl enable pure-ftpd.serv
o system vice
o Test th
he operabilityy of the serveer using ftp:///localhost
Information TTechnology M
Management | Ryerson U
University 4
Informatio
on Systems Security and P
Privacy – ITM
M 820 Part B
Part 3:
3 Time Synchro
S nization
n Server (Networrk Time Protocool)
10 Marrks
http
p://support.nttp.org/bin/viiew/Servers//NTPPoolSeervers
hhttp://www.pool.ntp.orgg/en/vendorss.html
http://wwww.nrc-cnrc.gcc.ca/eng/servvices/time/neetwork_timee.html
htttps://supernooc.rogersteleecom.net/opss/ntp/
3 .1 Install NTP
N Serverr
- yum -yy install nt p
3 .2 Revise the
t configu
uration filee of the prootocols
- vi /etc /ntp.conf
Information TTechnology M
Management | Ryerson U
University 5
Information Systems Security and Privacy – ITM 820 Part B
3.3 add the network range you allow to receive requests
server 0.fedora.pool.ntp.org iburst
server 1.fedora.pool.ntp.org iburst
server 2.fedora.pool.ntp.org iburst
server 3.fedora.pool.ntp.org iburst
server ntp1.jst.mfeed.ad.jp
Information Technology Management | Ryerson University 6
Informatio
on Systems Security and P
Privacy – ITM
M 820 Part B
Part 4:
4 E-maill Server (Postfix
x) 10 Marks
http://w
www.techoto
opia.com/ind
dex.php/Connfiguring_a__Fedora_Linuux_Email_S
Server
olution Clien
4.2 Install Evo nt
c. yum in nstall evolutiion*
d. config gure your e-mmail account
pop.gmmail.com portp 995
smtp.ggmail.com portp 465
Information TTechnology M
Management | Ryerson U
University 7
Informatio
on Systems Security and P
Privacy – ITM
M 820 Part B
Part 5:
5 PGP Keys
K Gen
neration
n 10 Maarks
https://feddoraproject.orgg/wiki/Using_G
GPG
5.2 Geneerate PGP Keeys for each member of your group aand publish the public kkeys on the
MIT PGP server: http://pgp.mmit.edu/
5.3 Encry
ypt the attach
hed file ( part2 ) using one
o of the puublic keys puublished on tthe
http://pgp.mitt.server
Submit yo
our encrypted message as
a part2.gpg.
Information TTechnology M
Management | Ryerson U
University 8
Information Systems Security and Privacy – ITM 820 Part B
Part 6: Enabling Multilevel Security (MLS) [15 Marks]
Using the principles of digital signature as well as PGP keys, Implement a digital signature
scheme a message authenticity must be verified.
Submission
This section details the instructions to follow when submitting your assignment through
Turnitin.com.
The assignment report (Part A & B) must be submitted as a unified file in .pdf format.
Support your work with screens snapshots.
Information Technology Management | Ryerson University 9