LinuxQuestions.org
Visit Jeremy's Blog.
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 07-07-2008, 06:53 AM   #1
Bill Shankley
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Rep: Reputation: 0
login logs


Hi

How can i check a log of all attempted root logins and i suppose user logins whether successful or not?

Any help is appreciated.

Cheers, Bill
 
Old 07-07-2008, 07:12 AM   #2
Count Zero
Member
 
Registered: Feb 2008
Distribution: Debian wheezy
Posts: 130

Rep: Reputation: 15
Quote:
Originally Posted by Bill Shankley View Post
Hi

How can i check a log of all attempted root logins and i suppose user logins whether successful or not?

Any help is appreciated.

Cheers, Bill
You have the command 'lastlog' with its various options.
 
Old 07-07-2008, 07:20 AM   #3
Bill Shankley
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks, that goes someway to answering my question but what if i wanted to see a history?
 
Old 07-07-2008, 09:21 AM   #4
Count Zero
Member
 
Registered: Feb 2008
Distribution: Debian wheezy
Posts: 130

Rep: Reputation: 15
Quote:
Originally Posted by Bill Shankley View Post
Thanks, that goes someway to answering my question but what if i wanted to see a history?
I'm not sure of the exact file for that but have a look in the directory /var/log. That's where you find most of the logfiles though I think ssh keeps its log file in another directory. It might be auth.log you're looking for. You might also want to look into the command 'faillog' that let's you keep track of failed login attempts.
 
Old 07-07-2008, 09:56 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
/var/log/secure usually, or try /var/log/messages
 
  


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
Stale login entries in utmp/wtmp (even after user logs out) dmadhava Linux - General 1 03-04-2009 10:18 AM
KDE logs in then immediately back to login screen lelava Linux - Software 1 06-27-2006 10:45 AM
What logs to check for attempted login attempts htmlcoder Linux - Security 2 03-06-2005 12:21 AM
Stale login entries in utmp/wtmp (even after user logs out) dmadhava Linux - General 0 05-19-2004 11:29 AM
Login logs... AMDPwred Linux - Software 1 06-26-2003 11:57 PM


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