Re: Login Warning



Apparently Kelley Coleman (Kelley.Coleman@xxxxxx) wrote:

I've been tasked to get login warnings on our Linux systems. On the
console, I need a login warning to display on the same screen or on an
immediately prior screen where the username and password would be
entered.


I also need to display the same or similar warning on all ssh and sftp
connections. I've found where I can get the warnings to show AFTER
someone has connected, but not before. Seems a little
counter-intuitive
to me, but I'm told by our security officer that it is a requirement.


Any thoughts?

Kelley Coleman



Try the Banner option in the sshd_config. It displays the banner before the login process is done, and still allows a separate motd if you like which as you've discovered is displayed after authentication.


In the sshd_config file, look for (or add yourself) a line starting with "Banner" There is probably already a Banner line commented out. Here for instance is what mine looks like:

# no default banner path
#Banner /some/path
Banner /etc/DOEbanner

The first two lines are exactly as packaged, effectively turning the option off since they are commented out. The third line I added (plus of course I created the file /etc/DOEbanner with the required text.) (Restart your sshd (or SIGHUP) to reread the new configuration once done.)

Hth,

Wayne (not Wayner)

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: Login Warning
    ... Subject: RE: Login Warning ... The banner option mentioned below has seemed to satisfy. ... >I also need to display the same or similar warning on all ssh and sftp ...
    (RedHat)
  • RE: Login Warning
    ... The banner option mentioned below has seemed to satisfy. ... Subject: Re: Login Warning ... >I also need to display the same or similar warning on all ssh and sftp ...
    (RedHat)
  • Re: Closing modeless dialogs
    ... if you are just looping in the routine and using the dialog to display information during the loop I can't see where you would have a problem. ... If I wanted a modeless dialog to stay open for the life of my application I would make the dialog object a member of my mainframe class and create functions there to start, show, hide, and end the dialog. ... No warnings, no assertions, and I didn't change anything in my code. ... But when I close the dialog using either DestroyWindowor CDialog::OnOKI get the following warning: ...
    (microsoft.public.vc.mfc)
  • RE: Pop Up Message
    ... warning messages displayed by Microsoft Access while a macro or Microsoft ... and then click the Design button on the Database window toolbar. ... click the arrow to display the action list. ...
    (microsoft.public.access.gettingstarted)
  • Timed and blinking messages
    ... display a self-closing message in the form when a certain condition is met, ... Warning messages in the status bar is not very alerting, ... Do While Timer < Delay ...
    (microsoft.public.excel.programming)