home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.pyramid
- Path: sparky!uunet!gatech!rpi!batcomputer!munnari.oz.au!bunyip.cc.uq.oz.au!cheops!logier
- From: logier@cheops.qld.tne.oz.au (Rob Logie)
- Subject: Re: screwed up /etc/utmp file
- Message-ID: <1992Dec30.225517.26511@cheops.qld.tne.oz.au>
- Keywords: who /etc/utmp login
- Organization: Telecom Australia, TNE Computer Support Services
- References: <davidm.724857220@nixtor> <1992Dec30.000930.27742@anasazi.com>
- Date: Wed, 30 Dec 1992 22:55:17 GMT
- Lines: 49
-
- chad@anasazi.com (Chad R. Larson) writes:
-
- >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
-
-
- Most common cause is people who try and compile a xterm on the Pyramid.
-
-
-
- --
- Rob Logie | The opions expressed are mine alone and in
- Telecom Australia ACN 051 775 556 | no-way reflect the views or policies of the
- TNE Computer Support Services | Australian and Overseas Telecommunications
- EMAIL: logier@cheops.qld.tne.oz.au| Corporation. "These are my opinions alone"
-