Operating System - HP-UX
1832867 Members
2745 Online
110048 Solutions
New Discussion

How to display Unsuccessful and successful Login?

 
banny lau
Occasional Contributor

How to display Unsuccessful and successful Login?

I have configured HP-UX11.11 as trusted system mode, but I found the Unsuccessful and successful Login Message display only whenever I login with "su -". If login with SSH, the message only display "Last Login" as shown:

"Last login: Wed Sep 19 10:49:05 2007 from"

I would like to know to configure the unsuccessful login time and successful login time messages can be displayed. How should I configure them with SSH Login?




4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: How to display Unsuccessful and successful Login?

Are you trying last and lastb?


Pete

Pete
tkc
Esteemed Contributor

Re: How to display Unsuccessful and successful Login?

check out the files /etc/utmp, /etc/btmp and /etc/wtmp
AwadheshPandey
Honored Contributor

Re: How to display Unsuccessful and successful Login?

use
# last
root pts/1 Wed Sep 19 11:58 still logged in
root ftp Wed Sep 19 09:12 still logged in

# lastb
asdwefwf pts/ta Wed Sep 19 11:59
apandeyq pts/ta Wed Sep 19 11:59
It's kind of fun to do the impossible
Tim Nelson
Honored Contributor

Re: How to display Unsuccessful and successful Login?

I use ssh for all my systems and all the 11.11 and 11.23 all state both successfull and unsuccussfull upon login.

Maybe your sshd needs updating, i.e. old bug, what version of sshd are you running ?