home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 17284 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.4 KB  |  47 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!mcsun!sunic!dkuug!daimi!poe
  3. From: poe@daimi.aau.dk (Peter Orbaek)
  4. Subject: Re: etc/utmp file not updated.
  5. Message-ID: <1992Nov20.095519.10869@daimi.aau.dk>
  6. Sender: news@daimi.aau.dk
  7. Organization: DAIMI: Computer Science Department, Aarhus University, Denmark
  8. References: <1992Nov20.075629.20271@ifi.uio.no>
  9. Date: Fri, 20 Nov 92 09:55:19 GMT
  10. Lines: 35
  11.  
  12. runefr@ifi.uio.no (Rune Fr|ysa) writes:
  13.  
  14.  
  15. >Hi, I have a minor problem, using the SLS 0.98pl1 package with Linux 0.98pl5.
  16.  
  17. >Running w on my system i get something like:
  18. >User   tty    idle
  19. >root    some data
  20. >sync   ttyp1  2days
  21.  
  22. >Now, sync wasn't supposed to be there. ps -axu doesn't show anyone but root.
  23. >Looking into the wtmp file, I see that sync was logged in at some time, and
  24. >then crash.
  25.  
  26. >Seems like someone hasn't cleaned up the utmp file propperly. Anyone who knows
  27. >how to solve this problem?
  28.  
  29.  
  30. Put this in your /etc/rc script:
  31.  
  32.     rm -f /etc/utmp ; touch /etc/utmp
  33.  
  34. this way it'll be cleaned up each time you boot.
  35.  
  36. >---------===============================================--------------
  37. >Rune Froysa,                 |"Science is the attempt to make the 
  38. >Dept. of Informatics         | chaotic diversity of our sense experience
  39. >University of Oslo, Norway   | correspond to a logically uniform system 
  40. >E-mail:runefr@ifi.uio.no     | of thought" - Albert Einstein.
  41.  
  42.  
  43.  
  44. -- 
  45. Peter Orbaek <poe@daimi.aau.dk>
  46. Hasle Ringvej 122, DK-8200 Aarhus N, DENMARK
  47.