home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.minix
- Path: sparky!uunet!timbuk.cray.com!walter.cray.com!grumpy!leno
- From: leno@grumpy.cray.com (Scott J. Leno)
- Subject: Question init.c <--> /etc/utmp
- Message-ID: <1992Aug25.135457.26129@walter.cray.com>
- Summary: init ignores /etc/utmp if /usr/adm/wtmp doesn't exist
- Keywords: init login utmp wtmp
- Sender: Scott J. Leno
- Organization: Cray Research, Inc.
- Date: 25 Aug 92 13:54:57 CDT
- Lines: 14
-
- 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.
-
- peace, love and good karma,
- Scott
-