LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-13-2002, 07:51 PM   #1
ifm
Member
 
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, 07:47 AM   #2
Noerr
Member
 
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, 09:22 AM   #3
ifm
Member
 
Registered: Jun 2002
Location: USA
Distribution: RH7.3 & YDL2.1
Posts: 124

Original Poster
Rep: Reputation: 15
Unhappy

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, 01:41 PM   #4
Saraev
Member
 
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.

Yay!
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:59 PM.

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
Open Source Consulting | Domain Registration