This guide outlines how to cut down on unnecessary services so that you have a lean and mean machine.
- List all the services running on your machine with the following command:
chkconfig --list | grep :on
- Go through the list and select packages to disable or remove. For instance:
chkconfig mdmonitor off
chkconfig smartd off
chkconfig messagebus off
chkconfig haldaemon off
chkconfig cups off
chkconfig atd off
chkconfig kdump off - If you do not know what a service is or does, just run:
rpm -qf /etc/init.d/<service_name>
Then run:rpm -qi <rpm>
References
- Red Hat Linux 5 Hardening Tips - National Security Agency
- Guide to the secure configuration of Red Hat Linux 5 - National Security Agency
- CentOS wiki on hardening the OS
- This guide from sysadminwiki
I truly like to reading your post. Thank you so much for taking the time to share such a nice information.
ReplyDeleteWebgrid
Helped a lot optimizing my server.
ReplyDeleteThanks!