From: Peter Orbaek (poe@daimi.aau.dk)
Date: 09/16/92


From: poe@daimi.aau.dk (Peter Orbaek)
Subject: Re: 0.97pl5 and who
Date: 16 Sep 1992 09:35:23 GMT

tomlin@betelgeux (Mark Tomlinson) writes:

>I just got the 0.97pl5 and compiled it under 2.2.2 no problem. I had to do a
>make depend first - but I was kinda expecting that. It also booted up OK.

>The problem I'm having is with the utmp (or is that wtmp) file. "who" no
>longer works for me, but "last" is still OK. I looked at the utmp file (yes,
>I know it isn't plain text), and it looked a mess. It also seems to grow
>very quickly to large sizes....

who reads /etc/utmp, and last reads /etc/wtmp.

Utmp should definately not grow to large sizes, it should grow to a few K,
and then stay constant.

Your utmp may have been damaged, just do

        rm -f /etc/utmp ; touch /etc/utmp

It actually makes sense to do this on boot-up in /etc/rc

>I am using GCC 2.2.2, kernel 0.97PL5. The init, getty and bash are all from
>the 0.96 root disk.

>Thanks in advance... Mark

-- 
Peter Orbaek <poe@daimi.aau.dk>
Hasle Ringvej 122, DK-8200 Aarhus N, DENMARK