Script to turn off unneeded services
Tobias Speckbacher
tobias at quova.com
Wed Apr 7 23:03:05 UTC 2004
These can be switched on and off with chkconfig as well.
Type chkconfig --list to see a full listing plus runlevels for your
system
So for example you want to turn on ipop3 on within xinetd just use:
chkconfig ipop3 on
-T
-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com] On Behalf Of j.travis
Sent: Wednesday, April 07, 2004 2:51 PM
To: General Red Hat Linux discussion list
Subject: Re: Script to turn off unneeded services
Thanks. That is a great start! However, I plan to leave xinetd on to
run the pop3 and spop services. So I also need to be a little more
specific about just turning off a few of the xinetd entries. I was
thinking I would a use a stream-editor to replace "disable = no" to
"disable = yes" for /etc/xinet.d/servers, /etc/xinet.d/services and
/etc/xinet.d/sgi_fam. Is there any problem with turning these services
off as far as xinetd is concerned? The descriptions seem fairly
mundane:
services
# default: off
# description: An internal xinetd service, listing active services.
service services
servers
# default: off
# description: An internal xinetd service, listing active servers.
service servers
sgi_fam
# default: on
# description: FAM is a file monitoring daemon. It can \
# be used to get reports when files change.
----- Original Message -----
From: "Tobias Speckbacher" <tobias at quova.com>
To: "General Red Hat Linux discussion list" <redhat-list at redhat.com>
Sent: Wednesday, April 07, 2004 3:16 PM
Subject: RE: Script to turn off unneeded services
> Just add the something along the lines of this in your post section:
>
> /sbin/chkconfig psacct on
> /sbin/chkconfig canna off
> /sbin/chkconfig FreeWnn off
> /sbin/chkconfig xfs off
> /sbin/chkconfig netfs off
> /sbin/chkconfig gpm off
> /sbin/chkconfig atd off
> /sbin/chkconfig arptables_jf off
> /sbin/chkconfig kudzu off
> /sbin/chkconfig apmd off
> /sbin/chkconfig isdn off
> /sbin/chkconfig iptables off
> /sbin/chkconfig ip6tables off
> /sbin/chkconfig pcmcia off
> /sbin/chkconfig autofs off
> /sbin/chkconfig portmap off
> /sbin/chkconfig xinetd off
> /sbin/chkconfig rhnsd off
> /sbin/chkconfig cups off
>
> -----Original Message-----
> From: redhat-list-bounces at redhat.com
> [mailto:redhat-list-bounces at redhat.com] On Behalf Of j.travis
> Sent: Wednesday, April 07, 2004 2:11 PM
> To: redhat-list at redhat.com
> Subject: Script to turn off unneeded services
>
> A am planning on writing a script at the end of a kickstart file that
> turns off any unneeded services immediately after a RedHat 9.0
> installation. I think I have an idea of which services I would like
to
> turn off (for a simple webhosting server) and I have just started
> writing the script to disable them when it occured to me that someone
> may have already done something like this. Anyone?
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
More information about the redhat-list
mailing list