Share your knowledge at the LQ Wiki.
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 12-17-2008, 12:39 PM   #1
LQ Newbie
Registered: Dec 2008
Posts: 4

Rep: Reputation: 0
Question On several servers: Is there a way to know who has logged off?


I have a question ... We have several servers at work... in order to know if someone has logged in we simply check out the last time the user has logged in and through which server using "whois" command...

But I'd like to know, is there a way to do the same but for the users who have logged off?

Old 12-17-2008, 12:41 PM   #2
Registered: May 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 448

Rep: Reputation: 38
Check out last - possibly in combination with grep to find a specific user.

Old 12-17-2008, 11:33 PM   #3
LQ Newbie
Registered: Dec 2008
Posts: 10

Rep: Reputation: 0

run lastlog or the command "cat /var/log/messages | grep ssh" and you should find your answer, depending on the log level verbosity
Old 12-18-2008, 03:28 PM   #4
LQ Newbie
Registered: Dec 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Excellent guys Thank you


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
How to set DNS servers? How to stop auto change of DNS servers? newtovanilla Linux - Newbie 1 10-29-2008 09:19 PM
Setting name servers on multiple servers centosfan Linux - Server 3 01-23-2008 03:43 PM
kde much slower to start when logged in as alan than logged in as root arubin Slackware 0 04-26-2004 04:27 PM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 08:34 PM > Forums > Linux Forums > Linux - Newbie

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