LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-11-2008, 01:12 PM   #1
jdcsyoung
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
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,441

Rep: Reputation: 70
as root
Code:
lastlog
or as normal user try
Code:
/usr/sbin/lastlog

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

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

Thanks for your help
 
  


Reply


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


All times are GMT -5. The time now is 07:13 PM.

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