Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!unmvax!bbx!yenta!dt From: dt@yenta.alb.nm.us (David B. Thomas) Newsgroups: comp.sys.3b1 Subject: Re: Fix for trashed /etc/utmp? Message-ID: <1991Apr26.000235.5570@yenta.alb.nm.us> Date: 26 Apr 91 00:02:35 GMT References: <1991Apr24.233928.16000@oswego.oswego.edu> Organization: yenta unix pc, rio rancho, nm Lines: 20 ostroff@penelope.Oswego.EDU (Boyd Ostroff) writes: >So, I was curious if there are any utilities out there which can re-build >a messed up utmp file without having to re-boot the system. I'm also Yup ... $ > /etc/utmp Okay, it's not elegant, but it works. Any users currently logged in won't be listed anymore, of course, and the run level entry won't be there .. but it's not such a big deal. The system can run ok. As long as any users who were on log off, then back on, utmp is accurate again. The command who -r will fail until you reboot or change run levels. Simply issuing # init 2 might fix even this, though I'd have to check. little david -- Unix is not your mother.