How to reset root password if root password is gone?



How to reset root password if root password is gone?..

Answer / 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

More Solaris General Interview Questions

What is VTS

3 Answers   IBM, TCS,


In solaris RAID half of replicas fails Suppose out of 6 replica 4 got failed -> what will be the impact if system will not come up & if system will not come up how to fix this issue.

1 Answers  


What causes the rpc.ttdbserverd process to be cpu bound?

1 Answers  


how to set default runlevel in solaris.How to set the default Runlevel as INIT-2.

5 Answers   Microland,


how to create 100 users at a time in solaris?

6 Answers   Tech Mahindra,


How do you remove a swap space?

1 Answers  


Root mirroring in SVM, in Veritas ?

4 Answers   HP, IBM, Satyam, Wipro,


What are the raid levels in solaris?

1 Answers  


How to login to a remote host with solaris secure shell?

1 Answers  


Explain how to view shared memory statistics?

1 Answers  


How to bring New LUN under veritas , create f/s on it ?

2 Answers   Satyam, Wipro,


How does a solaris cluster work?

1 Answers  


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)