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

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