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

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,


How can a user access a dos-format disk in solaris?

0 Answers  


How do you delete tmp files if file system is full becoz of /tmp dir ?

2 Answers   Satyam, Wipro,


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

2 Answers   Satyam, Wipro,


How can a user increase the number of pseudo-ttys? what is their use?

0 Answers  


how to know which version of solaris is installed? uname –a /etc/release

3 Answers   Satyam, Wipro,


What does ssh?

2 Answers   Satyam, Wipro,


How to view shared memory statistics?

0 Answers  


What kind of issues you get?

0 Answers   Satyam, Wipro,


format command is not working. It is showing all disks, but not going to further step. How to resolve that?

2 Answers   IBM,


In solaris 10 root Disk is 98% full what steps to be taken?

0 Answers   ABC, HCL,


Difference between resource pool and project in containers

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