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