Solved

Lost Admin Password for Solaris

Posted on 2011-03-22
9
426 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
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Parsing a file using ksh 10 67
UNiX Script filesystem space usage 19 74
Doing a DR (Disaster Recovery) Test on Red Hat Linux Servers. 2 118
Martian Packets Unix 5 55
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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.:
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.

825 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