Checking if / when a user last logged onto a machine
 
*
Welcome, Guest. Please login or register. January 10, 2009, 01:06:38 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Checking if / when a user last logged onto a machine  (Read 1049 times)
0 Members and 1 Guest are viewing this topic.
Michael
Administrator
Hero Member
*****
Posts: 539


« Reply #1 on: May 15, 2007, 07:15:34 AM »

It is one of the settings kept by AIX security administration.

lsuser -a time_last_login tty_last_login username is the most specific.

As root you can also examine the files in /etc/security manually. However, for security reasons, it is better to use the commands.

A lowerlevel command for user ABCD would be

grep -p ABCD /etc/security/lastlog

This command can be performed by people in the group security (i.e. no root access required).

michael@x054:[/home/michael]grep -p ABCD /etc/security/lastlog
ABCD:
        time_last_unsuccessful_login = 1179043725
        tty_last_unsuccessful_login = ssh             
        host_last_unsuccessful_login = 10.161.36.80                                   
        unsuccessful_login_count = 40       
        time_last_login = 1166623181
        tty_last_login = ftp             
        host_last_login = loopback         
Logged
angeek
Jr. Member
**
Posts: 5


« on: May 14, 2007, 10:42:47 PM »

Apologies if I have posted this before but can anyone tell me apart from the command last , how I could tell the last time a user looged , if ever on AIX .

Thanks

angeek Smiley
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 2.338 seconds with 18 queries.




eXTReMe Tracker

Terms of Use and Privacy and Security Policies
Copyright 2001-2008 Michael Felt and ROOTVG.NET