Posts Tagged ‘reset’

Reset root password on linux red hat vmware

I forgot my root password on my linux vmware. Here are the steps that I do in order to reset it.

  1. Press any key to go to the menu : rhat4-18-2008-11.49.25 PM.gif Read the rest of this entry »

Reset Root Password on Solaris

In order to reset root password on Solaris box, you would need to do the following :

  1. Go to OK Prompt by:
  2. <stop> + <a>

    or

    # init 0

  3. Once you got the OK prompt, boot into single user mode:
  4. OK> boot cdrom -s

  5. Mount the root directory, On a typical system, it’s probably c0t0d0s0 or c0t0d0s1:
  6. # mount /dev/dsk/c0t0d0s1 /

  7. Make a copy of /etc/shadow.
  8. # cp /etc/shadow /etc/shadow.backupcopy

  9. Edit /etc/shadow file
  10. # vi /etc/shadow

    Your /etc/shadow should look like this:
    root:<password>::877667

  11. Delete the password of the root user (Leave the second field empty, dont change anything else):
  12. root:<password>::877667

    edit to

    root:::877667

  13. Reboot the box
  14. Login to root account with no password.
Related Posts with Thumbnails
Search
Calendar
July 2010
M T W T F S S
« Jun    
 1234
567891011
12131415161718
19202122232425
262728293031  
Daisypath Anniversary tickers
Categories
Subscribe

Enter your email address:

Delivered by FeedBurner

Archives
My 2010 Wish List
  • Nikon D300s
  • Nikon 16-85mm VR
  • iPhone 3GS
  • New Handbag
  • House
  • New Windows laptop
  • New Car
  • Vacation with hubby
Counter
Pagerank
Alexa