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 multihomed system?

2 Answers   Satyam, Wipro,


What are the monitoring tools do use ?

3 Answers   Reddy Labs, Satyam, Wipro,


Importing & deporting diskgroup?

1 Answers   Satyam, Wipro,


Explain crashdumps & core files?

3 Answers   Satyam, Wipro,


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

0 Answers  






How to create diskgroup in veritas?

2 Answers   Satyam, Wipro,


Performace degradations in NFSv4 when upgraded from NFSv3? problems with NFS v4?

0 Answers   IBM, Satyam, Wipro,


How to make ip address persistent across reboots?

1 Answers   Satyam, Wipro,


How to use disk quotas in solaris (command mode) ? what is the procedure for how to allocate particular space to particular user

2 Answers   HP,


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

1 Answers  


how would we know a file system exists on a slice when it is unmounted from its mount point. please anyone help me out.

6 Answers  


Explain the more details of vmstat output?

2 Answers   IBM,


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)