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
# 8  
Old 04-20-2012
Quote:
Originally Posted by fromtexas0
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).
Please post the output of these commands:
Code:
grep root /a/etc/passwd /a/etc/shadow
ls -l /a/etc/*tmp /a/etc/nsswitch.conf
grep "^passwd" /a/etc/nsswitch.conf
grep PASSREQ /a/etc/default/login

# 9  
Old 04-20-2012
Hi, Jlliagre,

Here are the outputs from all these commands -

Code:
#grep root /a/etc/passwd /a/etc/shadow
/a/etc/passwd:root:x:0:0:Super-User:/:/sbin/sh
/a/etc/shadow:root::6445::::::

Code:
#ls -l /a/etc/*tmp /a/etc/nsswitch.conf
-rw-r--r--   1 root  sys   943  Dec 24 2007  /a/etc/nsswitch.conf

Code:
#grep "^passwd" /a/etc/nsswitch.conf
passwd:   files

Code:
#grep PASSREQ /a/etc/default/login
#PASSREQ determines if login requires a password.
PASSREQ=YES
#

Thanks,
Josh
# 10  
Old 04-20-2012
Code:
PASSREQ=NO

in the login file should help.
# 11  
Old 04-20-2012
Hi All,

I've seen this thread going along for a few days now and I know that I'm coming to this late so what I'm about to say might be irrelevant.

However, if I had this situation my thoughts would be to boot into single user:

Code:
 
boot cdrom -s

Mount the harddisk root filesystem under /a

Change the root to /a

Quote:
chroot /a
Then use passwd command to change the root passwd:

Code:
 
passwd root

I don't think it will ask for the old password because you're logged in as God.

Has this been tried? If so, why doesn't it work.

I assume the passwd database busy error is due to the fact that it's still looking at the cdrom filesystem as root.

Comments anyone?
# 12  
Old 04-20-2012
Hi Jlliagre,

Thanks for your reply.

I boot machine into single user mode and mount filesystem on /a, and I changed PASDSREQ=YES to PASSREQ=NO

Code:
Code:
 
#vi /a/etc/default/login
#PASSREQ determines if login requires a password.
PASSREQ=NO

verification:

Code:
Code:
 
#grep PASSREQ /a/etc/default/login
#PASSREQ determines if login requires a password.
PASSREQ=NO
#

After umount /a and boot back to normal CDE login page, it still asked for password after username (root). It still complains: login incorrect; please try again. Not working.

I then went back to single user mode and tried to edit out the :x: on the root password in the passwd file.

Code:
Code:
 
#vi /a/etc/passwd
root::0:0:Super-User:/:/sbin/sh

verification:
Code:
Code:
 
#grep root /a/etc/passwd /a/etc/shadow
/a/etc/passwd:root::0:0:Super-User:/:/sbin/sh
/a/etc/shadow:root::6445::::::
#

But it still asked for password at login page: login incorrect; please try again. Not working neither.


Hi Hicksd8,

I tried your suggestions with code error return:


Code:
Code:
 
#chroot /a 
usage: chroot rootdir command arg...

I went ahead to see if I change the password anyway:

Code:
Code:
 
#passwd root 
passwd (SYSTEM): password database busy. Try again later. Permission denied.

Not working.

Hi rua,

I tried to find mirrored filesystem in vain. Just what I have tried:

After boot into single user mode, I typed code:

Code:
 
#mkdir /tmp/d0
#mount /dev/dsk/c0t0d0s0 /tmp/d0
 
#mkdir /tmp/d1
#mount /dev/dsk/c0t1d0s0 /tmp/d1
mount: /dev/dsk/c0t1d0s0 or /tmp/d1, no such file or directory.
 
#ls /dev/dsk
c0t0d0s0 c0t0d0s2 c0t0d0s4 c0t0d0s6  c0t2d0s0 c0t2d0s2 c0t2d0s4 c0t2d0s6
c0t0d0s1 c0t0d0s3 c0t0d0s5 c0t0d0s7  c0t2d0s1 c0t2d0s3 c0t2d0s5 c0t2d0s7
 
#mount /dev/dsk/c0t2d0s0 /tmp/d1
mount: /dev/dsk/c0t2d0s0 is already mounted; /tmp/d1 is busy, or the allowble number of mount points has been exceeded.

I just couldn't find the mirrored filesystem.

Thanks for all the replies. Any other suggestions? Josh

Last edited by fromtexas0; 04-20-2012 at 08:16 PM.. Reason: first time try on [code] ... [/code].
# 13  
Old 04-20-2012
That should have been:
Code:
chroot /a passwd root

You might also create a regular (non root) user account and see if you can login with it. Perhaps is there some logic that prevent root login in a graphic environment (which is a poor practice anyway).
Can you switch to non graphic mode and see if you can login from there ?
# 14  
Old 04-21-2012
Hi, Jlliagre,

After boot to single user mode and mount the filesystem to /a, I tried your command and it still spit error as follow:

Code:
 
\
INIT: SINGLE USER MODE
#mount /dev/dsk/c0t0d0s0 /a
#chroot /a passwd root
chroot: No such file or directory
#chroot /a
usage: chroot rootdir command arg...

It's not working.

I also tried to login through command-line mode without success. See below:

Code:
 
sunny10 console login: root
Password:
Login incorrect
Login:


Any more comments?

Thanks,
Josh
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