home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!sgigate!odin!fido!zola!zuni!anchor!olson
- From: olson@anchor.esd.sgi.com (Dave Olson)
- Newsgroups: comp.sys.sgi
- Subject: Re: /etc/passwd gone or corrupted: what now?
- Message-ID: <ohriprs@zuni.esd.sgi.com>
- Date: 14 Aug 92 02:10:59 GMT
- References: <1992Aug13.162916.13009@gdr.bath.ac.uk> <SCOTTH.92Aug13111301@hoshi.corp.sgi.com>
- Sender: news@zuni.esd.sgi.com (Net News)
- Organization: Silicon Graphics, Inc. Mountain View, CA
- Lines: 39
-
- In <SCOTTH.92Aug13111301@hoshi.corp.sgi.com> scotth@hoshi.corp.sgi.com (Scott Henry) writes:
-
-
- | >>>>> 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.
-
- Also note that in 4.0.5, init gets more careful in the case of
- missing or bad password files, and simply runs /bin/csh, /bin/sh,
- or /bin/ksh (in that search order) directly. That can save you
- from having to boot the miniroot sometimes.
- --
- Let no one tell me that silence gives consent, | Dave Olson
- because whoever is silent dissents. | Silicon Graphics, Inc.
- Maria Isabel Barreno | olson@sgi.com
-