Unix/Linux 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 Linux or Unix Question    
Thread Tools Search this Thread Display Modes
Old Unix and Linux 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 Linux

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 Unix and Linux 01-10-2013
hicksd8 hicksd8 is offline Forum Advisor  
Registered User
Join Date: Feb 2012
Last Activity: 26 May 2016, 4:31 PM EDT
Location: Devon, UK
Posts: 1,189
Thanks: 105
Thanked 260 Times in 228 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 Unix and Linux 01-11-2013
cerber0 cerber0 is offline
Registered User
Join Date: Nov 2008
Last Activity: 21 May 2016, 12:24 AM EDT
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 Unix and Linux 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 Unix and Linux 01-18-2013
os2mac's Unix or Linux Image
os2mac os2mac is offline
Registered User
Join Date: Oct 2012
Last Activity: 5 May 2016, 8:36 PM EDT
Location: Anchorage, AK
Posts: 189
Thanks: 18
Thanked 16 Times in 16 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 Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 09:43 PM
root password on aix lost, how to recover prpkrk UNIX for Dummies Questions & Answers 1 08-16-2011 09:40 AM
Need to recover 'root' password abir Solaris 7 02-24-2009 03:34 AM
How to recover root password durgaprasadr13 Solaris 2 10-14-2008 02:23 AM
Recover root password nitinkgoud Solaris 1 07-18-2006 05:01 PM

All times are GMT -4. The time now is 12:34 AM.