Solaris root password recovery

Go to the OK Prompt – by pressing Stop +A . Put the 1st Cd for soalris in the cdrom · At OK prompt give the command

# boot cdrom -s

Now mount the boot device onto /a ( To check boot device you can use df command)

#mount /dev/dsk/c0t0d0s0 /a

Now open the password file and remove the password entry i.e. the second field
root:$1$NYDu1c8p$Mdm2n6IPb9k14pP2s2FXZ.:13063:0:99999:7:::

Now unmount the /a mount point #umount /a

Reboot the server in single mode #ok boot -s

Give a new password for root: #passwd
New Password:
Verify Password:

This will reset the password for root and you will be able to login to the box using this password.

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: