LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How do I check a user account to see when the last login was? (https://www.linuxquestions.org/questions/linux-general-1/how-do-i-check-a-user-account-to-see-when-the-last-login-was-620345/)

jdcsyoung 02-11-2008 01:12 PM

How do I check a user account to see when the last login was?
 
I know how to list the accounts with #cat /etc/passwd but, I need to see when the last login of a user was. I hope that information is automatically captured and saved in the account somehow.

shadowsnipes 02-11-2008 01:17 PM

as root
Code:

lastlog
or as normal user try
Code:

/usr/sbin/lastlog

jdcsyoung 02-11-2008 01:26 PM

lastlog is exactly what I hoped for
 
Thanks for your help


All times are GMT -5. The time now is 12:25 AM.