Rebuilding wtmp

Olivier Tharan olive at oban.frmug.org
Mon Jul 12 13:40:09 PDT 2004


* Kyle Mott <kyle at xraided.net> (20040712 11:32):
> 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.

[ This should belong to -questions but anyway: ]

The file is used by login(1), so you should restart login to use
the file (the old file is still kept open).

You could do this by booting in single user mode, touching the
wtmp file, and let the boot go on.

-- 
olive


More information about the freebsd-stable mailing list