Failed to recover lost root password for Solaris SunSparc
(On Sun Ultra10 - SPARC CPU Hardware, not x86 Intel CPU nor x64 AMD CPU)
This Sun Ultra10 workstation comes with an old 6-in wafer probing station purchased from a Surplus equipment vendor.
Computer: Sun Ultra 5/10 UPA/PCI (UltraSPARC-Iii 440MHz). Sparc10 with UPA creative 3D graphics card and CDROM driver, Sun Type 5C keyboard/mouse. Sun Monitor. Solaris 10 SunOS. Solaris 10 installation CD. Unknown root password.
Here is the procedure that I followed in an attempt to recover the root password.
- Turn on SUN UltraSparc 10 and load Solaris 10 Installation CD
- Reboot Machine with CD inside CDROM drive
- Hit �Stop A� on keyboard during boot to get to the OK prompt
- To boot computer into single user mode, I typed �boot cdrom -s� at ok.
[list=1] - ok boot cdrom -s
[/list] - Once booted off the CDROM, it showed
[list=1] - INIT: SINGLE USER MODE
- #
- # mount /dev/dsk/c0t0d0s0 /a (to look for password shadow file)
- # cat /a/etc/shadow
[/list]
� root:xxxxxx:6445:::::::
� daemon:NP:6445:::::::
� ....
- [list=1]
- # vi /a/etc/shadow (to remove xxxxx between root and 6445)
- :wq! to save and quit out of vi
- # cat /a/etc/shadow (to check shadow file after editing)
[/list]
� root::6445:::::::
� daemon:NP:6445:::::::
� ....
- [list=1]
- #umount /a (unmount device at /a)
- #pwd
- #/tmp/root
[/list]
It looks all good so far. But my trouble starts from here: the computer is still asking for root password at boot!!!
- To boot into single user mode again to reset root password
[list=1] - # boot ok -s
- boot: not found
[/list] - I then tried
[list=1] - #boot -s
- boot: not found
[/list] - I then tried
[list=1] - #boot
- boot: not found
[/list] - I then open the CD drive and took Solaris 10 CD out
[list=1] -
#reboot
[/list] - Sun UltraSparc 10 went into normal boot sequence. The typical CDE login screen showed up. Welcome Solaris user10
[list=1] - Please enter user name: root <enter>
- Please enter password: <enter>
- It showed: login incorrect; please try again
[/list] - I then tried
[list=1] - Please enter user name: <enter>
- Please enter password: <enter>
- It showed: login incorrect; please try again
[/list] - I don't understand why it was still looking for root password since I have already removed root password string in the shadow file!!!
- I then went through the above step1-4 to boot into SINGLE USER MODE, to change root password
[list=1] - INIT: SINGLE USER MODE
- #passwd
- passwd (SYSTEM): password database busy. Try again later. Permission denied.
[/list] - I then tried
[list=1] - #passwd root
- passwd (SYSTEM): password database busy. Try again later. Permission denied.
[/list] - So far none of boot and passwd commands worked for me. Any advice?
Note that many Solaris systems may have mirrored volumes, a volume manager or other method of copying the full filesystem. If this is the case these instructions will need to be followed for both volumes, otherwise corruption can easily occur.
Does it mean that there is another shadow file inside /dev/dsk/c0t1d0s0 besides /dev/dsk/c0t0d0s0?