Disable unwanted services – Linux Server

One of the first steps that we should do while presetting a server is to disable unwanted services on the server. The server should be preloaded with some services like bluetooth, X services, etc which are not required to a server normally. The number of such services will vary, based on the default packages installed by your provider. After a little research, we have compiled in a list of services that can be disabled on  Linux servers. Please note that this is a generic one and you should check the list before implementing it, if you are going to build any custom stuff. Normally it should work seamlessly with control panel installations, web services , etc.

The list of services that can be disbaled are listed below seprately for VPS and dedicated servers.

VPS

hidd
kudzu
mctrans
mdmonitor
microcode_ctl
netfs
nfslock
pcscd
portmap
restorecond
rpcgssd
rpcidmapd
yum-updatesd
NetworkManager
avahi
isdn
rpcsvcgssd
acpid
anacron
conman
cpuspeed
dnsmasq
filelimits
irda
iscsi
iscsid
lm_sensors
mdmpd
multipathd
netconsole
netplugd
nfs
nfslock
nsd
oddjobd
pand
portmap
psacct
rawdevices
smartd
xfs
atd
auditd
autofs
avahi-daemon
mcstrans
bluetooth
cups
firstboot
gpm
haldaemon

Dedicated

hidd
kudzu
mctrans
microcode_ctl
netfs
nfslock
pcscd
portmap
restorecond
rpcgssd
rpcidmapd
yum-updatesd
NetworkManager
avahi
isdn
rpcsvcgssd
acpid
anacron
conman
cpuspeed
dnsmasq
filelimits
irda
iscsi
iscsid
mdmpd
multipathd
netconsole
netplugd
nfs
nfslock
nsd
oddjobd
pand
portmap
psacct
rawdevices
xfs
atd
auditd
autofs
avahi-daemon
mcstrans
bluetooth
cups
firstboot
gpm
haldaemon

You can use the following scripts to disable unneeded services for VPS and Dedicated servers respectively.

VPS
yum install wget ; cd /usr/local/src/ && wget http://nixtree.com/download/free/services_dis_vps.txt && for i in `cat services_dis_vps.txt`; do chkconfig $i off; service $i stop; done

Dedicated
yum install wget ; cd /usr/local/src/ && wget http://nixtree.com/download/free/services_dis_ded.txt && for i in `cat services_dis_ded.txt`; do chkconfig $i off; service $i stop; done

Facebook Comments

One thought on “Disable unwanted services – Linux Server

Leave a Reply