1837910 Members
2533 Online
110124 Solutions
New Discussion

banner

 
Manuales
Super Advisor

banner

how can i put a banner into the display ?

Regards
5 REPLIES 5
Jaime Bolanos Rojas.
Honored Contributor

Re: banner

Hola Manuales!

Are you talking about the message of the day?

If you you can do it editing the /etc/motd file...

Regards,

Jaime.
Work hard when the need comes out.
James R. Ferguson
Acclaimed Contributor

Re: banner

Hi Manuales:

Do you mean when a 'telnet' session is established? If so, modify '/etc/inetd.conf' to be:

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

...where '/etc/motd' contains the message (banner) you want displayed.

Remember to re-read the 'inetd.conf' file after performing the modification:

# inetd -c

If you would like to do something similar for 'ftp' sessions, modify '/etc/ftpd/ftpaccess' and specify:

banner /etc/motd

For more details, see:

http://www.docs.hp.com/en/B2355-60127/ftpaccess.4.html

...and/or some examples in:

/usr/newconfig/etc/ftpd/examples/ftpaccess

Regards!

...JRF...

Sandman!
Honored Contributor

Re: banner

You can use "/etc/issue" or any file in its place for that matter i.e.

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

Take a look at this doc for details:
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080081112

cheers!
Nate Schuchard
Occasional Advisor

Re: banner

Hi Manuales,

If you wanted to display the banner in a script it might look like this:

############################################
#
# Quick Script to make the
# Add a Banner to a Dispaly
#
#
# Writen by Natalie Schcuhard
# natalie@schuchard.us
# Sept 7th 2006
#
############################################
echo "Input Banner to be displayed or in a file?"
read newBanner
banner $newBanner
echo "`banner $newBanner`"
echo "Display as banner: `banner $newBanner' " > /tmp/outputfile


I hope this helps.

Regards
Nate
V.Manoharan
Valued Contributor

Re: banner

Hi manuales,
I am not sure where you get the banner.
1. If you want to login screen to be displayed as banner edit /etc/issue and enter the content.
eg: login screen should show ur companyname.
#banner "welcome to xyz login">/etc/issue

2. If you want banner while login through telnet edit the content of /etc/motd file.

Thanks and regards
V.Manoharan