Jan 25 Class
1. edit
/etc/ssh/sshd_config
2. Change
#PermitRootLogin yes
to
PermitRootLogin no
3. Save File
4. Restart sshd
/etc/init.d/sshd restart
Use the Security Control Panel
or
edit
/etc/sysconfig/iptables
Use the Services Control Panel
1. edit the file
/etc/yum/yum-updatesd.conf
2. change
# automatically install updates
do_update = yes
# automatically download updates
do_download = yes
# automatically download deps of updates
do_download_deps = yes
1. Setting up sendmail to handle the UNT mailhost
(allows for sending mail off campus)
# yum install sendmail-cf
edit
/etc/mail/sendmail.mc
delete dnl from line:
dnl define(`SMART_HOST',`smtp.your.provider')
and change to:
define(`SMART_HOST',`mailhost.unt.edu')
add dnl to the line:
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
save and exit
make the changes
# make -C /etc/mail
restart sendmail
# /sbin/service sendmail restart
2. Setting the .forward file so that all group members get
daily watch logs on system security
cd /root
edit .forward
on each line enter the e-mail address of each group member
3. Mail a message to root as a test
# mail root
Subject: Test to the Group
This is a test message
.
(return on cc)
This will send an e-mail to root that should then get sent
to all in the .forward file for root.
Assignment 1 Due
(Install Server, User Accounts, SSH/SFTP Service, Firewall)
1. edit
/etc/httpd/conf/httpd.conf
Look for the setting for public_html
Change
UserDir disable
to
#UserDir disable
and Change
#UserDir public_html
to
UserDir public_html
2. save and exit
3. Use the Services Control Panel to Start Apache

1. ssh into your server and login into you account 2. Create a public_html under each user directory mkdir public_html 3. use the chcon command to set httpd permission for the public_html dir chcon -R -t httpd_sys_content_t public_html 4. open your home directory to apache access (see presenation concerning security issues) chmod a+x . 5. save a index.html into your public_html. It will appear on your URL http://servername.cecs.unt.edu/~youraccount


Assignment 3 Due - (VNC / Wiki)
1. To Install Mysql
yum install mysql mysql-devel mysql-server
2. Create the system startup links for MySQL and start the MySQL server:
chkconfig --levels 235 mysqld on
3. Start Mysql
/etc/init.d/mysqld start
4. Set the Root Password
mysqladmin -u root password yourrootsqlpassword
5. Install Apache2 with PHP 5 Support
yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel
6. Edit /etc/httpd/conf/httpd.conf
change DirectoryIndex to
DirectoryIndex index.html index.htm index.php
Add the following line under #AddType application/x-tar .tgz
AddType application/x-httpd-php .php .html
7. Configure start Apache at boot time
chkconfig --levels 235 httpd on
8. Start Apache
/etc/init.d/httpd start
use the FC6 installer and find mysqladmin, select it for install.
Assignment 5 Due - (Dynamic Web Content)
|
|
|
Contact Information:Department of Learning Technologies |
|
Email:For questions about content in this web site, contact the Webmaster. |
|
System: |
|
Disclaimer | AA/EOE/ADA | Privacy Statement | Web Accessibility Policy | State of Texas Online |