Use this How-To at your own risk. I will not take responsibility if you mess your server up.
If you have something to add that I have missed... PLEASE let me know… because this is what I am going by to set my server up. If something is wrong with what I have put here… PLEASE let me know that as well.
1. Change admin & root passwords
Login as Admin
Type: /usr/bin/passwd then set your new password at the prompts
Login as Root (su -)
Type: /usr/bin/passwd then set your new password at the prompts
2. Install Pine if Pico doesn’t exist on your server If you don’t know how to use Pico check this link http://www.dedicated-resources.com/guide/2...o-Use-Pico.html
Check for Pine:
Type: rpm -q pine
If it says package pine is not installed continue to get & install Pine
Get Pine:
Type: wget ftp://ftp.cac.washington.edu/pine/pine-4.61-1.i386.rpm
Install Pine:
Type: rpm -ivh pine-4.61-1.i386.rpm
3. Upgrade SSH if needed
To see SSH version installed (as root)
Type: cd
Type: pico -w install.log
Use the 'Where' command (type Ctrl + W)
Type: SSH at the prompt
Pico should scroll to the SSH packages installed
See comments under 7. Update RPMs regarding downloading upgrades from RedHat
4. Disable direct root login (do before disabling telnet, just in case you mess up and need to get back in)
Type: pico -w /etc/ssh/sshd_config
Edit #Protocol 2, 1 and change it to Protocol 2
Edit #PermitRootLogin yes and change it to PermitRootLogin no
Save and exit
Type: /etc/rc.d/init.d/sshd restart to restart ssh
5. Disable Telnet (make sure you are logged in via SSH)
Type: pico -w /etc/xinetd.d/telnet
change disable to YES
Save and Exit
Type: /etc/init.d/xinetd restart
6. Setup the server to send an email everytime someone logs into root
Type: cd
Type: pico .bash_profile
At the end add: echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access from `who | awk '{print $6}'`" offsite@emailaddress.com
**you can add multiple emails just leave a space between each email. Make sure the whole thing is on ONE line or it comes out looking strange**
7. Update RPMs
Use Pages 17-23 of http://download1.sw-soft.com/Plesk/Plesk7....ation-guide.pdf as a guide; yes I know this is for RedHat 9 and you are most likely running RedHat Enterprise... just make sure to get the updated versions
Make sure that you have access to run up2date. You will have to submit a trouble ticket requesting your server to be setup for the Red Hat Network to update RPMs
8. Setup Hostname
Apparently I didn’t do this part right… so if someone could fill in THIS information for me it would be great
9. Setup Firewall
This was VERY simple to setup. Just go to this link http://forum.ev1servers.net/showthread.php...&threadid=50867 and follow directions.