How to reset root password if root password is gone?
Answer Posted / 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 View All Answers
Tell me how to mount the floppy & cd-rom?
What is difference between swap -l & swap -s?
How do you break the root password?
Explain how to view shared memory statistics?
What kind of issues you get?
How can abiword be compiled for solaris using gcc?
Tell me how many types of file system?
How can a user login to solaris?
What are nis daemons?
How can the output be redirected to some other action process in place showing it in the screen?
Explain the difference between swap -l & swap -s?
How can a user login to solaris? What is the login shell?
How to solve the system hang issue. Found that the memory state is free, commands to check and solve the issue?
How can a user increase the number of pseudo-ttys?
How can a user increase the number of pseudo-ttys? what is their use?