Aug 23, 2005 #1 abhayh Programmer Apr 22, 2005 6 ZA Could anyone let me know how to find if Login Banner is set or not. Thanks,
Aug 23, 2005 #2 p5wizard IS-IT--Management Apr 18, 2005 3,165 BE 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 Upvote 0 Downvote
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
Aug 23, 2005 Thread starter #3 abhayh Programmer Apr 22, 2005 6 ZA Thanks, but which file contains reference to this /etc/motd file ? Where do I make changes so that some_other banner is displayed ? Thanks Upvote 0 Downvote
Thanks, but which file contains reference to this /etc/motd file ? Where do I make changes so that some_other banner is displayed ? Thanks
Aug 23, 2005 #4 p5wizard IS-IT--Management Apr 18, 2005 3,165 BE 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 Upvote 0 Downvote
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
Aug 23, 2005 Thread starter #5 abhayh Programmer Apr 22, 2005 6 ZA Thanks, That helps. Regards, Upvote 0 Downvote
Aug 24, 2005 #6 mrn MIS Apr 27, 2001 3,993 GB 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." http://www.airport-parking-site.co.uk/ Upvote 0 Downvote
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." http://www.airport-parking-site.co.uk/