Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-12-2004, 06:10 PM   #1
Registered: Mar 2004
Location: India
Distribution: MDK, Fedora, Debian Unstable (current)
Posts: 80

Rep: Reputation: 15
who has been loggin on?

is there any way to find out who has been logging on & from where?
not the 'w' command as it only shows the current there a log file of every1 who logged in somewhere?
Old 09-12-2004, 06:19 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Use the 'last' command -- see 'man last' for details.
Old 09-13-2004, 12:38 AM   #3
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
This is logged in /var/log/messages (together with a lot of other stuff). Try something like:
# grep session /var/log/messages
to filter out the lines you are interested of.

This file is (depending on distribution) rotated once a week and older log-files are named messages.1, messages.2 etc.

Old 09-13-2004, 12:46 AM   #4
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there
from what i know
utmp file keeps a record of the users logged in
w,who etc use the utmp file to see the users logged in

and wtmp keps the record of users logged in the past

man utmp,wtmp will give u more help on this



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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loggin into Mandrake Ram2 Linux - Newbie 1 03-23-2005 10:44 PM
loggin problems tcpdump Linux - Software 2 05-13-2004 10:21 AM
Loggin In As Root MrJBot Linux - Newbie 2 10-30-2003 04:41 PM
loggin in as superuser? BajaNick Linux - Security 5 08-06-2003 10:56 PM
help! can't loggin islandkid Linux - General 1 03-16-2002 01:16 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:02 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