HOST=”<`hostname |cut -d”.” -f1`>”

if [ “$LOGNAME” = “root” ]; then
PROMT=”#”
else
PROMT=”>”
fi

PS1=’${HOST} ${PWD}${PROMT} ‘
PS2=’${HOST} ${PWD}> ‘
export PS1 PS2
trap 1 2 3

inetd.conf

telnet       stream tcp nowait root /usr/lbin/telnetd   telnetd -b /etc/issue

PROBLEM
This document describes how to set up a message for when users telnet into
the system.  It is often used for security.
RESOLUTION
There are 2 things that need to be done in order for the security banner to be
displayed at the beginning of telnet sessions.  The first is to look at the
telnet entry in /etc/inetd.conf.

grep telnet /etc/inetd.conf

telnet       stream tcp nowait root /usr/lbin/telnetd  telnetd -b /etc/issue

The -b option is telling telnet where to look for the banner.
If the -b is not there, edit /etc/inetd.conf and add  -b /etc/issue to
the telnet entry. Then execute /usr/sbin/inetd -c to have inetd reread
/etc/inetd.conf.

Now that telnet knows to look at the /etc/issue file, all of the text
in /etc/issue is displayed to users when they telnet into the system.

ALT KEYWORDS
telnet security banner “security banner”