Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-11-2008, 01:12 PM   #1
LQ Newbie
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
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.
Old 02-11-2008, 01:17 PM   #2
Senior Member
Registered: Sep 2005
Distribution: Slackware
Posts: 1,442

Rep: Reputation: 71
as root
or as normal user try

Last edited by shadowsnipes; 02-11-2008 at 01:18 PM. Reason: added normal user cmd
Old 02-11-2008, 01:26 PM   #3
LQ Newbie
Registered: Feb 2008
Posts: 2

Original Poster
Rep: Reputation: 0
lastlog is exactly what I hoped for

Thanks for your help


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC4-test1 not creating a User Account - Cannot Login DigeratiPrime Fedora - Installation 1 03-17-2005 07:41 PM
can't login my user account/KDE from boot MI3GTO Mandriva 1 02-27-2005 03:11 PM
can't login as user account tchoua Mandriva 23 02-23-2005 02:49 PM
Force user login with different account rte Linux - Newbie 1 04-01-2004 09:09 AM
can't login to regular user account luchobucho Linux - General 2 10-27-2003 05:11 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration