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

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

1720


How can a user access a dos-format disk in solaris?

558


List out a few performance monitoring tools.

564


Tell me how to set the path for core file?

552


How can a user increase the number of pseudo-ttys?

583






How can a user increase the number of pseudo-ttys? what is their use?

549


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

555


Suppose I have 20 gb free space in my file system but my inode size full. How will I increase or how will I fix this issue?

599


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

575


How many run levels are there and what are they?

523


Explain what is multi homed system?

554


What is the login shell?

617


Tell me how many types of file system?

664


How can the user in solaris check the status of processes?

542


environment? Is it heterogeneous (mix of linux, solaris,other UNIX)?

1757