Last login details in banner


 
Thread Tools Search this Thread
Operating Systems AIX Last login details in banner
# 8  
Old 11-23-2010
Just to ask the obvious, you don't get the last login information right now?

When I log in I get exactly:
Code:
Using username "purdym".
This is a private computer facility.  Access to the facility must be
specifically authorized.  If you are not authorized, your continued
access and further inquiry expose you to criminal and/or civil
proceedings.

Authenticating with public key "imported-openssh-key" from agent
Last unsuccessful login: Sun Jul 25 07:44:34 CDT 2010 on ssh from miles_xp
Last login: Tue Nov 23 12:33:28 CST 2010 on /dev/pts/5 from miles_xp

The herald is my doing. The last three lines are printed from the SSH daemon. Are you asking how to get SSHD to display that information?
# 9  
Old 11-23-2010
He wants to show it in highlighted/bold color which cannot be doing because this information ie being provided by the login program.
# 10  
Old 11-23-2010
I got it to work, sometimes.

It does not work when I ssh from my PC, it works when I ssh from another server.

Add the ansi colour escape sequence to your SSHD banner file:

Code:
This is a private computer facility.  Access to the facility must be
specifically authorized.  If you are not authorized, your continued
access and further inquiry expose you to criminal and/or civil
proceedings.

^[[36;40;1m

Note that ^[[ is crontrol+v escape [
# 11  
Old 11-23-2010
he is not using ssh and the login information is not in /etc/motd or banner file.

Last edited by frank_rizzo; 11-23-2010 at 08:30 PM.. Reason: spelling error
# 12  
Old 11-23-2010
Maybe the OP can clarify:
How he is logging in...ssh? Rlogin?

What he wants to see.

And how he wants it formatted.
# 13  
Old 11-24-2010
Thanks for the reply friends.
i am using both ssh & telnet friends. i want to display the unsuccessful login attempts and last login date, time details before the banner display. i don't want to do any formatting stuff friends. Hope u are understand y query.
# 14  
Old 11-24-2010
i am confused. the OP shows already the that???
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

passing login details to htaccess login prompt

Hi, How i can pass the login details to the URL which is password protected with the htaccess using command line or script (perl,or shell,or php). Any help or hint appreciated. Thanks, SJ (4 Replies)
Discussion started by: SilvesterJ
4 Replies

2. Shell Programming and Scripting

How to change banner message for console login?

Hi All, Whenever I login to server via console, after providing username (root) it displays a banner message. I want to remove this message Serverabc : root Welcome to Server !!! Password: It is Centos 5.4 box. I have checked /etc/issue and /etc/motd. It does not... (8 Replies)
Discussion started by: kalpeer
8 Replies

3. UNIX for Dummies Questions & Answers

Display banner before login.

How would i force All connection oriented network services to display a legal warning in terms of banner before any fuctional operation by user? ---------- Post updated at 12:54 AM ---------- Previous update was at 12:33 AM ---------- I would like to do this for ssh service first. (2 Replies)
Discussion started by: pinga123
2 Replies

4. HP-UX

telnet banner message before login

why I didn't set /etc/inetd.conf telnet stream tcp nowait root /usr/lbin/telnetd \ telnetd -b /etc/issue only telnet stream tcp nowait root /usr/lbin/telnetd in /etc/ineted.conf but when I telnet my HPUX machine it shows those message HP-UX hp1008 B.11.31 U ia64 (tb) login: ... (1 Reply)
Discussion started by: alert0919
1 Replies

5. UNIX for Advanced & Expert Users

CDE Login Banner

I'm having problem with the CDE pre login banner. I configured the c/usr/dt/config/C/Xresources file to add my warning message: Dtlogin*greeting.labelString: My Banner I then modified the Dtlogin*greeting*fontList to display the message in smaller text. This did not work. ... (1 Reply)
Discussion started by: equismorio
1 Replies

6. HP-UX

Hp-ux login banner

Hi, How do i create a login banner for hp-ux users. Is there somewhere i can get a step by step explanation? (4 Replies)
Discussion started by: dowell
4 Replies

7. UNIX for Advanced & Expert Users

How to Create Banner/Login Messages in Solaris.

Hi, I have been trying to create a banner/login message (something for displaying the usage policy etc) to appear while I login using telnet/FTP to any Solaris (pref. Solaris9) machine. I have tried using /etc/issue and /etc/motd files. Both do not solve my need. In that, /etc/issue displays... (8 Replies)
Discussion started by: mahatma
8 Replies

8. Linux

login banner

Hi, I have added in banner in both /etc/banner and /etc/issue.net one by one in Linux but the banner is not displaying while user type username and enter I have restarted the ssh service also Any idea why? (3 Replies)
Discussion started by: manoj.solaris
3 Replies

9. BSD

How to i change the login banner in obsd 3.3

Hi is it possible to change the login banner ? i now it`s somthing with /etc/gettytab and think i have found the line that give out the output "OpenBSD/i386 (hostname) (ttyC1) now for my question can i change the default:\ :np:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200: i... (2 Replies)
Discussion started by: vip3r
2 Replies

10. BSD

Change the Login banner for obsd 3.3

Hi is it possible to change the login banner ? i now it`s somthing with /etc/gettytab and think i have found the line that give out the output "OpenBSD/i386 (hostname) (ttyC1) now for my question can i change the default:\ :np:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200: i whant to use... (1 Reply)
Discussion started by: vip3r
1 Replies
Login or Register to Ask a Question