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.
 


dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,004
Reaction score
684
Credits
5,037
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.
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
3,877
Reaction score
2,618
Credits
28,015

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,004
Reaction score
684
Credits
5,037
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.
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
3,877
Reaction score
2,618
Credits
28,015
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.
 

Fanboi

Well-Known Member
Joined
Apr 16, 2021
Messages
358
Reaction score
270
Credits
4,288
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").
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Top