home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / sgi / 16020 < prev    next >
Encoding:
Internet Message Format  |  1992-11-06  |  1.7 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!elroy.jpl.nasa.gov!ames!olivea!sgigate!odin!fido!zola!zuni!anchor!olson
  2. From: olson@anchor.esd.sgi.com (Dave Olson)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: fsck problem in single user mode
  5. Keywords: fsck, single user
  6. Message-ID: <s05345o@zuni.esd.sgi.com>
  7. Date: 5 Nov 92 18:04:55 GMT
  8. References: <1992Nov5.113332.22423@sun1.ruf.uni-freiburg.de>
  9. Sender: news@zuni.esd.sgi.com (Net News)
  10. Organization: Silicon Graphics, Inc.  Mountain View, CA
  11. Lines: 23
  12.  
  13. In <1992Nov5.113332.22423@sun1.ruf.uni-freiburg.de> kleinren@sun1.ruf.uni-freiburg.de (Rainer Kleinrensing) writes:
  14. | today we had a problem with a mangled root entry in /etc/passwd.
  15. | To fix it, we booted single user and manually did a /etc/fsck /dev/usr
  16. | in order to be able to mount it and use 'vi'. However, fsck wanted to
  17. | print a message like 'UNREF FILE, OWNER=root', but what was printed was
  18. | 'UNREF FILE, OWNER=Bus error (ore dumped)', fsck was not able to
  19. | continue beyond this point.
  20. | With 'echo' we created a passwd file with only the root entry,
  21. | after that fsck worked. Perhaps one could fix this ?
  22.  
  23. You don't say which OS release you are running.  I tried to duplicate
  24. this with a number of creative ;) ways of damaging the passwd file,
  25. and all of them either find and print 'root', or don't find uid 0
  26. at all, and just print the numeric UID.  This was with 405.
  27.  
  28. fsck uses getpw() (the standard libc routine) to lookup the UID, so
  29. this should be fairly easy to simulate.
  30.  
  31. Could you include a sample of how the bad line looked?
  32. --
  33. Let no one tell me that silence gives consent,  |   Dave Olson
  34. because whoever is silent dissents.             |   Silicon Graphics, Inc.
  35.     Maria Isabel Barreno                        |   olson@sgi.com
  36.