To Recover Root Password

This entry was posted in Unix and tagged on June 17, 2012, by

To recover the root password in Solaris we have to follow the following steps.

1. Boot the system in Single user mode using cd

# ok boot cdrom -s

This command will take into single user mode.

2. Mount the root file system on /a , where /a is temporary mount point available when you boot from cdrom.

# mount /dev/dsk/c0t0d0s0 /a

3. Set your terminal type, so we can use full editor.

# TERM=Sun;

# export=TERM

4. Next thing is to remove the encryted password from the /etc/shadow file.

# vi /a/etc/shadow

Remove the encrypted password, save and quit

# cd /

5. Unmount the temporary file system

# unmount /a

# init 6

Login in to the termainal by just giving the username ‘root’

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright 2017 ©Aceadmins. All rights reserved.