Disable_TELNET


Tags:

                                  
Enable/Disable TELNET

Disabling telnet for Unix systems running inetd

To disable telnetd, edit /etc/inetd.conf and comment out the telnetd entry and then refresh inetd.
In /etc/inetd.conf there is a line like

  telnet stream  tcp     nowait  root    /usr/sbin/tcpd  in.telnetd

which can be found by search the string telnet. Comment it out by putting the pound character ("#")
at the beginning of the line so that the entry looks like

  #telnet stream  tcp     nowait  root    /usr/sbin/tcpd  in.telnetd

Save the file and then send the UP signal to inetd. This can usually be done with the commands

  cd /etc/rc.d/init.d
  ./inet reload

If your inet rc script does not support "reload", or you cannot find an equivalent file in the
 /etc/rc* directory, then find the process id using

  ps auxw | grep inetd | grep -v grep

and send the process the HUP signal using

  kill -HUP PID

where "PID" in the above is replaced by the actual process ID for inetd (the number returned in the
 second field of the "ps" command issued above).

Reverse the process to enable



To Disable/Enable telnet in Solaris 10:
--------------------------------------

svcadm disable telnet
svcadm enable telnet