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 |
How to reset root password if root password is gone?
Tell me how to set the path for core file?
How many run levels are there and what are they?
How do you copy files from remote system using ftp?
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?
How do you delete tmp files if file system is full becoz of /tmp dir ?
How to make ip address persistent across reboots?
How can a user increase the number of pseudo-ttys? what is their use?
Tell me how to discover global zone name from local zone?
What are the kinds of servers do u have? What is environment? Is it heterogeneous (mix of linux, solaris, other UNIX)?
How can the output be redirected to some other action process in place showing it in the screen?
Process between Kernel and Shell when a command is executed?