Your Ad Here

IBM AIX/UNIX system storage administration ksh/perl scripting

Showing posts with label telnet. Show all posts
Showing posts with label telnet. Show all posts

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.

Wednesday, March 18, 2009

Adding New telnet Service to Different Port


Adding New telnet Service to Different Port

Technote (FAQ)
Problem

Client would like to add new telnetd with different port.
Solution

Environment

AIX Version 5.x
  1. Using your preferred editor, edit the file /etc/inetd.conf by adding the following:
    telnet80  stream  tcp6    nowait  root    /usr/sbin/telnetd      telnetd
    Note: Port number 80 is being used in this example.
  2. Using your preferred editor, edit the file /etc/services by adding the following:
    telnet80        80/tcp
  3. Now run the following command:
         refresh -s inetd

Historical Number
isg1pTechnote1404

Labels

BlogCatalog