Need to reset the solaris 5 root password and solaris password was forgotten

Sundaramoorthi E

New Member
Joined
Oct 18, 2021
Messages
1
Reaction score
0
Credits
12
Hi Guys,

Root password was forgotten in sun T5120 and need to reset the root password.

I tried to reset the root password by safe solaris login and tried to delete the encrypted password and it was not able to delete.
 


Solaris 5, is very similar to the Linux method.


Basically login with a CD-Rom, or USB stick, mount the filesystem (i.e. /etc )
Copy the root password string from another system that you DO know the password for.
Replace the password string in the /etc/passwd file.

Unmount. reboot. login.
 
I think somewhere around Solaris 2.61 (after 2.5 or Solaris 5)
They started putting the passwd string in the /etc/shadow file.
So the instructions for Solaris 10, might be slightly different.
I can't believe Solaris 5 is almost 30 years old.
 
I think somewhere around Solaris 2.61 (after 2.5 or Solaris 5)
They started putting the passwd string in the /etc/shadow file.
So the instructions for Solaris 10, might be slightly different.
I can't believe Solaris 5 is almost 30 years old.
Could be, I have no Solaris experience. I just typed in "reset solaris root password" in one of my search engines and pasted the link here. Something OP surely could have done, also strange category to be posting this topic in since Solaris != GNU/Linux.
 
Moved to the off-topic sub-forum. This is not really a Linux question.
 
I know hardly anything about Solaris other than sudo is not the default for admin tasks, loging in as root is (was? been a while).
Anyhoo I just DuckDuckGo'ed (RFC: make "duckduckgo" a verb like "google") if sudo was used and it seems it is.

So, let's use a Linux hack of mine:
Code:
// Either
sudo passwd root

// Or
sudo su
passwd

Once again, sudo shows us the security nightmare it is (yes, yes, you fine-tune it so it's supposedly better, but it ain't tuned at stock install and that is the point, everthing is "ALL").
 


Top