home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.minix
- Path: sparky!uunet!mcsun!sun4nl!relay.philips.nl!prle!cstw168!meulenbr
- From: meulenbr@prl.philips.nl (Frans Meulenbroeks)
- Subject: Re: Question init.c <--> /etc/utmp
- Message-ID: <meulenbr.714819852@cstw168>
- Keywords: init login utmp wtmp
- Sender: news@prl.philips.nl (USENET News System)
- Organization: Philips Research Laboratories Eindhoven, Netherlands
- References: <1992Aug25.135457.26129@walter.cray.com>
- Date: Wed, 26 Aug 1992 09:04:12 GMT
- Lines: 23
-
- leno@grumpy.cray.com (Scott J. Leno) writes:
-
- > I have been looking into why I seem to be logged in several times when I
- > run the who command. It stems from init not zeroing the /etc/utmp entry
- > when I log off. This happens because I do not have a /usr/adm directory.
- > init tries to place a utmp entry in the /usr/adm/wtmp file. If it fails
- > it returns without trying to make the entry in the /etc/utmp file. I
- > realise that I could just create the /usr/adm/wtmp file but login works
- > with one and/or the other without any trouble.
-
- > As it stands now login writes a utmp entry to /etc/utmp, but init never
- > gets to zero it out when I log off. I have made mods to init to fix this,
- > if anyone is interested, I will post them.
-
- In /etc/rc add the line:
- >/etc/utmp
- which will clear the file whenever the system is booted.
- No need to change init.
-
- Good luck,
- --
- Frans Meulenbroeks (meulenbr@prl.philips.nl)
- Philips Research Laboratories
-