Getting Started, Documentation, Tips & Tricks

Recovering from error? was: Resetting root password?

I have recently acquired an O2, and am trying to reset the root password so I can actually do anything with it (it has a version of IRIX on it I do not presently have and would like to keep). I attempted the sgizone.net method of using the installation media to enter a shell and use /root/bin/vi to edit the passwd file directly; however, vi is throwing a fatal error: Cannot successfully map soname 'libcurses.so' under... somethingrather, a lot of what appear to be other system file names follow.

Can anyone give me a suggestion on where to go from here? I cannot find much of anything else on how to progress.

_________________
Systems: :O200: :O200: + Image + :Indigo: + :Indigo2IMP: + :O2: +
- AdamMalkovich: P4 PC, LinuxMint Fluxbox CE 6
- Morningstar: Sun SS20, Solaris 9
- Guru: IBM RT/135, AIX 2.2.1
- Concord: Sun SPARCclassic, Solaris 2.6
- Lying Bastard: Apple iMac G3, Mac OS X 10.3.9
- Chunderspunk: NeXTstation, NeXTSTEP 3.3
set LD_LIBRARY_PATH?

Alternatively, can you not simply do a "chroot" to the root of your real file system and run passwd from there?
I do not know what you mean by either of these incantations.

Assume I am a jellybrain, as for almost everything related to IRIX administration I am.

_________________
Systems: :O200: :O200: + Image + :Indigo: + :Indigo2IMP: + :O2: +
- AdamMalkovich: P4 PC, LinuxMint Fluxbox CE 6
- Morningstar: Sun SS20, Solaris 9
- Guru: IBM RT/135, AIX 2.2.1
- Concord: Sun SPARCclassic, Solaris 2.6
- Lying Bastard: Apple iMac G3, Mac OS X 10.3.9
- Chunderspunk: NeXTstation, NeXTSTEP 3.3
http://www.nekochan.net/wiki/index.php/ ... rd_removal

_________________
***********************************************************************
Welcome to ARMLand - 0/0x0d00
running...(sherwood-root 0607201829)
* InfiniteReality/Reality Software, IRIX 6.5 Release *
***********************************************************************
I have already attempted the method described there via CDROM, which gave me the error in the first post. I do not know how to mount the drive on another system. Finally, the Jack the Ripper idea won't work very well, as the network was configured for a different network setup than the one I have and thus cannot copy the file to another system because there is no actual way to do this.

_________________
Systems: :O200: :O200: + Image + :Indigo: + :Indigo2IMP: + :O2: +
- AdamMalkovich: P4 PC, LinuxMint Fluxbox CE 6
- Morningstar: Sun SS20, Solaris 9
- Guru: IBM RT/135, AIX 2.2.1
- Concord: Sun SPARCclassic, Solaris 2.6
- Lying Bastard: Apple iMac G3, Mac OS X 10.3.9
- Chunderspunk: NeXTstation, NeXTSTEP 3.3
The link I usually refer to is down <at the .se nekoware mirror> - here's the next best one I could come up with:
http://software.majix.org/irix/admin-password.shtml

Here's the one from the .se nekoware mirror - it'll probably be back up soon:
http://se.mirror.nekoware.net/SGI_Info/ ... ystems.htm

_________________
***********************************************************************
Welcome to ARMLand - 0/0x0d00
running...(sherwood-root 0607201829)
* InfiniteReality/Reality Software, IRIX 6.5 Release *
***********************************************************************
Yes, I know that's the other page with the same procedure; I found this out by doing a general forum search for my problem before I posted. This is the exact same procedure that gave me the error described in the first post.

_________________
Systems: :O200: :O200: + Image + :Indigo: + :Indigo2IMP: + :O2: +
- AdamMalkovich: P4 PC, LinuxMint Fluxbox CE 6
- Morningstar: Sun SS20, Solaris 9
- Guru: IBM RT/135, AIX 2.2.1
- Concord: Sun SPARCclassic, Solaris 2.6
- Lying Bastard: Apple iMac G3, Mac OS X 10.3.9
- Chunderspunk: NeXTstation, NeXTSTEP 3.3
I'm suggesting something like

(assuming your real harddisk is mounted as /root)

Code:
chroot /root /bin/sh
cat /etc/passwd
passwd root
exit
cat /root/etc/passwd
That did the trick exactly; thank you.

Now however, I'm having another problem. This thing was used in a rather unusual network environment; in trying to set up its interfaces to deal with the local network, I seem to have managed to make it stop the booting process about halfway. This occurred immediately after changing the DNS server information in the system and nothing else (I rebooted after each change just to make sure I didn't do something like this). Any thoughts?

_________________
Systems: :O200: :O200: + Image + :Indigo: + :Indigo2IMP: + :O2: +
- AdamMalkovich: P4 PC, LinuxMint Fluxbox CE 6
- Morningstar: Sun SS20, Solaris 9
- Guru: IBM RT/135, AIX 2.2.1
- Concord: Sun SPARCclassic, Solaris 2.6
- Lying Bastard: Apple iMac G3, Mac OS X 10.3.9
- Chunderspunk: NeXTstation, NeXTSTEP 3.3
Baphijmm wrote:
This occurred immediately after changing the DNS server information in the system and nothing else (I rebooted after each change just to make sure I didn't do something like this). Any thoughts?


Perhaps your changes to DNS information affected the boot up! :)

Seriously though, check that you have no remote NFS mounts.

Check that you are not using yellow pages (NIS) for user accounts or anything else.
Actually, I was just being impatient; after leaving it alone for >half an hour, it timed out and let me go in to fix the problem. ^^;

_________________
Systems: :O200: :O200: + Image + :Indigo: + :Indigo2IMP: + :O2: +
- AdamMalkovich: P4 PC, LinuxMint Fluxbox CE 6
- Morningstar: Sun SS20, Solaris 9
- Guru: IBM RT/135, AIX 2.2.1
- Concord: Sun SPARCclassic, Solaris 2.6
- Lying Bastard: Apple iMac G3, Mac OS X 10.3.9
- Chunderspunk: NeXTstation, NeXTSTEP 3.3