Author Topic: How to Modify the Telnet Logon Banner  (Read 1183 times)

Offline jmelika

  • Administrator
  • Hero Member
  • *****
  • Posts: 339
  • Karma: 7
How to Modify the Telnet Logon Banner
« on: August 13, 2007, 04:03:05 AM »
This banner is derived from settings in the /etc/gettytab file. The following procedure is recommended to get a customized banner

   1. Edit the /etc/gettytab file as shown below:

> shell
# su
Password:
netscaler# cd /etc/
netscaler# pico gettytab

Look for a section of text as follows:

default: :cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200: :if=/etc/issue:

Change this to something like the following:

default: :cb:ce:ck:lc:fd#1000:im=\r\nYour banner text here\r\n\r\n:sp#1200: :if=/etc/issue:

   2. Save the gettytab file before exiting.
   3. Kill and restart the inetd process as follows:
         1. Find the inetd process:

      # ps -ax | grep inetd
      10386  ??  Is     0:00.00 /usr/sbin/inetd -wW

         1. Kill the inetd process:

      Kill -9 10386

         1. Restart the inetd process

      # /usr/sbin/inetd –wW

         1. Verify the process has started

      # ps -ax | grep inetd
      10406  ??  Ss     0:00.00 /usr/sbin/inetd –wW
      10410  p1  R+     0:00.00 grep inetd

Note: The specific characters \r\n correspond to carriage return and newline respectively. Take that into consideration with regard to the appearance of the new banner with respect to the initial logon prompt.

It is also a good practice to make an extra copy of the original lines and comment them out. This is a simple way to return to the default configuration if needed.

In a High Availability setup, do not forget to duplicate this procedure on the secondary NetScaler device.