home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9051 < prev    next >
Encoding:
Text File  |  1992-08-25  |  1.6 KB  |  36 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!sdd.hp.com!ux1.cso.uiuc.edu!rs6000.cmp.ilstu.edu!jliddle
  3. From: jliddle@rs6000.cmp.ilstu.edu (Jean Liddle)
  4. Subject: Re: Two problems. (Elm/Smail/lib/libc.2.2.2, shutdown)
  5. Message-ID: <1992Aug25.180023.14473@rs6000.cmp.ilstu.edu>
  6. Date: Tue, 25 Aug 1992 18:00:23 GMT
  7. References: <1992Aug20.040341.27796@constellation.ecn.uoknor.edu> <1992Aug25.161632.8144@julian.uwo.ca>
  8. Organization: Illinois State University
  9. Lines: 25
  10.  
  11. In article <1992Aug25.161632.8144@julian.uwo.ca> klode@syslab.csd.uwo.ca (Claude Morin) writes:
  12. >
  13. >    The problem occurs when /etc/utmp has a record for someone who is no longer
  14. >logged in.  When that happens, shutdown will attempt to send a message, will
  15. >block, and your system will 'hang'.  Note that /etc/utmp corruption is quite
  16. >common, and can be caused (as in your case), by rebooting while in X11.  Your
  17. >/etc/utmp file probably has an entry for user 'smith' on 'ttyp6' or something
  18. >like that.  You can check with 'who' or 'w'.
  19. >
  20.  
  21. I have in my rc file the lines:
  22.  
  23. /bin/rm -f /etc/utmp
  24. /usr/bin/touch /etc/utmp
  25.  
  26. which, on bootup, automatically initializes utmp to have no logged in users.
  27. I did this back when I was rebooting from X alot, before I got my video 
  28. timings figured out.  It seems like a reasonable precaution anyway, since
  29. at bootup there cannot be anyone logged in :).
  30.  
  31. Jean.
  32. -- 
  33. Jean Liddle                                 | == Bill Clinton for President ==
  34. Computer Science, Illinois State University | 
  35. e-mail:  jliddle@ilstu.edu                  | - Carol Mosley Braun for Senat -
  36.