LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-17-2008, 01:39 PM   #1
malleat1
LQ Newbie
 
Registered: Dec 2008
Posts: 4

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


Hello

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?

Thanks
 
Old 12-17-2008, 01:41 PM   #2
MoonMind
Member
 
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.

M.
 
Old 12-18-2008, 12:33 AM   #3
shanecraddock@gmail.com
LQ Newbie
 
Registered: Dec 2008
Posts: 10

Rep: Reputation: 0
lastlog

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, 04:28 PM   #4
malleat1
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Excellent guys Thank you
 
  


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 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 10:19 PM
Setting name servers on multiple servers centosfan Linux - Server 3 01-23-2008 04:43 PM
kde much slower to start when logged in as alan than logged in as root arubin Slackware 0 04-26-2004 05: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 09:34 PM


All times are GMT -5. The time now is 10:47 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration