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!

how to find last unsuccessful login

Status
Not open for further replies.

billy1

Technical User
Sep 16, 2002
73
IE
Can anyone tell me how I can find the last unsuccessful login a person has made ?
 
Try the following command and substitute the persons login name in place of <user account>.

who /etc/security/failedlogin | grep <user account>

Drop the pipe and grep if you want to see a history of failed logins. If you want to see the failed logins from the highest number to the lowest, use the following command.

who /etc/security/failedlogin|awk '{print $1}'|sort|uniq -c|sort -nr|more

 
Simple way is to login to the machine thru telnet and after looging in, last unsuccessful login details shall be displayed on ur screen!!

Regds,

- Hemant
NSIG,
Satyam Computer Services Ltd
 
lsuser -a -c time_last_unsuccessful_login <username>
 
Thanks for your replies. They are very helpful.
The lsuser command will give me the last unsuccessful login time however I don't know what format to interpret it in. Here's my result of running the command:

#name:time_last_unsuccessful_login
otooleb:1035367262

 
&quot;1035367262&quot;

This is the number of seconds since the start of the Universe ( well, 1 Jan 1970 anyway ).

Dave
 
but how can i translate it to yyyy:mm:dd:hh:mm:ss ?
thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top