The suggestions so far will stop the running instance of inetd and disable
all services provided through the inetd daemon. But it will not stop them
from restarting at boot, which was part of the original question. Three
approaches, one gentle, one a hammer:
1) edit /etc/inetd.conf, comment out (put a '#' character at the
beginning of the line for the service) the services that are not
wanted, then do a SIGHUP on inetd. That will stop them now and
on future reboots.
2) Remove the servers for all services that are not wanted. RH6.2 does
separate user applications from the servers for most inetd services,
so just remove those packages.
3) Do a SIGTERM on the inetd process to kill the running instance. Use
'chkconfig --level 35 inet off' to disable the startup scripts so it
does not restart.
- rick warner -
On Sat, 19 Aug 2000, Bret Hughes wrote:
> Robert Soros wrote:
>
> > > On Sat, Aug 19, 2000 at 05:53:26PM +1000, Zlatko wrote:
> > > > Can someone please tell me how to close open ports/services on LInux
> > > > RH 6.2:
> > > > I wan to know how can I prevent services like ftp, telnet, finger, cmd,
> > > > ASR to start automaticly every time the system boots up?
> > >
> > > These services usually run off inetd. To disable, comment the
> > > corresponding entries in /etc/inetd.conf then run:
> > >
> > > # killall -HUP syslogd
> > >
> >
> > syslog? this will do nothing regarding inetd , maybe you meant inetd ?
> > I actually prefer doing this one the hard way, like this
> >
> > kill -HUP `cat /var/run/inetd.pid`
> >
> >
>
> I like the easy way (fewer characters):
>
> kill -HUP `pidof inetd`
>
> bret
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list