1834156 Members
2909 Online
110064 Solutions
New Discussion

login messages

 
SOLVED
Go to solution
No Name_2
Occasional Advisor

login messages

Hello all!

Any easy one... I know that motd and text files in /etc/profile are displayed once an interactive user actually logs in, but how can I modify the message that is displayed just before the login: prompt is displayed?

For instance my new system displays:

HP-UX icgsva1 B.11.00 U 9000/800 (ta)

login: g018666
Password:
5 REPLIES 5
John Poff
Honored Contributor
Solution

Re: login messages

Hi Tim,

That message comes from the /etc/issue file. Make sure that you have the '-b /etc/issue' switch set for telnetd in your /etc/inetd.conf file also.

JP
James R. Ferguson
Acclaimed Contributor

Re: login messages

Hi Tim:

One thing you can do is modify the 'telnet' banner:

Specify a file containing a custom banner with the '-b bannerfile' option. Thus, to use '/etc/issue', modify '/etc/inetd.conf' to look like:

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

Then, restart 'inetd':

# /usr/sbin/inetd -c

Regards!

...JRF...

Sridhar Bhaskarla
Honored Contributor

Re: login messages

Hi Tim,

You already got the answer.

/etc/issue is recommended than any other file as it displays the banner message at the console also.

You should usually keep your company specific legal|security banner in /etc/issue.

Enable it to be displayed at telnet banner using the above suggestions. Console will be automatically taken care.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
No Name_2
Occasional Advisor

Re: login messages

Thank you much!!!
Sean OB_1
Honored Contributor

Re: login messages

This is in /etc/issue

Put in whatever you want there. Then modify the telnet line in /etc/inetd.conf and add "-b /etc/issue" at the end of the line.