Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

linux user account log in

Posted on 2011-02-16
3
Medium Priority
?
1,116 Views
Last Modified: 2013-12-06
Where can I find out about a particular user's account log in history ?
0
Comment
Question by:aashee
3 Comments
 
LVL 18

Accepted Solution

by:
Jerry Miller earned 668 total points
ID: 34913195

Open a terminal window which is found under the "System Tools," "Utilities" or "Accessories" section of the main menu depending on your distribution.

Type the command "last" to see the login history of all users.

Type the command "last <username>" to see the login history of a single user. Replace "<username>" with the username for the particular user.

Type the command "last -a" to see the login history along with the IP address of the computer the user logged in from (the user's local computer).

Type the command "exit" to close the terminal window.

From: http://www.ehow.com/how_6386662_linux-login-history.html
0
 
LVL 1

Assisted Solution

by:JackSperow
JackSperow earned 668 total points
ID: 34914057
If you want to see any perticuler user login history then go into your console and type simple command
#last -a | grep "username"
this command will show you when this user was loged in and from which ip he was..
Two files are basically used for this command:
/var/log/wtmp
/var/log/btmp

you can try also with
#lastlog
0
 
LVL 14

Assisted Solution

by:Monis Monther
Monis Monther earned 664 total points
ID: 34914449
Another tip is the command

lastb

this would show you failed logins
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Loops Section Overview
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question