Password Recovery for root in Solaris
Posted on 2010-11-10
I have Sun Solaris 9 running on a T2000 server.
root password has been changed and I need to do a password recovery.
I have booted to a Solaris 10 CD.
At the OK prompt I typed in "boot cdrom -s"
Then I get in and vi shadow. Remove the encrypted password so the line looks like:
I save it, do a cat shadow to verify it changed. Then I try to reboot with "init 6"
But it asks for the username and password and never lets me reset the password.
I have even done all the above, but instead of "init 6: i do a "init 0", then "boot cdrom -s" and I have tried just "boot -s".
boot -s asks for the root password to perform mainentance., when I boot to cdrom again. first thing I do is check "cat shadow" again, but the encrypted password is there again.
I go ahead and try to do "passwd root" but it errors out with permissions denied.
Any help would be appreciated.