[236] in netbsd-help mailing list archive
Re: Telnet logins
daemon@ATHENA.MIT.EDU (John Hawkinson)
Mon Jun 26 10:49:46 1995
Date: Mon, 26 Jun 1995 10:49:14 -0400
To: efoo@MIT.EDU
Cc: netbsd-help@MIT.EDU
From: John Hawkinson <jhawk@MIT.EDU>
> I'd like to know if there is a way to temporarily disable telnet
> access to my machine for a short period of time. As far as I can
> tell the only way is to kill inetd, but I don't want to lose
> fingerd, talkd, etc.; just telnetd. Can I just "touch" some file in
> /etc? or is it not so simple?
It's necessary to edit /etc/inetd.conf, comment out (with a #
character) the telnetd line, and then send inetd a HUP signal (that
is, do a:
kill -HUP `cat /var/run/inetd.pid`
).
Touching /etc/nologin will probably also work, but it will prevent
you from logging in, and it will also prevent local logins.
--jhawk