How to reset root password if root password is gone?

Answer Posted / kishore devkate

Boot the server from cdrom steps below.
at the Ok Promt
1) Ok>boot cdrom -s :to boot in the single user mode

you will get #(has) prompt
#

2) mount the root file system on /a directory
i,e
#mount /dev/dsk/c0t0d0s0 /a

3) remove the encrypted passwd from the /a/etc/shadow file
then save the file
i,e
#vi /a/etc/shadow
remove the root user encrypted passwd
:wq!

4) reboot the server
i,e

#init 6

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can a user boot in solaris as root if the password is non functional?

649


Explain the vmstat output?

650


Explain the difference between sc> and lom>?

621


Explain the types of installations in solaris

668


How can a user login to another system on his network remotely?

652






How can threads be created in a solaris environment?

652


What is the login shell?

716


how to add Kernel patch in all systems at a time?

2704


Explain how to kill a process.

670


How to view shared memory statistics?

639


Explain what is multi homed system?

631


How can searches be refined?

654


how to add your own run control script in server?

643


1.Have you used vxboot ? 2.Minimum requirement for mirror volume to created ?

1814


How can a user login to solaris? What is the login shell?

644