1822152 Members
3969 Online
109640 Solutions
New Discussion юеВ

logon banners

 
SOLVED
Go to solution
kirk_11
Occasional Advisor

logon banners

I need to have a banner shown to the user at login time. It needs to show for a graphical login and for telnet or rlogins. Could someone help me out?
don't follow me, I'm lost too...
6 REPLIES 6
Balaji N
Honored Contributor

Re: logon banners

IIRC, telnetd supports a -b option which can point to a file.

so, edit /etc/inetd.conf and add that option to the telnetd line.

man telnetd for info.

for graphical logins, am not sure. figure out in /usr/dt/config and /etc/dt directories.

-balaji (am forgetting HP unix)
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Geoff Wild
Honored Contributor
Solution

Re: logon banners

How about:

# Message of the day

if [ -r /etc/motd ]
then
cat /etc/motd
fi


In the /etc/profile


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
John Meissner
Esteemed Contributor

Re: logon banners

I wrote a script that displays a splash screen. This was designed to display when a script was run. you could add it - or point to it from the .profile. I'll attach the script and in another post attach an image that I use. if the person has a display running X it will display the image... if not (i.e. they are on a terminal) the script will display an ascii version of the image I've selected. You will need to change the image file to your design... and change the text displayed to meed your needs.

Attached: splash script file
All paths lead to destiny
John Meissner
Esteemed Contributor

Re: logon banners

and here is the image I use
All paths lead to destiny
Dave La Mar
Honored Contributor

Re: logon banners

As with Geoff, our shop uses /etc/motd. In our case it displays a security and privacy message, but it can be used for any message you desire.

Best regards,

dl
"I'm not dumb. I just have a command of thoroughly useless information."
Sridhar Bhaskarla
Honored Contributor

Re: logon banners

Hi,

I would suggest to use /etc/issue. This is because console uses it to display the banner. You can edit your /etc/inetd.conf and add -b /etc/issue option to telnet to display the banner.

Also other commands worth considering for a security banner are ftp, sendmail. You can use ftpaccess file to set the banner. Enable ftp to use ftpaccess by adding a "-a" flag. Customize /etc/ftpd/ftpaccess file. Edit /etc/mail/sendmail.cf file and search for Greeting. You can change the greeting text there too.

To display banner with rlogin, link /etc/motd to /etc/issue.

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