info home Info Homegeneral Generalwindows Windowsunix linux Linux/Unixdebian Debianmac os Mac OSapache Apachenginx Nginxiphone iPhone/iPod Touch

Tags

How to reset admin password on Mac OS X

mac password reset

If you have just bought a MacBook or iMac from a garage sale or inherited one from a family member and realized that they didn't give you the admin password, or you're just forgetful, this is how you reset the password.

Using a Mac OS install disk

mac os install disk
  1. Turn on your Mac and boot from the install CD.
  2. If you're using Mac OS X 10.6, navigate to
    Utilities » Password Reset
    and create a new admin password.
  3. If you're using Mac OS X 10.4 or 10.5, navigate to
    Utilities » Reset Password
    and create a new admin password.
  4. If you're using Mac OS X 10.3, navigate to
    Installer » Password
    and create a new admin password.
apple keyboard

Without a Mac OS install disk

If you don't have an installer CD, it's still easy to reset the admin password.

  1. Turn on your Mac and boot in single-user mode by pressing Apple+S.
  2. Once it boots into single-user mode, you have to mount the hard disk in write mode, delete the .AppleSetupDone file under /var/db/ (note the dot before the filename because it's hidden) and reboot. Prior to this, we'll check the hard disk consistency with fsck So, type this:
    /sbin/fsck -y
    /sbin/mount -uaw
    rm /var/db/.AppleSetupDone
    reboot
    
  3. Let me know how it goes. You can always contact me on email.

Last Updated on 14 December 2010

If you liked this article, subscribe to our Feed, follow us on Twitter (@aruljohn) and/or join our Facebook Page.