Solved

Lost Admin Password for Solaris

Posted on 2011-03-22
9
447 Views
Last Modified: 2012-05-11
Hello,

I am not sure which version of Solaris I am running but it also has Sun Java 7.0 loaded onto it. I can log into the console with my root logon and password but I loaded Putty on my Windows workstation and it won't take my root logon and password. I enter root and enter the password and it refuses it. I wonder if there is another logon and password I should be using?

This server was given to me so I am trying to figure it out without having to reload it. So, I am curious why my root logon and password will not work when I try to use Putty, I am not sure of the admin url so that I can administor the server via http.

Do you have an idea what I need to do in order to use Putty, and if there is another logon and password I need to use then how can I figure out what may have already been configured?

Thanks,
John
0
Comment
Question by:jhieb
[X]
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
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 37

Expert Comment

by:Neil Russell
ID: 35192899
Logon with root via ssh/telnet is usually restricted, AS IT SHOULD BE!

Creat a normal user that has SU permissions and connect as that user maybe?
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 35192907
Seems that the ssh server (sshd) running on the Solaris box does not allow root login due to
PermitRootLogin no
in /etc/ssh/sshd_config.

Obviously we can't tell you what other accounts would exist on that server, but since you have root access you could either create such an account (see "man useradd") or change the setting in sshd_config to permit root login in the future.

Please remember that you must stop and restert sshd for the new sshd_config setting to become effective.

wmp

0
 
LVL 16

Expert Comment

by:Joseph Gan
ID: 35192928
Putty is on your Windows workstation, Windows dosen't use "root", uses "administrator" or your user id. Ask your Windows administrator to give you an account to logon to Windows, you should be able to use Putty then.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:jhieb
ID: 35193660
Hi Neilsr, I tried to login with SSH/Telnet with Putty but the session still does not accept my logon or password. Thanks for the suggestion.
0
 
LVL 5

Expert Comment

by:xylog
ID: 35193661
From the solaris box use the useradd command to create a new user for yourself. Assign it a password with the passwd command. Now you should be able to connect using putty and the new user account you created. To access root level permissions use the su command.
0
 
LVL 1

Author Closing Comment

by:jhieb
ID: 35193747
This did the trick and I am in as the ROOT account. Thank you.
0
 
LVL 37

Expert Comment

by:Neil Russell
ID: 35193853
Well i can see you have accepted the answer that you feel is right BUT remember the consequenses! You have just enables REMOTE ROOT access to your system. You now have a single password between you and your system being exploited.

Like I said in the first post, ROOT access is denied by default for a reason. Its making your system about as insecure as you can get.

Good luck,


@ganjos
At least read the question and understand the topic before you post drivel :P
We know putty is a windows application!! The questioner SAID he is using it to access a solaris system using his root logon and password using putty from windows!!
0
 
LVL 1

Author Comment

by:jhieb
ID: 35193870
Thanks for the additonal warning, Neilsr. I appreciate it.
0
 
LVL 16

Expert Comment

by:Joseph Gan
ID: 35194118
That why I did not get points, so as you :p
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

729 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