vgHome
Posting Rules
Disclaimer
Privacy Policy and Contacts
About Rootvg
vgBookmarks
old Bookmarks
vgForum
Recent Posts
Old Forums
vgGuides
AIX6
FAQ
HOWTO
Service Bulletins
QuickRef AIX 5.2
QuickRef AIX 5.2 - Help
vgNews
Checking if / when a user last logged onto a machine
Home
Help
Login
Register
Welcome,
Guest
. Please
login
or
register
.
January 10, 2009, 12:27:37 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
ROOTVG
>
AIX
>
Administration
>
Checking if / when a user last logged onto a machine
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Checking if / when a user last logged onto a machine (Read 1048 times)
0 Members and 1 Guest are viewing this topic.
Michael
Administrator
Hero Member
Posts: 539
Re: Checking if / when a user last logged onto a machine
«
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
Checking if / when a user last logged onto a machine
«
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
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
AIX
-----------------------------
=> Administration
=> Virtualization
=> Applications
=> HACMP
=> Security
=> AIX6 Implementation and Administration
-----------------------------
Hardware
-----------------------------
=> Power6
=> Power5
=> Power4
=> RS/6000 (Power III and earlier)
-----------------------------
Linux on POWER
-----------------------------
=> Planning and Installation
=> General
-----------------------------
Announcements
-----------------------------
=> Announcements
=> Discussion
Loading...
FastPath
HowTo
New in AIX6
RBAC
Security
WPAR
Service Bulletins
InfoCenters
AIX 6.1
AIX 5.3
AIX 5.2
AIX 5.1
- - - - - - -
Fix Central
HMC Downloads
IBM Firmware/LIC
VIOS Support
- - - - - - -
Hardware Documents
PowerHA (HACMP)
Tivoli Manuals
- - - - - - -
IBM Training
src="http://e1.extreme-dm.com/s10.g?login=jootvg&j=n&jv=n" />
Terms of Use
and
Privacy and Security Policies
Copyright 2001-2008 Michael Felt and ROOTVG.NET
HOWTO: Quick Setup guide for dual VIOS and MPIO
AIX, HMC and VIOS updates released
Are you open to DNS spoofing?
HOWTO: Cleanup a PVMISSING disk
FAQ: System P Certification - how to become CATE!
HOWTO: Create a boot-only CD or DVD for AIX