home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / minix / 4303 < prev    next >
Encoding:
Text File  |  1992-08-25  |  1.1 KB  |  27 lines

  1. Newsgroups: comp.os.minix
  2. Path: sparky!uunet!timbuk.cray.com!walter.cray.com!grumpy!leno
  3. From: leno@grumpy.cray.com (Scott J. Leno)
  4. Subject: Question init.c <--> /etc/utmp
  5. Message-ID: <1992Aug25.135457.26129@walter.cray.com>
  6. Summary: init ignores /etc/utmp if /usr/adm/wtmp doesn't exist
  7. Keywords: init login utmp wtmp
  8. Sender: Scott J. Leno
  9. Organization: Cray Research, Inc.
  10. Date: 25 Aug 92 13:54:57 CDT
  11. Lines: 14
  12.  
  13.   I have been looking into why I seem to be logged in several times when I
  14.  run the who command. It stems from init not zeroing the /etc/utmp entry
  15.  when I log off. This happens because I do not have a /usr/adm directory.
  16.  init tries to place a utmp entry in the /usr/adm/wtmp file. If it fails
  17.  it returns without trying to make the entry in the /etc/utmp file. I
  18.  realise that I could just create the /usr/adm/wtmp file but login works
  19.  with one and/or the other without any trouble. 
  20.  
  21.   As it stands now login writes a utmp entry to /etc/utmp, but init never
  22.  gets to zero it out when I log off. I have made mods to init to fix this,
  23.  if anyone is interested, I will post them.
  24.  
  25.    peace, love and good karma,
  26.       Scott
  27.