Good Primer for Proccesses?

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
Galactic Zero
Forum Regular
Forum Regular
Posts: 471
Joined: Mon Dec 06, 2004 10:43 pm

Good Primer for Proccesses?

Unread post by Galactic Zero »

Looking for a good primer on which processes should be disabled on a Centos 5 box. I noticed that bluetooth and a couple of others were enabled and just want to turn off others that are just not necessary.

Thanks.

PS. IF anyone is interested to see what chkconfig shows as on I'll email the image file to you.

..
Franklyn Halamka
Still learning my way around Linux Security.
http://www.galacticzero.net
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

there are checks in ASL for it, my list would be:

make sure the box is in runlevel 3, rather than 5 (X11)
disable xfs, nfs, nfslock, portmap, hp printer, cups, bluetooth, messagebus, smartcard stuff, rpc language daemons, etc. Im probably leaving stuff out, there are a mess of them on by default.
Galactic Zero
Forum Regular
Forum Regular
Posts: 471
Joined: Mon Dec 06, 2004 10:43 pm

Unread post by Galactic Zero »

Here is what I have left running:

anacron, auditd, autofs, avahi-daemon, clamav-milter, clamd, courier-imap, cpuspeed, crond, firstboot, gpm, haldaemon, hidd, httpd, ip6tables, iptables, irqbalance, kudzu, lvm2-monitor, mailman, mcstrans, mdmonitor, microcode_ctl, netfs, network, ntpd, pcscd, psa, psa-firewall, psa-vpn, qmail, readahead_early, restorecond, spamassassin, sshd, syslog, xinetd, yum-updatesd
Franklyn Halamka
Still learning my way around Linux Security.
http://www.galacticzero.net
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

I'd disable:
autofs, avahi-daemon, clamav-milter, cpuspeed, crond, firstboot, haldaemon, hidd, irqbalance, lvm2-monitor, mcstrans, mdmonitor, microcode_ctl, netfs, pcscd

If you dont use selinux you can also take out restorecon, and personally I find auditd data useless. But if you're using selinux once in a blue moon its helpful.
Galactic Zero
Forum Regular
Forum Regular
Posts: 471
Joined: Mon Dec 06, 2004 10:43 pm

Unread post by Galactic Zero »

If I turn off auditd won't that affect awstats and webalizer?
Franklyn Halamka
Still learning my way around Linux Security.
http://www.galacticzero.net
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Not at all, its more of a means to audit processes
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Unread post by faris »

I always thought things like irqbalance and cpuspeed were important. This is interesting.

Also I thought halddaemon was quite important, even though it is currently giving me problems on one system, where it is spitting out an error about IRQs (even though I can't find a problem and everything seems to work)

Faris.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

if you're on a multi-cpu system (irqbalance), multi-cores dont count. cpuspeed if you're on a centrino laptop, and halddaemon if you're on a desktop
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

Why disable crond?
Lemonbit Internet Dedicated Server Management
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

typo there, dont disable crond. Anacron is what I ment
Galactic Zero
Forum Regular
Forum Regular
Posts: 471
Joined: Mon Dec 06, 2004 10:43 pm

Unread post by Galactic Zero »

and I disabled cron... hehe

Ok, so chkconfig --level 2345 crond on should fix me?

Thanks.
Franklyn Halamka
Still learning my way around Linux Security.
http://www.galacticzero.net
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

Yep. And service crond start if crond is not running right now.
Lemonbit Internet Dedicated Server Management
Post Reply