How to Move MySQL Datadir to an alternate location

I have put together a guide on how to correctly move MySQL datadir to free up space on the /var partition. I do not take any responsibility for this article if you do not pay attention and you crash MySQL I am not responsible. If you are truly unsure of how to do this please get with a upper tier admin or myself to assist you.

Read the rest of this post »

How to Remove old kernels /boot is full.

This guide covers how to correctly remove old kernels to free up space on /boot partition. I do not take any responsibility for this article if you do not pay attention and you crash a system I am not responsible. If you are truly unsure of how to do this please get with a upper tier admin or myself to assist you. Please note that the versions below are only meant for reference please do not just copy and paste the commands please make sure to check your current kernel version and make sure that you do not remove the current installed kernel version.

Read the rest of this post »

December 29, 2009 • Posted in: How to, Linux • No Comments

How to Disable GET, wget, and curl

A great way to add more security to your web server is to disable GET, wget, and Curl which will stop web, and shell users from being able to download files to the server.  You can set up a group called get-users so that only users that are a member of this group will be able to to download files to the server.

Read the rest of this post »

November 2, 2008 • Posted in: cPanel, Linux, Security • No Comments

Adding Directory Indexing to Apache 2

This is a guide on how to add Directory Indexing to Apache 2 to so that it will look just like Apache 1.x Indexing with icons.

There are two different ways to do this if you have full root control over the entire server you can change the Apache 2 httpd.conf so that it will reflect server wide.  There is also away to set this on a per user, per domain basis in case you want to just set this for one user or domain or if you are on a shared hosting plan.
Read the rest of this post »

Installing APF Firewall and BFD Brute Force Detection

This is a guide on how to install and configure a firewall on your server. A firewall is one of the most import features of security on a server if NOT the MOST important.

First thing we are going to do is install APF (Advanced Policy Firewall) from R-fx Networks.

Log-in to the server with ssh and change to root user.
Read the rest of this post »

SSH Securing Root Disable Root Log-ins

This is a guide on how to add more security to your server by disabling root logins and change the standard port that ssh uses.

First thing we need to do is create a a user name that we are going to use that will be our new root login.


[root@dev ~]# /usr/sbin/adduser admin
-OR-
[root@dev ~]# useradd admin

You do not have to use admin you can use whatever you would like e.g. joe, jeff john, carl, richard either way remember that Linux is case sensitive so if you use a capitals in your login name you will have to use capitals every time you login.
Read the rest of this post »

November 1, 2008 • Posted in: Linux, Security • No Comments

Root Login Notifier Script

I recently decided to write a Root Login Notifier Script this script checks every user that logs in as root or switches user to root against your firewall’s allowed hosts if the IP address of the root user is not in the allowed hosts list it silent sends an email to the address specified in the script listing the the username they sudo from or logged in as, as well as their ip address, and the date/time.  If the root user is in the allowed hosts list of the firewall it will echo “Welcome Super User”.

Read the rest of this post »