Do You Remember Your Password?

In the early days of OS X, a lost password was a significant issue. Before the introduction of the Mirrored Door Drive Power Mac and machines shipping with OS X as the default boot system, should you forget your password you had significant problems. When Macs first shipped with OS X as the default boot volume, Apple added to the install media an application that would allow you to change a user’s password.

With the launch of Lion, we are faced with a similar issue. Lion machines come with no physical media. All units with Lion on them are configured with a recovery partition on the hard drive that includes few options. If you are having an issue with your Mac, you can use this partition to boot the unit and launch Disk Utility, the network-based installer, Safari and a few other options. Missing from the recovery boot is the password reset utility.

So if you forget your admin password, how do you change it? In all versions of OS X once a User has been created, a file called .AppleSetupDone appears and is located in /var/db. If you boot the machine to single user mode by holding down command key and the letter ‘S’, you can mount the file system and remove this file.

Power the unit holding down command key and ‘S’
type mount -uw /
Change directory, cd /var/db
Remove the file, rm .AppleSetupdone
Exit single by either typing exit or restart with reboot.

When the system restarts you will run through the entire setup as if the unit was brand new. Creating a new user account will give you access to the machine as an administrator.

After creating this new user account, you will be able to open System Preferences and select Groups and Users. Then, after unlocking the the Preference Pane, select the User account you wish to change the password for and select Reset Password. As always, when you change the password for a User, whether it be with the Password Utility from install media or via this route, make sure you rebuild the keychain. You will have to authenticate for each service as you launch it until the new password is in your new keychain.

Similar Posts

  • Making a Bootable Lion Installer

    Unlike its predecessors, Lion is primarily a download-only version of Mac OS. You can purchase a preloaded flash drive from Apple, but it’s…

  • Migration and the Newest MacBooks

    I really liked the way the new MacBooks looked as soon as I saw them, and definitely like the performance upgrades. The other…

  • Lingering Data

    Wondering if deleted data can be recovered is valid to be mindful of (but of course, you’re backing up, right?), though not necessarily…

  • Do I Need Malware Protection?

    I occasionally get customers who say their systems are running very slowly. They may be brand new or a couple of years old,…

  • Backing Up vs Data Recovery Costs

    One of the toughest things a technician has to do is tell customers that their hard drive has failed and recovering the data will likely cost thousands of dollars. A Small Dog customer brought in her 24-inch iMac earlier this month because it would not start up. It was on the bench and diagnosed as a failed hard drive a few hours later, and we contacted her with a few options: replace the hard drive under warranty and return the failed drive to Apple, or send the drive to DriveSavers for professional recovery.

    DriveSavers is widely acknowledged as the most capable and best-equipped data recovery firm in the world, and our customer was happy to receive an external hard drive with 100% of her data mere days after sending in the toasted one. She was not happy about the bill, though, which was more than the cost of her computer!

    We spoke at length on the phone about how all hard drives fail eventually and how she needs to have a backup system in place. She clearly understood what I was saying, and I made it clear that our conversation was not really about sales but about her protection. No backup drive was purchased.

    Three weeks later, the warranty hard drive replacement has failed again. She didn’t back it up and has lost three weeks of work and simply cannot afford the pricey recovery again.

    David Lerner, an owner of the preeminent New York City Apple Specialist and repair shop Tekserve, has in his email signature “May you have 1,000 backups and never need one.” It’s a mantra we all should take seriously.

    This is just one more sad story about 100% preventable data loss. Do yourself a favor and get a Time Capsule, an external drive, even email important documents to yourself or stash them on your iDisk. A $200 Time Capsule is much cheaper than a $2200 data recovery!

    Do yourself a favor… (be sure to click the green links on the product page to view all specials)
    Time Capsule 500GB from $199.99
    Time Capsule 1TB from $349.99