CentOS Tip: Securing Your Server by Disabling Unneded Services

Here is an article explaining how to disable unneeded services in your CentOS (RedHat, Fedora) installation.

Basically, to find which services are active on boot:
$ chkconfig –list | grep on

To Disable, lets say portmap:
$ /sbin/chkconfig –level 0123456 portmap off

To Enable a service like apache httpd
$ /sbin/chkconfig httpd on