[SunHELP] how to get welcome msg in telnet

DAUBIGNE Sebastien - BOR sunhelp at sunhelp.org
Fri Jun 22 04:01:07 CDT 2001


The following is for Solaris 2.6 :


# man telnetd=20
[...]
The banner  printed  by  in.telnetd  is  configurable.   The
     default  is  (more  or less) equivalent to "`uname -sr`" and
     will be used if no banner is  set  in  /etc/default/telnetd.
     To set the banner, add a line of the form
         BANNER=3D"..."
to /etc/default/telnetd.  Nonempty banner strings are fed to
     shells  for  evaluation.  The default banner may be obtained
     by

         BANNER=3D"\\r\\n\\r\\n`uname -s` `uname -r`\\r\\n\\r\\n"

     and no banner will be printed if  /etc/default/telnetd  con-
     tains

         BANNER=3D""

[...]


Hence with  2.6 you have to create a /etc/default/telnetd file =
containing
the line :
BANNER=3D" Welcome to ABC server"

Note that telnetd truncate the banner if it is too long. You can bypass =
this
limitation by including a file like this :
BANNER=3D"`cat /etc/default/telnetd.mess`\r\n\r\n"

(Your long banner is in / etc/default/telnetd.mess).


---
Sebastien DAUBIGNE=20
sebastien.daubigne at sema.fr - 05.57.26.56.36
Sema Global Services - AFM/DW/Pessac


	-----Message d'origine-----
	De:	Michael S. Schiller [SMTP:schiller at agrijag.com]
	Date:	vendredi 22 juin 2001 06:37
	=C0:	sunhelp at sunhelp.org
	Objet:	Re: [SunHELP] how to get welcome msg in telnet

	The file you're looking for is /etc/issue put in there your 'Welcome
to
	ABC server' line, and it will display before the login: prompt.

	-Mike

	"MUHAMED, Mohd. Khairul" wrote:

	>
	>
	> Hi,
	>
	> How do I include simple message like 'welcome to abc server' on a
	> telnet session, right now when doing telnet only plain 'login :'
would
	> appear.  The 'motd' is not quite what I am looking for since it is
a
	> post-login message.
	>
	> -Plain-
	> SunOS 5.7
	>
	> login:
	>
	>
	>
	> -With welcome message-
	> SunOS 5.7
	>
	> Welcome to ABC server
	> login:
	>
	>
	>
	>
	>
	>
	> Thanks
	> Regards,
	>     Mohd Khairul Muhamed
	>
	>

	--

	*------------------------------------------------------------------*
	*PGP fingerprint=3D D2 4F A8 B7 13 D5 73 1E  48 99 40 99 F9 BC 74 74 *
	*Email: schiller at agrijag.com       \|||/    http://www.agrijag.com *
	*Voice: 423-625-6349               (o o)    FAX: 423-623-9054      *
	*-------------------------------ooO-(_)-Ooo------------------------*



	_______________________________________________
	SunHELP maillist  -  SunHELP at sunhelp.org
	http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list