I wrote about this a while back on my blog, hackaddict, but it was such a popular post I thought I’d give it a revisit. A lot of people buy used Macs, and they often run into the problem of not knowing the admin password, so […]

I wrote about this a while back on my blog, hackaddict, but it was such a popular post I thought I’d give it a revisit. A lot of people buy used Macs, and they often run into the problem of not knowing the admin password, so here is a way to get around not knowing the admin password on Macs.

To reset your OS X password without an OS X CD you need to enter terminal and create a new admin account:

  1. Reboot
  2. Hold apple + s down after you hear the chime.
  3. When you get text prompt enter in these terminal commands to create a brand new admin account (hitting return after each line):
    • mount -uw /
    • rm /var/db/.AppleSetupDone
    • shutdown -h now
  4. After rebooting you should have a brand new admin account. When you login as the new admin you can simply delete the old one and you’re good to go again!
  1. So – it’s just that simple to hack a Mac OS machine if you have physical access? Are passwords basically useless then?

  2. You fail to mention that in the process you delete ALL of your information.

    That is not resetting the OS X password, that is called creating a new account and taking over someone else’s computer with a fresh start. The title of this post should be changed.

    1. Yeah, now I’m f-ed thanks to this post.

    2. Thanks for making the comment-You saved me a lot of hassle.

      It would have helped if it was in the post!

    3. no it dosent since you make a new admin you have acsess to change any other admins password the you go into the other account and delete your temporary one you made

      1. Blabla is right. EW, Tex, and Steve don’t know how to go to accounts page in system preferences to recover the old account.

    4. I did what this post suggested, and ended up with a machine that wanted to go through the original setup process, as it had ‘lost’ all my accounts.

      But this *seems to have* fixed it:

      mount -uw /
      touch /var/db/.AppleSetupDone
      shutdown -h now

      The file .AppleSetupDone should have stuff in it (name, city, eye colour, registration info, etc), but it *seems* to work just as an empty file.

      1. Does that really work?

      2. did you find anything else that could possibly fix this problem?!

        I followed this & I still can’t Log into my Mac with my own Name & Password which is really weird!

        I don’t have my Mac original CD so I guess I’m kinda stuck, huh!

      3. I have a MacBook & I went inside my settings & changed all users back to admin name & password & shut off my Labtop; after I powered it up again, after I typed in the admin name(my name & last name), I punch in my password & than enter; it doesn’t work & wont let me pass that window!!!; I tried ■mount -uw /
        ■rm /var/db/.AppleSetupDone
        ■shutdown -h now
        than powered it up again & now all I get is Black & Grey window!; So I tried your instructions(Above)(mount -uw /
        touch /var/db/.AppleSetupDone
        shutdown -h now); Now I’m back where I started as I can’t pass my password window again!!!

        Anyone know what to do as I would hate to take it into an actual Apple Store as I would hate to pay $$$ for something I can fix myself.

        HELP PLEASE!!!

    5. YUH TIGHT

  3. Yeah this is a bad idea. Sorry, but removing that file will just trick OS X into thinking its the first time its been powered up, and take you through registration.

    So if you absolutely need to reset your password without an Apple CD available, you’re better doing this.

    1. its not working

  4. Does this work if a firmware password is enabled? Cuz otherwise it’s a little disappointing to think it would be that easy to snag a computer and wipe all of its data, even if the owner, thinking he’s being all security-conscious, has bothered to enable a firmware password…

  5. actualy no it does not delete the user account to do that you would have to do this

    rm -R /Users/Username

    The command simply deletes the prefs for the apple setup assistant and it could be another way to regain access should you not have your Install DVD. After running the command and rebooting youll be brought to the Apple Setup Assistant where it will allow you to create another admin user which in turn allows you to enable the root user and then regain access to your files.

    Resetting a firmware password is as easy as changing the amount of ram in the machine and them zapping pram, that takes care of any firmware passwords.

  6. [...] Reset OS X Password Without an OS X CD: “ [...]

  7. >rm -R /Users/Username

    That removes the users home directory. It doesn’t actually remove the account from the user list.

  8. If you’re already going into single user mode, do it the right way

  9. [...] Reset OS X Password Without an OS X CD | The Apple Blog: “Reset OS X Password Without an OS X CD” [...]

  10. [...] Reset OS X Password Without an OS X CD. (0 votes, average: 0 out of 5)You need to be a registered member to rate this post.  Loading … [...]


Comments have been disabled for this post