curious wtmp date

This is a discussion on curious wtmp date within the Linux Security forums, part of the System Security and Security Related category; When I logged into one of my servers today I ran last and it showed only one login. Which as ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-09-2005
Philip Washington
 
Posts: n/a
Default curious wtmp date

When I logged into one of my servers today I ran last and it showed only
one login. Which as far as I know is correct because I'm pretty sure that
I haven't logged into this server this month. But I looked at the bottom
and saw that the line

wtmp begins Wed Jul 6 13:45:30 2005

I checked some other servers and they begin
wtmp begins Wed Jul 6 14:55:54 2005
wtmp begins Wed Jul 6 9:30:27 2005

All 3 of these files show the initial logon that I made today only. Which
as far as I know this is correct since I rarely logon to these servers.

2 other servers which I logged into showed that the file begins when I
logged into them.

Another server shows
wtmp begins Fri Jul 1 15:43:32 2005
but doesn't show a login for this time, the first login is Jul 5


This seems to be a little odd to me. Is this something I should be
concerned about or is there an explanation for this other than someone is
hacking the servers and manipulating the wtmp files.

Reply With Quote
  #2 (permalink)  
Old 07-09-2005
Bill Marcum
 
Posts: n/a
Default Re: curious wtmp date

On Fri, 08 Jul 2005 20:57:20 -0500, Philip Washington
<phwashington@comcast.net> wrote:
>
> Another server shows
> wtmp begins Fri Jul 1 15:43:32 2005
> but doesn't show a login for this time, the first login is Jul 5
>
>
> This seems to be a little odd to me. Is this something I should be
> concerned about or is there an explanation for this other than someone is
> hacking the servers and manipulating the wtmp files.
>

Have you checked whether there are any "old" wtmp files?
(ls -l /var/log/*wtmp*)
Is it possible your machines have been rebooted, perhaps due to a power
failure?


--
Tonight you will pay the wages of sin; Don't forget to leave a tip.
Reply With Quote
  #3 (permalink)  
Old 07-09-2005
Tony Lawrence
 
Posts: n/a
Default Re: curious wtmp date

Philip Washington wrote:
> When I logged into one of my servers today I ran last and it showed only
> one login. Which as far as I know is correct because I'm pretty sure that
> I haven't logged into this server this month. But I looked at the bottom
> and saw that the line
>
> wtmp begins Wed Jul 6 13:45:30 2005


Many systems have cron jobs that clear wtmp weekly.

--
Tony Lawrence
Unix/Linux/Mac OS X resources: http://aplawrence.com
Reply With Quote
  #4 (permalink)  
Old 07-09-2005
Philip Washington
 
Posts: n/a
Default Re: curious wtmp date

On Sat, 09 Jul 2005 00:31:03 -0400, Bill Marcum wrote:

> On Fri, 08 Jul 2005 20:57:20 -0500, Philip Washington
> <phwashington@comcast.net> wrote:
>>
>> Another server shows
>> wtmp begins Fri Jul 1 15:43:32 2005
>> but doesn't show a login for this time, the first login is Jul 5
>>
>>
>> This seems to be a little odd to me. Is this something I should be
>> concerned about or is there an explanation for this other than someone is
>> hacking the servers and manipulating the wtmp files.
>>

> Have you checked whether there are any "old" wtmp files?
> (ls -l /var/log/*wtmp*)
> Is it possible your machines have been rebooted, perhaps due to a power
> failure?

yes there is another file, wtmp.1. This file start on June 5th with
correlating to a reboot. I did look at /var/log/messages and the start
time for the wtmp file correlates to a logout. But, there is a cron job
which runs on another server and copies files over to this server using
scp and this login shows up for July 4th but does not show up when I run
last.

So far I have not been able to locate the cron job or configuration file
which tells the system how to handle different log files. I know I've
seen it before, just can't remember right now where it is.
Reply With Quote
  #5 (permalink)  
Old 07-11-2005
Durk van Veen
 
Posts: n/a
Default Re: curious wtmp date


"Philip Washington" <phwashington@comcast.net> wrote in message
news:pan.2005.07.09.01.57.19.401794@comcast.net...
> When I logged into one of my servers today I ran last and it showed only
> one login. Which as far as I know is correct because I'm pretty sure that
> I haven't logged into this server this month. But I looked at the bottom
> and saw that the line
>
> wtmp begins Wed Jul 6 13:45:30 2005
>
> I checked some other servers and they begin
> wtmp begins Wed Jul 6 14:55:54 2005
> wtmp begins Wed Jul 6 9:30:27 2005
>
> All 3 of these files show the initial logon that I made today only. Which
> as far as I know this is correct since I rarely logon to these servers.


What you are seeing is the effect of normal log-rotation. Shouldn't be
anything to worry about.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 04:25 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0