lost passwd of root

Hello all,

Sorry if I'm posting this on the wrong group.

I have a solaris 10 with raid of / (volume manager-mirror)

I lost the passwd of root.

Then I did :

# boot cdrom -s

# mount /dev/dsk/c0t0d0s0 /tmp/a

# cd /tmp/a/etc

# cp shadow shadow.bkp

# vi shadow (chaged de passwd of root for nothing)

# umount /tmp/a

# reboot

Problem : The system not reboot . It is stopped on the hostname.

I get ping the host, but I dont get telnet for the server.

I returned the file shadow.bkp, but It didnt resolve my problem.

I remembered de passwd of root, I have the original file shadow, but the server not finish the boot .

What must I do ?

Thanks in advance,

Vincia

[778 byte] By [vinicia] at [2007-11-25 22:54:07]
# 1

Did u try doing this instead...?

1)get a copy of Solaris V? CD1

2)boot cdrom -s

3)mount /dev/dsk/c0t0d0s0 /a

4) TERM=sun;export TERM

5)vi /a/etc/shadow/

use vi to del the passwd for root then

save shadow in vi by :wq!

6)cd /

7)umount /a

8)cd /sbin

9) init 6

login as root, open terminal and change ur passwd and reset. Done

its works for Solaris 9 x86 also... (,")

RajBoy at 2007-7-5 17:09:30 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...