Reply
Thread Tools
SeRi@lDiE's Avatar
Posts: 919 | Thanked: 37 times | Joined on Aug 2006 @ /dev/null
#1
I have this file call wtmp under /var/log what the hell is it?
Is 60MB big!?!
I use VI to it but it seems to be encrypted or compiled... any ideas out there?
__________________
<gla55> security stuff is just to piss off people, really
 

The Following User Says Thank You to SeRi@lDiE For This Useful Post:
iball's Avatar
Posts: 729 | Thanked: 19 times | Joined on Mar 2007
#2
 
SeRi@lDiE's Avatar
Posts: 919 | Thanked: 37 times | Joined on Aug 2006 @ /dev/null
#3
Thanks for the info.... I got thrown off for a sec there...
__________________
<gla55> security stuff is just to piss off people, really
 
Posts: 3,401 | Thanked: 1,255 times | Joined on Nov 2005 @ London, UK
#4
Also, see bug #448.
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#5
/var/log/wtmp is what makes the 'last' command work. It used to be there in the previous version of the OS, so 'last' worked (you could see when last you rebooted, when it crashed, when you logged in and so on). Without 'wtmp' that info is gone, and it was removed in the last OS upgrade, but on a mobile device it makes some kind of sense to remove it. Maybe. Anyway, for some reason it was updated way too much in the previous OS version so it grew fast. On the other hand it's on the compressed internal file system so it didn't take much space, those 60MB you saw would probably be just 1 or maybe 2 MB, if that.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
SeRi@lDiE's Avatar
Posts: 919 | Thanked: 37 times | Joined on Aug 2006 @ /dev/null
#6
Originally Posted by TA-t3 View Post
/var/log/wtmp is what makes the 'last' command work. It used to be there in the previous version of the OS, so 'last' worked (you could see when last you rebooted, when it crashed, when you logged in and so on). Without 'wtmp' that info is gone, and it was removed in the last OS upgrade, but on a mobile device it makes some kind of sense to remove it. Maybe. Anyway, for some reason it was updated way too much in the previous OS version so it grew fast. On the other hand it's on the compressed internal file system so it didn't take much space, those 60MB you saw would probably be just 1 or maybe 2 MB, if that.
Grate info thanks.... Wierd thing is that I was having major boot up issues the behavior was almost like there was no more space in root... I deleted that file and it all works fine again...
__________________
<gla55> security stuff is just to piss off people, really
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#7
It will be re-created if you delete it. It's better to do as follows:
sudo gainroot
cd /var/log
rm wtmp; ln -s /dev/null wtmp

The file will now be there, but symlinked to the bottomless sink.
(For those on the latest OS version: The above doesn't apply, as the file is not written anymore. It's for those on the previous version.)
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
SeRi@lDiE's Avatar
Posts: 919 | Thanked: 37 times | Joined on Aug 2006 @ /dev/null
#8
Thank You for the tip!
__________________
<gla55> security stuff is just to piss off people, really
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:30.