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

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
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
    #2  
Old 01-10-2013
hicksd8 hicksd8 is offline Forum Advisor  
Registered User
 
Join Date: Feb 2012
Last Activity: 17 September 2014, 8:31 AM EDT
Location: Cornwall, UK
Posts: 809
Thanks: 41
Thanked 153 Times in 138 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
    #3  
Old 01-11-2013
cerber0 cerber0 is offline
Registered User
 
Join Date: Nov 2008
Last Activity: 17 September 2014, 6:12 PM 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


Code:
root:x:0:0:root:/root:/bin/bash

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


Code:
root::0:0:root:/root:/bin/bash

    #4  
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
    #5  
Old 01-18-2013
os2mac's Avatar
os2mac os2mac is offline
Registered User
 
Join Date: Oct 2012
Last Activity: 5 August 2014, 6:22 PM EDT
Location: as far north as you can go and still get a cable modem.
Posts: 107
Thanks: 8
Thanked 10 Times in 10 Posts
VM?

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 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 03:39 AM.