What should I do if I forget my MacBook power-on password? What to do if I forget my MacBook power-on password? Many MacBook users have encountered the embarrassing situation of forgetting their power-on password. So how should we solve this problem? The editor below will explain to you Two methods are introduced.

Let’s first take a look at the first solution:

Turn on the computer and hold down the Command + S keys during startup to enter Single User Mode, and enter the following code under #root, please pay attention to spaces and case sensitivity:

 fsck -y

 mount –uaw /

 rm / var/db/.AppleSetupDone

After the device restarts, you can see the welcome interface during reinstallation, but the data is not lost. At this time, we need to re-create a new administrator account just like the first installation.

Open System Preferences - Users and Groups in the new administrator account, open the bottom lock, and enter a password. We can enter the password of the new administrator account. Then we will see at least two accounts, namely the new administrator account and the original account. Click on the original account and change the password.

Next is the second method, provided that we still remember the user name:

1. If If you know the short username, you can enter sh /etc/rc in the first method of entering the code, then press the Enter key, then enter the passwd short username and enter the new password twice. Finally, type reboot and press Enter to let the machine restart.

2. If you know the short user name, you can also enter cd /var/db/netinfo and press Enter. Then enter /usr/bin/nicl -raw local.nidb -create /users/short username password and press Enter. This will set the user password to blank. After entering reboot and pressing the Enter key, the machine will restart. Just enter a blank password.

Designed with Internet information Site