Recover Admin Password with Root

Discussion in 'Mac Basics and Help' started by Snipeye, May 18, 2009.

  1. Snipeye macrumors newbie

    Snipeye

    Joined:
    Sep 29, 2008
    #1
    I've had my computer up and running for a while now, and most of the time I need an admin password I use the root account. Last time I tried to use my normal admin account password, it didn't work. I vaguely remember changing it for some reason, and I'm wondering if there's a way to recover what i changed it to using the root account. I'm really interested in what that might be, just because I don't mess around with things like that very often. I already looked through keychain access, no luck there. Help please?
     
  2. JustGretchen macrumors 6502

    Joined:
    Dec 2, 2008
    #2
    boot to your reinstallation disks using disk 1 or to an Apple OS X dvd. Under the utilities menu there is a password reset/change tool.
     
  3. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #3
    When using the root account, open Terminal and type

    passwd [your admin account short name]
     
  4. Snipeye thread starter macrumors newbie

    Snipeye

    Joined:
    Sep 29, 2008
    #4
    I don't want to change the password - I want to recover. I think I changed it for a reason, and if I knew what I changed it to, I could remember.
     
  5. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #5
    That's not possible. If it were, that would be a massive security hole.
     
  6. Snipeye thread starter macrumors newbie

    Snipeye

    Joined:
    Sep 29, 2008
    #6
    i swear there was a terminal command that let displayed all the usernames and their passwords, but the passwords were greyed/starred out. Ring any bells, anybody? Could I maybe un-gray the password?
     
  7. Jethryn Freyman macrumors 68020

    Jethryn Freyman

    Joined:
    Aug 9, 2007
    Location:
    Australia
    #7
    Password hashes are stored at :

    /var/db/shadow/hash/

    You can view them and attempt to crack them with John The Ripper.

    If the account doesn't have Filevault enabled, you can go to ~/Library/Keychains, and try a brute force attack on the keychain (with crowbarKC.)
     
  8. Snipeye thread starter macrumors newbie

    Snipeye

    Joined:
    Sep 29, 2008
    #8
    I guess I"ll try that - where's a good dictionary to try with?
     
  9. Jethryn Freyman macrumors 68020

    Jethryn Freyman

    Joined:
    Aug 9, 2007
    Location:
    Australia
    #9
    Do a search on a torrent site, or download one from www.openwall.com
     
  10. toolbox macrumors 68020

    toolbox

    Joined:
    Oct 6, 2007
    Location:
    Australia (WA)
    #10
    Just be careful when doing using the passwd command. It will screw the keychain. This has happened to be before i was unable to repair the keychain.

    The safest way is to boot of the disk and change the password that way.
     

Share This Page