Recover root password | Unix Linux Forums | Solaris

  Go Back    

Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Recover root password


Closed Thread    
Thread Tools Search this Thread Display Modes
Old 01-09-2013
vijaykrishna vijaykrishna is offline
Registered User
Join Date: Feb 2009
Last Activity: 28 April 2013, 9:22 PM EDT
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Recover root password

How can I recover root password

1) I am running Solaris 10 (X86) through VMware for practicing.

2) I was practicing root password recovery and deleted the password in /etc/shadow file.

3) Neither cant login the to the CLI nor Console

4) Selected the Soalris X86 failsafe in menu.. but not accepting to change the password.
Sponsored Links
Old 01-10-2013
hicksd8 hicksd8 is online now Forum Advisor  
Registered User
Join Date: Feb 2012
Last Activity: 3 March 2015, 1:27 PM EST
Location: Cornwall, UK
Posts: 903
Thanks: 58
Thanked 186 Times in 163 Posts
You edited /etc/shadow. That is normal to remove the root password, however, you need to check again the state that you have left this file in.

Boot from cdrom and check again /etc/shadow. Ensure that the root user information is the first line of the file. If you have accidentally inserted a blank line, or any other character, at the beginning of the file, that will cause what you are seeing.

Post back any results.
Sponsored Links
Old 01-11-2013
cerber0 cerber0 is offline
Registered User
Join Date: Nov 2008
Last Activity: 2 March 2015, 2:45 AM EST
Location: Mexico DF
Posts: 44
Thanks: 0
Thanked 5 Times in 5 Posts
I think that you do not need delete info in /etc/shadow

you need delete the "x" character in the /etc/passwd


the "x" indicate that the user have password, you need delete this "x"


Old 01-17-2013
prashant2507198 prashant2507198 is offline
Registered User
Join Date: May 2010
Last Activity: 25 October 2013, 5:03 AM EDT
Posts: 46
Thanks: 1
Thanked 1 Time in 1 Post
Did you try booting from cd rom and getting login at fail safe mode to change the password?
Sponsored Links
Old 01-18-2013
os2mac's Avatar
os2mac os2mac is offline
Registered User
Join Date: Oct 2012
Last Activity: 2 March 2015, 6:25 AM EST
Location: as far north as you can go and still get a cable modem.
Posts: 114
Thanks: 9
Thanked 11 Times in 11 Posts

mount the ISO of the install media, change the boot order so that the CDROM is hit first and then follow the prompts to reset the password DON'T reinstall the OS.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to recover root password in AIX ? mohammedmostafa AIX 3 08-29-2011 10:43 PM
root password on aix lost, how to recover prpkrk UNIX for Dummies Questions & Answers 1 08-16-2011 10:40 AM
Need to recover 'root' password abir Solaris 7 02-24-2009 04:34 AM
How to recover root password durgaprasadr13 Solaris 2 10-14-2008 03:23 AM
Recover root password nitinkgoud Solaris 1 07-18-2006 06:01 PM

All times are GMT -4. The time now is 02:46 PM.