Solved

Lost Admin Password for Solaris

Posted on 2011-03-22
9
418 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
  • 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now