1827283 Members
3646 Online
109717 Solutions
New Discussion

Re: prelogin banner

 
SOLVED
Go to solution
Kirk Solano
Occasional Advisor

prelogin banner

I need to know how to add a message right before the login/password prompts when someone telnets into my hp.ux 10.20 server. Thanks in advance.
"You're never too young. It's never too early."
5 REPLIES 5
S.K. Chan
Honored Contributor

Re: prelogin banner

The file is /etc/issue
Solution

Re: prelogin banner

Find the following line in /etc/inetd.conf:

telnet stream tcp nowait root /usr/lbin/telnetd telnetd

and change to:

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

Then put whatever you want to display in /etc/issue

Then force inetd to re-read its config file:

inetd -c

You can do the same with rlogin if you like, this:

login stream tcp nowait root /usr/lbin/rlogind rlogind

becomes:

login stream tcp nowait root /usr/lbin/rlogind rlogind -B /etc/issue

HTH

Duncan

I am an HPE Employee
Accept or Kudo
A. Clay Stephenson
Acclaimed Contributor

Re: prelogin banner

Pretty easy:

vi /etc/inetd.conf and locate the telnetd entry. You then append '-b filename' to the entry.

A very common one is:
telnet -b /etc/issue

/etc/issue is the a textfile containing what ever message you like.

To make these changes 'take'; you need to do an inetd -c to force a reload on the inetd.conf file.

Clay
If it ain't broke, I can fix that.
Sridhar Bhaskarla
Honored Contributor

Re: prelogin banner

There are two places that are affected by the banner.

1. Console login.
2. Telnet login.

Console login looks for /etc/issue. telnetd is to be told to read a file with -b option. So, the common thing is to change the banner in /etc/issue for the console login and update inetd.conf for telnetd to spawn with /etc/issue.

#vi /etc/issue
(add your banner)
#vi /etc/inetd.conf
(replace telnetd at the end with telnetd -b)
#inetd -c

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Tim Ryan
Advisor

Re: prelogin banner

Great question!

I can't wait to add a message to my systems too.

-Tim