Operating System - HP-UX
1849031 Members
5662 Online
104041 Solutions
New Discussion

Re: Telnet message login...

 
SOLVED
Go to solution
OLIVA_1
Regular Advisor

Telnet message login...

Hello,

I would like change the mnessage I have when I do a telnet on a server.

--------------------------------------
HP-UX sade110 B.11.00 U 9000/800 (tc)

login:
--------------------------------------

I would like remove the sentence "HP-UX sade110 B.11.00 U 9000/800 (tc)" before login prompt, someone knows where is the file which manages this ?

Thanks,
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor
Solution

Re: Telnet message login...

Hi:

Edit your '/etc/inetd.conf' entry for 'telnet' and specify a "banner" file of your choice with the '-b' option and argument. It should look something like:

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

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: Telnet message login...

Hi (agani):

Oh, and having editted 'inetd.conf' restart the daemon with:

# /usr/sbin/inetd -c

Regards!

...JRF...
Robert-Jan Goossens
Honored Contributor

Re: Telnet message login...

Hi Oliva,

Edit the /etc/issue file and check the /etc/initd.conf for this line

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

after editing the initd.conf restart inetd with the command "/etc/inetd -c"

Regards,
Robert-Jan
Antonio Cardoso_1
Trusted Contributor

Re: Telnet message login...

Hi,

you need to create a new welcome text file, let's say /etc/mytelnet.txt
and change telnetd entry in /etc/inetd.conf to
telnet stream tcp nowait root /usr/lbin/telnetd telnetd -b /etc/mytelnet.txt
OLIVA_1
Regular Advisor

Re: Telnet message login...

Thanks to all,

And if I use /usr/adm/inetd.sec file ?
What is the syntax ?


Thanks ?
James R. Ferguson
Acclaimed Contributor

Re: Telnet message login...

Hi Oliva:

The manpages for 'inetd.sec(4)' will describe the syntax of the file. In fact, when looking for any configuration file layout, look in section-4 of the manpages. That's where file layouts are found:

http://docs.hp.com/en/B2355-60127/inetd.sec.4.html

Regards!

...JRF...