Tuesday, January 15, 2008

Disabling of unused and insecure services

The command chkconfig –list will display the list of services on all runlevels. You can turn off the specific services by chkconfig off .

Eg:
chkconfig nfs off
chkconfig nfslock off
chkconfig cups off
chkconfig atd off
chkconfig autofs off
chkconfig xfs stop


Above are some examples of unwanted services commonly running in a server. You can stop these services immediately by using service command.

service nfs stop
service nfslock stop
service cups stop
service atd stop
service autofs stop
service xfs stop

No comments: