LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   lastlog is bloody EEUUGE ... heh. (https://www.linuxquestions.org/questions/linux-newbie-8/lastlog-is-bloody-eeuuge-heh-23375/)

ifm 06-13-2002 07:51 PM

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.

Noerr 06-14-2002 07:47 AM

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

ifm 06-14-2002 09:22 AM

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).

Saraev 12-05-2002 01:41 PM

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!


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