Latest LQ Deal: Linux Power User Bundle
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 06-13-2002, 08:51 PM   #1
Registered: Jun 2002
Location: USA
Distribution: RH7.3 & YDL2.1
Posts: 124

Rep: Reputation: 15
lastlog is bloody EEUUGE ... heh.

I'm curious why /var/log/lastlog is taking up 25mbs of disk space, when using the lastlog program, it basically only has a teeny weeny bit of data to present?

Its binary as well... which is crazy why its so huge.

This normal behavior? Man pages said nothing in respect to the size of the file or how to reduce it.
Old 06-14-2002, 08:47 AM   #2
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
sometimes you have some devices droping trash into wtmp or lastlog, and they can get big (500Mb+), and it's hard to change anything but getting newest device drivers
Old 06-14-2002, 10:22 AM   #3
Registered: Jun 2002
Location: USA
Distribution: RH7.3 & YDL2.1
Posts: 124

Original Poster
Rep: Reputation: 15

Craazzzy, thanks for the heads up. I will keep an eye on it.

I would think RH 7.3 be more up to date than say, YDL2.1 (the RH machine is the one with the larger file).
Old 12-05-2002, 02:41 PM   #4
Registered: Apr 2002
Location: Los Gatos, CA
Distribution: boring redhat 9
Posts: 163

Rep: Reputation: 30
Rotate lastlog

I was able to just now run the following commands, and have it rotate the lastlog file.

ps -ef | grep syslog
mv lastlog lastlog.old ; touch lastlog ; kill -9 <syslogd pid>; syslogd -m 0

If you run "lastlog" right away, nothing is returned. I walked back to the box and logged into the console, then ran lastlog, my login showed up. File size is now 292 bytes instead of 20 megs.



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
chkrootkit / lastlog Mr. Gone Linux - Security 4 10-13-2005 11:50 AM a bit confused....need help badly!! Sticktendo Linux - Newbie 9 12-27-2004 08:29 PM
gee, another 9.0-9.1 thread, heh acidstars Slackware - Installation 2 04-11-2004 08:56 AM
Heh heh sykopath General 3 08-06-2003 04:43 AM
another lastlog question ericn Linux - Security 1 12-30-2001 02:34 PM > Forums > Linux Forums > Linux - Newbie

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