Subject: Re: lastlogx inappropriate format?
To: Christos Zoulas <christos@tac.gw.com>
From: Julio M. Merino Vidal <jmmv84@gmail.com>
List: current-users
Date: 03/29/2005 21:00:45
On Tue, 2005-03-29 at 12:50 -0500, Christos Zoulas wrote:
> In article <1112122532.23536.3.camel@dawn.home.network>,
> Julio M. Merino Vidal <jmmv84@gmail.com> wrote:
> >Hi,
> >
> >[ this is about netbsd-3, but it may still happen in current... and
> >  anyway, the branch hasn't diverged so much yet ]
> >
> >I've NetBSD 3.0_BETA in two boxes: in one of them, I installed the
> >system from scratch.  In the other one, it was just an update from
> >2.99.16 or so.
> >
> >But in both machines I can see the following messages (appearing in the
> >console and authlog):
> >
> >Mar 27 23:46:20 sun sshd[8372]: Could not update /var/log/lastlogx:
> >Inappropriate file type or format
> >[...]
> >Mar 29 06:42:58 dawn login: Cannot update lastlogx Inappropriate file
> >type or format
> >
> >Is something broken in the branch?
> >
> 
> rm /var/log/lastlogx
> touch /var/log/lastlogx

Before doing this:

[sun jmmv] $ ls -l /var/log/lastlog* 
-rw-rw-r--  1 root  wheel  28028 Mar 29 20:58 /var/log/lastlog
-rw-rw-r--  1 root  wheel      0 Mar 19 19:21 /var/log/lastlogx

So these commands will have no effect (the file is already empty and
with the correct permissions).

FWIW, and as I said, this was on a machine where 3.0_BETA was installed
from scratch.  Just after the installation, at the very first login,
I could see that message popping up on the screen.  So there seems to be
a problem somewhere.

Cheers,

-- 
Julio M. Merino Vidal <jmmv84@gmail.com>
http://www.livejournal.com/users/jmmv/
The NetBSD Project - http://www.NetBSD.org/