home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!odin!sgi.com!scotth
- From: scotth@hoshi.corp.sgi.com (Scott Henry)
- Subject: Re: /etc/passwd gone or corrupted: what now?
- In-Reply-To: chpetk@gdr.bath.ac.uk's message of 13 Aug 92 16: 29:16 GMT
- Message-ID: <SCOTTH.92Aug13111301@hoshi.corp.sgi.com>
- Sender: news@odin.corp.sgi.com (Net News)
- Nntp-Posting-Host: hoshi.corp.sgi.com
- Organization: Silicon Graphics Inc, Mountain View, CA
- References: <1992Aug13.162916.13009@gdr.bath.ac.uk>
- Date: Thu, 13 Aug 1992 16:13:01 GMT
- Lines: 35
-
-
- >>>>> In article <1992Aug13.162916.13009@gdr.bath.ac.uk>, chpetk@gdr.bath.ac.uk (Toby Kelsey) writes:
-
- chpetk> I needed to change my login shell. So I logged in as root
- chpetk> and performed
- chpetk> passmgmt -m -s /bin/sh toby
- chpetk> When I logged out there was a kernel panic with a message
- chpetk> "software detected SEGV"
- chpetk> and the system wrote a corefile.
- chpetk> We reset the machine as requested. When checking the disk
- chpetk> using fsck all was OK apart from
- chpetk> su: unknown id: sys
- chpetk> chown: unknown id: root
- chpetk> The login screen showed no users at all.
- chpetk> Trying to start it in single-user mode gave something like
- chpetk> su: no such user: root
- chpetk> repeatedly. We can ping the machine, but cannot ftp or
- chpetk> telnet or rlogin to it.
-
- chpetk> This is with Irix 4.0.1 on a 4D/35
-
- It sounds like you hosed /etc/passwd. The only way I know to recover
- is to boot the miniroot (like you were loading software), then run a
- sh. Look to see if there is a backup copy in /root/etc, otherwise
- you'll have to `cp /etc/passwd /root/etc` and then restore /etc/passwd
- after quiting & rebooting (you do do backups, don't you?).
-
- Any further problems, you should call the TAC if you are on
- maintenance.
-
- =-=-=
- --
- Scott Henry <scotth@sgi.com> / Traveller on Dragon Wings
- Networking Services, / Help! My disclaimer is missing!
- Silicon Graphics, Inc / GIGO *really* means: Garbage in, Gospel Out
-