Date: Mon, 12 Jul 2004 16:40:28 -0700 From: Saint Aardvark the Carpeted <aardvark@saintaardvarkthecarpeted.com> To: Kyle Mott <kyle@klmhosting.net> Cc: freebsd-questions@freebsd.org Subject: Re: Rebuilding wtmp Message-ID: <20040712234028.GC14633@hardesty.saintaardvarkthecarpeted.com> In-Reply-To: <000901c46851$2b6beef0$150ba8c0@kyle> References: <000901c46851$2b6beef0$150ba8c0@kyle>
next in thread | previous in thread | raw e-mail | index | archive | help
Kyle Mott disturbed my sleep to write: > I read a few manpages and did some google'ing, and couldn't find much of > anything about rebuilding wtmp. I tried just moving wtmp to wtmp.old and > then doing 'touch wtmp', then logging out and back in, but it still > reads 31Dec69. Is there some way to fix this? Thanks all. It's possible that there's some process holding open wtmp. (You could check this by adding lsof ("list open files") from ports -- *very* handy to have around on general principle). If this is the case, probably the easiest way to fix things would be to rename the file, touch wtmp, then reboot. Interestingly enough, a Google for "wtmp freebsd" turned up this message from the FreeBSD-Security list: http://archives.neohapsis.com/archives/freebsd/2001-07/0055.html which suggests "cp /dev/null /var/log/wtmp" to fix things -- at least on Solaris. I am now blessing your keyboard... -- Saint Aardvark the Carpeted aardvark@saintaardvarkthecarpeted.com Because the plural of Anecdote is Myth.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040712234028.GC14633>