I forgot my local password the day I unboxed my MacBook

August 22, 2025

I unboxed my MacBook on August 22, 2025.

On day one, I ran into an embarrassing problem: I had just set the password for my local account and had already forgotten it.

I used to associate forgotten passwords with accounts I had not used in ages. There I was on the first day with a new computer, stuck at the login screen.

I eventually entered Recovery, used resetpassword to reset my local password, and logged back in. The first command I learned on unboxing day was a password recovery command. I wanted to record the experience and untangle the relationship between local accounts, Apple Accounts, and offline use.

You can create just a local account during initial setup

One question I had when setting up the computer was whether I could create a local account, skip signing in to an Apple Account, and use the Mac offline later.

Yes. The local Mac account lets you log in, unlock the computer, and authorize administrator operations. The Apple Account is for services such as iCloud and the App Store. They are separate. You can skip Apple Account sign-in during setup and sign in later in System Settings when you need those services. Apple’s account setup guide explicitly says you can sign in after initial setup.

Once required activation and initial setup are complete, you can use local files, downloaded documents, and software that supports offline operation without an internet connection. Device activation or parts of Setup Assistant may require the internet. Being able to use the Mac offline later is different from being able to keep it offline from the moment you unbox it. MacBook setup guide

The password I forgot was the login password I had set when creating the local account.

Enter Recovery after forgetting the password

I used the recovery system included with macOS. Alongside password recovery tools, it provides options such as reinstalling macOS and using Disk Utility.

How to enter Recovery depends on the chip:

  • Mac with Apple silicon, such as an M-series chip: shut it down, then hold the power or Touch ID button until startup options appear. Select Options and click Continue.
  • Intel Mac: immediately after turning it on, hold Command ⌘ + R until the Apple logo or a spinning globe appears.

Apple’s Recovery instructions cover both methods.

If you are asked to select a user whose password you know and have forgotten all user passwords, click “Forgot all passwords?” and follow the prompts. You may need a recovery key or verification through the associated Apple Account. If you set a new password during that process, you can restart and log in directly. Password recovery instructions

Run resetpassword in Recovery

The command I used was:

resetpassword

All lowercase, without a space.

In the menu bar at the top of Recovery, choose Utilities → Terminal. Type the command and press Return to open the graphical password reset window. Follow the verification prompts, select the account, set a new password, and restart.

resetpassword opens the reset utility. The remaining steps take place in its window. Apple’s official procedure lists this command as well.

After resetting it, I successfully logged in with the new password and could finally get on with using the computer.

What else matters when resetting the password?

The reset worked on my new computer, but access recovery depends on FileVault and the verification methods available for the device. Its being brand new does not decide the outcome.

Save the FileVault recovery key separately. If you use only a local account, you can choose to create a recovery key when enabling FileVault, without using iCloud recovery. If you forget the password, lose the recovery key, and have no other recovery method, your original files may be unrecoverable. resetpassword cannot decrypt that data for you. FileVault guide

Resetting the login password may leave the old keychain locked. If you do not know its old password, saved passwords and other items in it may be inaccessible. The system may create a new, empty keychain. Keychain guide

If recovery asks for an internet connection, follow the prompts. Some configurations require it. Also, “Erase Mac” deletes accounts and data, unlike an ordinary password reset. Recovery options

What I remember most about unboxing the Mac is forgetting the password as soon as I had set it, then getting back in through Recovery. Next time I set up a new computer, I will make sure I remember the login password and store the recovery key safely when enabling FileVault.

I wrote up the subsequent development environment setup separately in Mac development environment setup notes, including Podman Desktop, VS Code Dev Containers, and instructions for Compose and Kubernetes.

I recorded the unboxing experience on August 22, 2025, and added the operating instructions on November 11, 2026. The exact interface and verification requirements depend on your macOS version and device settings.

© 2025 borui. All rights reserved. This content may be freely reproduced, displayed, modified, or distributed with proper attribution to borui and a link to the article: borui (2025-08-22). I forgot my local password the day I unboxed my MacBook. https://caiborui.com/blog/2025-08-22-zh-macbook-unboxing-local-account-password-reset-entrans

@misc{borui2025-f55cb680,
  author = {borui},
  title = {{I forgot my local password the day I unboxed my MacBook}},
  year = {2025},
  publisher = {borui's blog},
  url = {https://caiborui.com/blog/2025-08-22-zh-macbook-unboxing-local-account-password-reset-entrans}
}