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 are the run levels that are used in solaris10?

10 Answers   TCS,


How to configure Veritas Kernel? Daemons in Veritas VM?

2 Answers   Satyam, Wipro,


Process between Kernel and Shell when a command is executed?

2 Answers   Satyam, Wipro,


If / (root) file system is full,How to increase root file system under Solaris volume manager (SVM)?

3 Answers   Banking,


What are nfs daemons?

0 Answers  






How to mount the FLOPPY & CD-ROM?

6 Answers   Zensar,


what are bootloaders in solaris booting? bootblk, ufsboot

3 Answers   Satyam, Wipro,


what is the difference between svm and vxvm

4 Answers   Infosys, Tech Mahindra, VxVM,


what is the main usage of maintaining the system logs in solaris

1 Answers  


how can we know the time of creation of zone in solaris

1 Answers   HCL,


Port no for telnet (23) , ssh(22)?

2 Answers   Satyam, Wipro,


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

0 Answers   Satyam, Wipro,


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)