home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12392 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  2.2 KB

  1. Path: sparky!uunet!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: /etc/passwd gone or corrupted: what now?
  5. Message-ID: <ohriprs@zuni.esd.sgi.com>
  6. Date: 14 Aug 92 02:10:59 GMT
  7. References: <1992Aug13.162916.13009@gdr.bath.ac.uk> <SCOTTH.92Aug13111301@hoshi.corp.sgi.com>
  8. Sender: news@zuni.esd.sgi.com (Net News)
  9. Organization: Silicon Graphics, Inc.  Mountain View, CA
  10. Lines: 39
  11.  
  12. In <SCOTTH.92Aug13111301@hoshi.corp.sgi.com> scotth@hoshi.corp.sgi.com (Scott Henry) writes:
  13.  
  14.  
  15. | >>>>> In article <1992Aug13.162916.13009@gdr.bath.ac.uk>, chpetk@gdr.bath.ac.uk (Toby Kelsey) writes:
  16. | chpetk> I needed to change my login shell. So I logged in as root
  17. | chpetk> and performed
  18. | chpetk>     passmgmt -m -s /bin/sh toby
  19. | chpetk> When I logged out there was a kernel panic with a message
  20. | chpetk>     "software detected SEGV"
  21. | chpetk> and the system wrote a corefile.
  22. | chpetk> We reset the machine as requested. When checking the disk
  23. | chpetk> using fsck all was OK apart from
  24. | chpetk>     su: unknown id: sys
  25. | chpetk>     chown: unknown id: root
  26. | chpetk> The login screen showed no users at all.
  27. | chpetk> Trying to start it in single-user mode gave something like
  28. | chpetk>     su: no such user: root
  29. | chpetk> repeatedly.  We can ping the machine, but cannot ftp or
  30. | chpetk> telnet or rlogin to it.
  31. | chpetk> This is with Irix 4.0.1 on a 4D/35
  32. | It sounds like you hosed /etc/passwd. The only way I know to recover
  33. | is to boot the miniroot (like you were loading software), then run a
  34. | sh. Look to see if there is a backup copy in /root/etc, otherwise
  35. | you'll have to `cp /etc/passwd /root/etc` and then restore /etc/passwd
  36. | after quiting & rebooting (you do do backups, don't you?).
  37. | Any further problems, you should call the TAC if you are on
  38. | maintenance.
  39.  
  40. Also note that in 4.0.5, init gets more careful in the case of
  41. missing or bad password files, and simply runs /bin/csh, /bin/sh,
  42. or /bin/ksh (in that search order) directly.  That can save you
  43. from having to boot the miniroot sometimes.
  44. --
  45. Let no one tell me that silence gives consent,  |   Dave Olson
  46. because whoever is silent dissents.             |   Silicon Graphics, Inc.
  47.     Maria Isabel Barreno                        |   olson@sgi.com
  48.