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

Explain the difference between sc> and lom>?

0 Answers  


dif. b/w group and netgroup?

2 Answers   Satyam, Wipro,


Hardware and software revision information ? showrev

3 Answers   Satyam, Wipro,


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

0 Answers   Wipro,


How do you connect to remote machines? I said using secure crt using ssh.

1 Answers   Satyam, Wipro,






Discuss the two modes of the vi editor in solaris.

0 Answers  


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

0 Answers  


How do you copy files from remote system using ftp?

0 Answers  


What is difference between swap -l & swap -s?

0 Answers  


Explain the difference between swap -l & swap -s?

0 Answers  


how many zones can be installed in server which has 4 processors?

1 Answers   Oracle,


in a global zone we are created a zone. how can we know whether it is a sparse root model or whole root model.

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