Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX - Banners

Status
Not open for further replies.

abhayh

Programmer
Apr 22, 2005
6
ZA
Could anyone let me know how to find if Login Banner is set or not.
Thanks,
 
After logging in, the system displays the contents of the file /etc/motd (short for Message Of The Day). Is that what you are after?


HTH,

p5wizard
 
Thanks, but which file contains reference to this /etc/motd file ?
Where do I make changes so that some_other banner is displayed ?
Thanks
 
You can't do it that way...

/etc/motd is always displayed. I empty that file and do

cat /etc/motd.local

from /etc/profile (for ksh or bsh).

You may also choose to modify /etc/motd instead. Does not have to have a specific content.

You could also write code to display a motd file based on the primary group of the logged in user:

pgrp=$(id|tr '()' '//'|cut -d/ -f4)
cat /etc/motd.${pgrp}



HTH,

p5wizard
 
If your asking about the info before you login then look at
/etc/security/login.cfg and look for the herald line.

Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top