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

how to create zoneusers

2 Answers   Fujitsu,


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 is the cmd used to print default values get by user? Useradd –D

2 Answers   Satyam, Wipro,


What are the comman user problems?

2 Answers   Satyam, Wipro,


How does a solaris cluster work?

0 Answers  






Ip classes, OSI layers,its significance, ?

1 Answers   Satyam, Wipro,


They have user like aa with home dir /export/home/aa. They want to change home dir to /export/home/bb & username remains same. User files in /export/home/aa moved to bb? What do u do?

1 Answers   Satyam, Wipro,


ndd -get /dev/hme0 link-mode

3 Answers   Satyam, Wipro,


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

0 Answers   Satyam, Wipro,


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

0 Answers   IBM, Satyam, Wipro,


Veritas logging file?

1 Answers   Satyam, Wipro,


How to solve the system hang issue.

0 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)