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/telnetd.cat > /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/telnetd.cat using the modified file as imput...

# gencat /tmp/telnetd.cat /tmp/telnetd.msg


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





# cp /usr/lib/nls/msg/en_US/telnetd.cat/usr/lib/nls/msg/en_US/telnetd.cat.save
# cp /tmp/telnetd.cat /usr/lib/nls/msg/en_US/telnetd.cat




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

No comments:

Labels

Blog Archive

BlogCatalog