home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / pyramid / 235 next >
Encoding:
Text File  |  1992-12-29  |  1.8 KB  |  49 lines

  1. Newsgroups: comp.sys.pyramid
  2. Path: sparky!uunet!gatech!asuvax!ennews!anasaz!chad
  3. From: chad@anasazi.com (Chad R. Larson)
  4. Subject: Re: screwed up /etc/utmp file
  5. Organization: Anasazi, Inc.  Phoenix, Arizona USA
  6. Date: Wed, 30 Dec 1992 00:09:30 GMT
  7. Message-ID: <1992Dec30.000930.27742@anasazi.com>
  8. Keywords: who /etc/utmp login
  9. References: <davidm.724857220@nixtor>
  10. Sender: usenet@anasazi.com (Usenet News)
  11. Lines: 36
  12.  
  13. In article <davidm.724857220@nixtor> davidm@sni.ca (David Macklem) writes:
  14. +---------------
  15. | Further investigation has found that the /etc/.attutmp file has gotten
  16. | corrupted, somehow.  There is no boot information and the 'who' command
  17. | (among others reading the utmp file) no longer works.
  18. | Has anyone else seen this particular problem?  If so, how did you fix
  19. | it?
  20. +---------------
  21. When I last saw that problem, it was due to a user compiling a program
  22. that made entries in the utmp file.  The program was compiled under the
  23. ucb universe, but run under the att universe.  The result was entries
  24. being made at the wrong offsets in the .attutmp file.
  25.  
  26. I don't remember exactly what it was he compiled.  I seem to remember it
  27. was something from the Free Software Foundation, which assumes only
  28. Berzerkely worlds exist.  That is why he compiled under ucb, because it
  29. "was easier", but he got the wrong /usr/include/sys/utmp.h file.
  30.  
  31. Have you or any of the users there been building programs from off the
  32. net or outside your company?  That's where to start looking.
  33.  
  34. As an aside, once you notice who no longer works, you can recover with a
  35. bit less drastic move than rebooting.  As root:
  36.  
  37.     cat /dev/null > /etc/.attutmp
  38.  
  39. Or, if you are even more ambitious, you can use a binary editor like
  40. "bed" to fix the file...
  41.  
  42. +---------------
  43. | Thanks.
  44. +---------------
  45. De Nada!
  46.  
  47.     -crl
  48.