Forgot root password in Solaris 8

We have a Solaris 8 server in the office. Nobody seems to know the password to any account on the OS. If I want to login as root, but don't know the password, what can I do? I am hoping that I don't have to re-install the whole OS! Thanks.
LVL 9
yongsingAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

yuzhCommented:
Have a look at the instructions in the following page, remove the password and reset the
password:

http:Q_20782037.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
yongsingAuthor Commented:
I followed the instruction and booted from the installation disk. It did not enter TERM=... . I just used vi to remove the entire line containing root: . When I rebooted the OS, it still asked me for a password. What have I done wrong?
0
yongsingAuthor Commented:
This is what I did:

fsck -y /dev/dsk/c0t0d0s0
mount /dev/dsk/c0t0d0s0 /a
cd /a/etc
chmod u+w shadow
vi shadow
(remove line starting with root:...)
cd /
umount a
init 6

Do I remove entire line starting with root: ?
0
yongsingAuthor Commented:
I know what's wrong. I should not delete the whole line. I just need to remove the encrpted string, so what I have left is:

root::

Now I managed to login to the system.
0
OtetelisanuCommented:
Example :


With passwd :

root:cGXAMpkZ7tsCA:12440::::::

No passwd :

root::12440::::::
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.