Failed to recover root password in Solaris 10 on Sparc CPU Sun Ultra10


 
Thread Tools Search this Thread
Operating Systems Solaris Failed to recover root password in Solaris 10 on Sparc CPU Sun Ultra10
# 1  
Old 04-18-2012
Question Failed to recover root password in Solaris 10 on Sparc CPU Sun Ultra10

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.
  1. Turn on SUN UltraSparc 10 and load Solaris 10 Installation CD
  2. Reboot Machine with CD inside CDROM drive
  3. Hit “Stop A” on keyboard during boot to get to the OK prompt
  4. To boot computer into single user mode, I typed “boot cdrom -s” at ok.
    1. ok boot cdrom -s
  5. Once booted off the CDROM, it showed
    1. INIT: SINGLE USER MODE
    2. #
    3. # mount /dev/dsk/c0t0d0s0 /a (to look for password shadow file)
    4. # cat /a/etc/shadow
· root:xxxxxx:6445:::::::
· daemon:NP:6445:::::::
· ....
    1. # vi /a/etc/shadow (to remove xxxxx between root and 6445)
    2. :wq! to save and quit out of vi
    3. # cat /a/etc/shadow (to check shadow file after editing)
· root::6445:::::::
· daemon:NP:6445:::::::
· ....
    1. #umount /a (unmount device at /a)
    2. #pwd
    3. #/tmp/root
It looks all good so far. But my trouble starts from here: the computer is still asking for root password at boot!!!
  1. To boot into single user mode again to reset root password
    1. # boot ok -s
    2. boot: not found
  2. I then tried
    1. #boot -s
    2. boot: not found
  3. I then tried
    1. #boot
    2. boot: not found
  4. I then open the CD drive and took Solaris 10 CD out
    1. #reboot
  5. Sun UltraSparc 10 went into normal boot sequence. The typical CDE login screen showed up. Welcome Solaris user10
    1. Please enter user name: root <enter>
    2. Please enter password: <enter>
    3. It showed: login incorrect; please try again
  6. I then tried
    1. Please enter user name: <enter>
    2. Please enter password: <enter>
    3. It showed: login incorrect; please try again
  7. I don't understand why it was still looking for root password since I have already removed root password string in the shadow file!!!
  8. I then went through the above step1-4 to boot into SINGLE USER MODE, to change root password
    1. INIT: SINGLE USER MODE
    2. #passwd
    3. passwd (SYSTEM): password database busy. Try again later. Permission denied.
  9. I then tried
    1. #passwd root
    2. passwd (SYSTEM): password database busy. Try again later. Permission denied.
  10. 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?
# 2  
Old 04-19-2012
# 3  
Old 04-19-2012
You can check this link:

Solaris System Admin tips: How to reset the Root password in Sun Solaris (SPARC)

Quote:
It looks all good so far. But my trouble starts from here: the computer is still asking for root password at boot!!!
-- are you connected over serial-console or network?

Please note that if you are connected over serial console, it should not ask you for the boot password again after resetting it.

However, it may ask if you are connected over network then depending on your PermitRootLogin setting in /etc/ssh/sshd_config file and depending on your CONSOLE=/dev/console setting in /etc/default/login file, the machine may deny you access even if you are giving the correct password.

I am not a genius at this, but i experienced these issues recently. Hope it helps.//
# 4  
Old 04-19-2012
Thanks Mystition. The workstation wasn't connected through serial-console or networked. It's a stand-alone SUN Ultra 10 Sparc workstation with wafer probing setup programs on it. Are you suggesting that I should use a null modem serial cable to hookup to a hyperterminal on PC to boot the SUN Ultra10? Josh

---------- Post updated at 11:41 AM ---------- Previous update was at 11:36 AM ----------

I followed the several posts from 1996-2004 about resetting root password. I read that thread before. My problem is that at single user mode prompt, when I typed #passwd, it complains about password database is busy. and permission denied (see my original post). Thanks. Josh

---------- Post updated at 12:01 PM ---------- Previous update was at 11:41 AM ----------

Hi Coolboys,

Thanks for the youtube video. I wish I could know it sooner. I know the difference in booting into the single user mode between X86 intel system and SPARC Sun system. I actually practiced on the x86 system on resetting passwrod first without issue before I tried on this newly aquired Sun UltraSPARC10. I successfully removed root password string without issue. My problem is that it still asking for the password after reboot at login page.
Thanks,
Josh
# 5  
Old 04-19-2012
Hi Fromtexas0,

If you "boot cdrom" and mount the / partition on /a, you should be able to "vi" the /a/etc/shadow" file and enter an encrypted string for a known password.

This should allow you to login to the box as root after a "ok boot" command. There should be no difference if the box is X86 or SPARC. The only people that I know in the wafer manufacture world that used C2 security on SPARC systems were Motorola and ATMEL, if the system came from any of these people then my suggestion would be to create the /etc/passwd file and the /etc/shadow file on an other system and copy into place.

Regards

Dave
# 6  
Old 04-19-2012
Hi, Dave,

I copied the known password string from the shadow file of another x86 Intel based SUN Solaris 10 next door to this Sun Ultra10. Then I re-boot the machine. I used root as username and known password (.root) from that X86 machine at login page. It says: login incorrect; please try again. I went back in single user mode to see if the shadow file was corrupted. It wasn't. I have noway to tell where it came from. The purchasing lady called surplus vendor in vain. Very confusion! Any other clues?

Thanks for suggestings,
Josh
# 7  
Old 04-20-2012
Perhaps you have a mirrored root disk. In this case you should edit /etc/shadow on both submirrors.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How recover the root password - Solaris 11?

Hello forum members, Please help me to recover the root password. I have had difficulties working with Solaris 11. The run-level equivalents single-user in Solaris 10, I can mount disk in one partition and edit files shadow/passwd. For example: {0} ok boot cdrom -s # mount... (4 Replies)
Discussion started by: Marcela Bueno
4 Replies

2. UNIX for Dummies Questions & Answers

How to recover root password on SuSE?

Hi, We forgot the root password on SuSE version 10 server. Since I didn't have SuSE DVD, I started the server using Redhat. I updated /etc/shadow and removed the root password. I then started the server and I still can't login using root. Any idea? One more question, on Novell web... (6 Replies)
Discussion started by: samnyc
6 Replies

3. Solaris

SNMP - cpu core information for Sun SPARC machine

Dears, I'm looking for getting CPU cores information of Sun machines (like: SunFire V880, Fujitsu SPARC T5120, ...) via SNMP, unfortunately i couldn't find the proper OID for that. Can anyone help me with this ? Thanks, (1 Reply)
Discussion started by: Anti_Evil
1 Replies

4. Red Hat

How to recover the root password?

Hello forum members, Please help me to recover the root password. i can login with the user in redhat linux but i forget root password. so pleas help me to recover. advance thanks siva. (2 Replies)
Discussion started by: workforsiva
2 Replies

5. Solaris

Recover root password

How can I recover root password :wall: 1) I am running Solaris 10 (X86) through VMware for practicing. 2) I was practicing root password recovery and deleted the password in /etc/shadow file. 3) Neither cant login the to the CLI nor Console 4) Selected the Soalris X86 failsafe in... (4 Replies)
Discussion started by: vijaykrishna
4 Replies

6. AIX

How to recover root password in AIX ?

Dears, We have Oracle Database installed on AIX Version 5.3 and we have to take action urgently but must by root user but unfortunately we lost password. How to recover root password? Please, be noted that I am Oracle DBA and do not have experience in dealing with AIX Systems. Please, advise... (3 Replies)
Discussion started by: mohammedmostafa
3 Replies

7. UNIX for Dummies Questions & Answers

root password on aix lost, how to recover

Hi guys, we have "forget" the root password for 1 of our AIX machines, how can we reset it? or recover it?? Thanks (1 Reply)
Discussion started by: prpkrk
1 Replies

8. Solaris

Need to recover 'root' password

Dear All, I have lost my data backup server's root password, just have a normal login username and password ..but i need to get back my root passwd....any1 can help me out plz :confused: (7 Replies)
Discussion started by: abir
7 Replies

9. Solaris

How to recover root password

How to recover root password in solaris, I forgot root password. thanks in advance (2 Replies)
Discussion started by: durgaprasadr13
2 Replies

10. Solaris

Recover root password

I need to recover root password on a test server (E 10k) running solaris 9. Can someone please tell me how to do this? (1 Reply)
Discussion started by: nitinkgoud
1 Replies
Login or Register to Ask a Question