Operating System - HP-UX
1830862 Members
2620 Online
110017 Solutions
New Discussion

Last login date/time for all users

 
Jim Green_1
Occasional Advisor

Last login date/time for all users

Is there a command I can use or a file I can scan to determine when all of the registered users on an HP UNIX
box last logged on?
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: Last login date/time for all users

Jim,

The command is "last".

Pete

Pete
Wilfred Chau_1
Respected Contributor

Re: Last login date/time for all users

last -R
RAC_1
Honored Contributor

Re: Last login date/time for all users

check the man page of last.
There is no substitute to HARDWORK
Chris Fadrowski
Super Advisor

Re: Last login date/time for all users

last will work, use lastb to detect any failed logins. Here is a good doc to read;

KBRC00006851
H.Merijn Brand (procura
Honored Contributor

Re: Last login date/time for all users

last|perl -nae'$d{$F[0]}++||print'

gives you the last login for any user that has logged on to the system

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Paul Sperry
Honored Contributor

Re: Last login date/time for all users

lastb -R
Jakes Louw_1
Frequent Advisor

Re: Last login date/time for all users

Under a trusted system, use:

getprpw -m slogint username

which returns the last successfull login time&date for that user.