Recover root password accessing box using Tera Term

Posted on 2003-03-11
Medium Priority
Last Modified: 2012-06-27
We had an Unix administrator leave with out leaving the root password. I need to recover the root on a Sun 2.6 box. Using Tera Term Or HyperTerminal.
I can't find a break key that works. Any suggestions.
Question by:daeakins
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Author Comment

ID: 8111886
New to this site. Need an answer on what is the break sequence for Tera Term or Hyperterminal on NT. Accessing a Sun 2.6 box.
LVL 34

Accepted Solution

PsiCop earned 300 total points
ID: 8112148
Well, you're not going to get in via an IP connection. By default, Solaris rejects attempts to login directly to root from telnet. You'd have to login as another account and then use su - for which you need the root password.

In your situation, I'd down the server, then bring it up with the Solaris 2.6 CD in the CD-ROM drive. Hit STOP-A during the boot sequence, then at the "ok" prompt boot from CD (I think the command is "boot cdrom" - I don't have a machine in front of me to check).

You'll boot to the CD and start the OS install routine. Exit out of it to the desktop environment and mount the root partition of the hard drive to your filesystem using the "mount" command - be sure to mount it ReadWrite, not ReadOnly. Then go into /etc/shadow using ex (or whatever - vi may not work if /usr is not available, ex is almost guaranteed to work) and blank the password for root. Be sure to save the file and verify the root password is  blanked.

Shutdown and reboot to the hard drive and you should be able to login at the console to root. You now have complete control of the system and can establish a new password for root (which you should, of course, do immediately).
LVL 12

Expert Comment

ID: 9237571
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is to:

Accept PsiCop's Comments as answer

Please leave any comments here within the next seven days.


EE Cleanup Volunteer

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Occasionally Windows/Microsoft Updates will fail to update. We have found a code that will delete all temporary files and re-register all dll's related to Windows/Microsoft Updates! This works 99% of the time to get the updates working again! The…
As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question