Sponsored Content
Operating Systems Solaris Failed to recover root password in Solaris 10 on Sparc CPU Sun Ultra10 Post 302625577 by fromtexas0 on Wednesday 18th of April 2012 01:58:41 AM
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?
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
All times are GMT -4. The time now is 12:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy