> 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`
Well the idea behind (kill -HUP `cat /var/run/process.pid`) is that it
makes it easy
to integrate into scripts.. the /var/run/inetd.pid simply contains
the current process id of
inetd... you'll find others located in /var/run such as
httpd/gdm/crond/sendmail/syslog/etc....
need a quick way to HUP a system daemon in your script ? This is the
way, a much better alternative to grepping through ps listing and
finding the process.
Robert Soros
[EMAIL PROTECTED]
http://soros.ath.cx
>
> 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