Technical article 105245

How can I suppress the fully qualified host name, the operating system and release, and the tty port when another host telnets into my system?

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6

Written · Last revised

Problem

I want to suppress the fully qualified host name, the operating system and release, and the tty port when another host telnets to my host.

Solution

The standard response to a telnet session is as follows:

# telnet sequoia
Trying 132.147.144.76...
Connected to sequoia.
Escape character is '^]'.
SCO OpenServer(TM) Release 5 (sequoia.uss.sco.com) (ttyp21)
login:
To modify the telnetd response:

(1) Edit /etc/inetd.conf to include a '-h' option as follows:

telnet stream tcp nowait NOLUID /etc/telnetd telnetd -h

The original /etc/inetd.conf entry should be as follows:

telnet stream tcp nowait NOLUID /etc/telnetd telnetd
(2) Invoke:
kill -1 `cat /etc/inetd.pid`

This will cause inetd to reread the /etc/inetd.conf table.

As a result of this change, the new response to telnet is:

# telnet sequoia
Trying 132.147.144.76...
Connected to sequoia.
Escape character is '^]'.
login:

From the Xinuos technical article database, record 105245. Reproduced with permission. The original is at www.sco.com/ta/105245, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.