Your Ad Here

IBM AIX/UNIX system storage administration ksh/perl scripting

Friday, March 20, 2009

How can I suppress the telnet login message (hostname) information when a user telnets to an AIX server?

To modify the default telnet banner...

1) Display the message catalog and redirect to a file...

# dspcat -g /usr/lib/nls/msg/en_US/ > /tmp/telnetd.msg

2) Modify any message(s) you wish changed in /tmp/telnetd.msg

Remove the (%s) after the first telnet you see in this file...

Change this...
telnet (%s)\r\n"

To this...
telnet \r\n"

Save the file....

3) Generate a new message catalog /tmp/ using the modified file as imput...

# gencat /tmp/ /tmp/telnetd.msg

4) Backup the original message catalog file /usr/lib/nls/msg/en_US/, and
replace it with /tmp/

# cp /usr/lib/nls/msg/en_US/
# cp /tmp/ /usr/lib/nls/msg/en_US/

Telnet should now only display the word telnet and exclude the hostname.

No comments:


Blog Archive