如果您不经常使用Mac,很容易忘记管理员密码并卡在登录屏幕上。Apple明白这一点,这就是为什么您有多种选择来重置密码并帮助您重新登录的原因。
如果您忘记了Mac管理员密码,本教程中的说明将引导您完成所有可行的重置方法。只需(Just)选择最适合您的方法即可。
但首先,您需要知道重置Mac密码对存储在登录钥匙串中的任何密码的影响。
重置您的Mac 管理员密码(Mac Admin Password)与登录钥匙串(Login Keychain)
您的 Mac 使用称为 Keychain 的内置密码管理系统(password management system called Keychain)来保存应用程序和网站的登录详细信息。问题?
默认情况下,登录钥匙串使用与您的用户帐户密码相同的密码来加密其中存储的数据。不幸的是,这意味着尽管重置了管理员密码,但您将无法访问其内容。
在这种情况下,您必须前往Launchpad > Other > Keychain Access并选择File > New Keychain来设置新的钥匙串。或者,macOS 会自动为您创建一个。以前的钥匙串仍然存在,因此如果您记得旧密码,就可以访问它。
但是,如果您使用iCloud 钥匙串(iCloud Keychain)与其他Apple设备同步密码,您应该能够将所有内容快速同步回新的钥匙串。
(Reset Admin Password)使用 Apple ID在Mac上(Mac Using Apple ID)重置管理员密码
如果您在Mac用户帐户中使用Apple ID ,则只需插入您的(Apple ID)Apple ID凭据即可重置忘记的Mac管理员密码。它速度很快,适用于任何运行 macOS 10.14 Catalina或更高版本的MacBook、i Mac或Mac mini(英特尔或 Apple Silicon )。(Intel or Apple Silicon)以下步骤应该可以帮助您。
1. 在登录屏幕上尽最大努力猜测您的管理员密码。在第三次尝试失败后,选择密码字段下方的使用您的 Apple ID 重置它。(Reset it using your Apple ID)
注意(Note):如果您没有收到要求您重置密码的提示,请在密码字段中查找问号(Question Mark)图标并选择它。
2.填写(Fill)您的Apple ID用户名和密码,然后选择重置密码(Reset Password)。
3. 您将收到有关您当前登录钥匙串的通知(如果它使用与您的管理员帐户相同的密码)。选择确定(OK)。
4. 您的 Mac 将自动启动进入 macOS 恢复(boot into macOS Recovery)。在随后出现的重置密码(Reset Password)助手上,选择忘记所有密码?(Forgot all passwords?)
5. 使用您的管理员帐户旁边的设置密码按钮。(Set Password)
6、新建Mac登录密码,添加密码提示(可选),选择设置密码(Set Password)。
7. 为重置密码(Reset Password)助手中出现的任何其他帐户设置新的用户密码。
8. 选择重新启动(Restart )以正常重新启动您的Mac。或者,选择退出到恢复实用程序(Exit to Recovery Utilities)并选择Apple菜单上的重新启动(Restart)选项。
9. 选择您的管理员用户帐户并输入新密码以登录。
10. 回到桌面区域后,您的Mac可能会提示您重新输入Apple ID密码。如果是,请选择Apple ID Preferences。如果没有,请打开Apple菜单并选择System Preferences > Apple ID。
11. 输入您的Apple ID密码和任何其他帐户详细信息,让一切恢复正常。
重要提示(Important):如果您使用 iCloud钥匙串(Keychain),您的Mac还会要求您输入您拥有的至少一台其他Apple设备(iPhone、iPad 或Mac)的密码。这将帮助您将密码同步到新的登录钥匙串。
(Reset Admin Password)直接通过 macOS 恢复在Mac上(Mac Directly)重置管理员密码
重置 Mac 管理员密码的另一种方法是直接通过macOS恢复中的(Recovery)终端打开(Terminal)重置密码(Reset Password)助手。您可以在以下情况下使用它:
- 您使用尚未使用Apple ID登录的(Apple ID)Intel或Apple Silicon Mac。
- 您在Intel Mac(没有Apple T2 安全芯片(Apple T2 Security Chip))上忘记了您的Apple ID 。
注意:(Note:)如果您在Apple Silicon Mac或内置(Apple Silicon Mac)Apple T2 安全芯片(Apple T2 Security Chip)的 macOS 设备上使用Apple ID ,除非您知道(Apple ID)Apple ID的密码,否则此方法将不起作用。
在 Apple Silicon Mac 上加载 macOS 恢复(Loading macOS Recovery on an Apple Silicon Mac)
1. 关闭你的 Mac。
2. 按住电源(Power)按钮将其重新打开。继续(Keep)按住,直到您看到屏幕上闪烁的加载启动选项消息。(Loading startup options)
3. 在启动(Startup) 选项(Options)屏幕上,选择选项(Options)>继续(Continue)。
在 Intel Mac 上加载 macOS 恢复(Loading macOS Recovery on an Intel Mac)
1. 关闭你的 Mac。
2. 按住Command + R键并按下电源(Power)按钮将其重新打开。
3. 看到Apple标志后松开两个键。
在 macOS 恢复中重置管理员密码(Resetting the Admin Password in macOS Recovery)
1. 在 macOS恢复(Recovery)模式屏幕中,选择菜单栏上的实用程序(Utilities)>终端。(Terminal)
2. 在终端(Terminal)窗口中输入以下命令并按Enter:
重设密码(resetpassword)
3. 在出现的密码重置(Password Reset)窗口中,选择忘记所有密码?(Forgot all passwords?)
4. 选择您的用户帐户旁边的 设置密码。(Set Password)
5. 创建新密码并选择设置密码( Set Password)。
6. 对列表中的任何其他帐户重复此操作。
7. 选择退出到恢复实用程序(Exit to Recovery Utilities)。然后,在Apple菜单上选择重新启动。(Restart)
8.使用新的管理员密码登录(Log)您的Mac 。
(Reset Admin Password)使用另一个管理员帐户(Admin Account)在Mac上(Mac)重置管理员密码
如果您忘记了重置 Mac 的管理员密码,另一种方便的方法是使用另一个管理员帐户。您(或拥有帐户凭据的其他人)必须按照以下步骤操作。
1. 登录备用管理员帐户。
2. 打开Apple菜单并选择系统偏好设置(System Preferences)。
3. 选择用户和组(Users & Groups)。
4. 选择单击(Click the) 锁进行更改(lock to make changes)。
5. 输入帐户的管理员密码,然后选择解锁(Unlock)。
6. 在侧边栏选择您要重置的管理员帐户,然后选择重置密码(Reset password)。
7. 为账户设置新密码。然后,选择更改密码(Change Password)。
8. 注销并使用新密码重新登录到您常用的管理员帐户。
(Reset Admin Password)通过重新安装 macOS在Mac上(Mac)重置管理员密码
如果忘记Mac(Mac)密码后上述方法不起作用,则必须抹掉Mac并重新安装操作系统。但是,除非您有Time Machine或其他形式的备份,否则将导致数据丢失。
此外,如果您使用Apple ID ,由于激活锁(Activation Lock),您必须在抹掉Mac之前或之后输入它。这仅适用于配备Apple T2 安全芯片的(Apple T2 Security Chip)Apple Silicon Mac(Apple Silicon Macs)和Intel Mac(Intel Macs)。
有关全面的分步说明,我们建议您查看我们的重新格式化没有密码的 Mac(reformatting a Mac without a password)指南。但这里是简要的步骤:
1. 重新启动您的Mac电脑并进入 macOS恢复(Recovery)(如上说明)。
2.在 macOS 恢复菜单上选择磁盘工具。(Disk Utility)
3. 在边栏上选择Macintosh HD。然后,选择擦除(Erase)按钮以擦除 Mac 的内部存储。
4. 退出磁盘工具应用程序。
5.在 macOS 恢复菜单上选择重新安装 macOS 。(Reinstall macOS )
6. 在 macOS 安装向导中选择继续(Continue ),然后按照屏幕上的说明重新安装 macOS。
7. 重新安装 macOS 后,您必须将Mac连接到互联网才能激活设备。然后,按照设置助理(Setup Assistant)上的说明设置您的Mac。
如果您有Time Machine备份,您可以选择在设置过程期间或之后恢复您的数据(restore your data during or after the setup procedure)。
(Reset Admin Password)在受 FileVault 保护的Mac上(Mac)重置管理员密码
如果您已使用 FileVault 保护您的 Mac(secured your Mac using FileVault),则可以使用Apple ID或FileVault恢复密钥来重设忘记的密码。确切的方法取决于您第一次激活FileVault时选择的方法。
因此,在登录屏幕上输入任何密码三次。第三次尝试失败后,选择重新启动并显示密码重置选项(Restart and show password reset options)。您的Mac将自行启动进入 macOS恢复。(Recovery)
您现在可以选择输入您的Apple ID或FileVault恢复密钥来解锁 Mac 的内部存储并重置您的管理员密码。
如果密码重置需要FileVault恢复密钥,但您忘记记下它,您别无选择,只能抹掉并重新安装 macOS。
为此,请在 macOS恢复的菜单栏中选择(Recovery)恢复助手(Recovery Assistant )>擦除 Mac(Erase Mac)。在随后出现的擦除 Mac(Erase Mac)助手上,再次选择擦除 Mac(Erase Mac)。除非您有备份,否则您将丢失所有数据。
那应该抹掉你的Mac。然后,一旦它再次启动进入 macOS恢复(Recovery),选择重新安装 macOS。
Mac 管理员密码重置完成
如您所见,使用Apple ID是在(Apple ID)Mac上重置管理员密码的最快方法。如果没有,您应该仍然可以通过macOS恢复中的(Recovery)终端(Terminal)、其他管理员帐户或FileVault恢复密钥重新获得对您帐户的访问权限。
如果上述方法不起作用或您丢失了Filevault恢复密钥,则从头开始擦除和设置Mac是您唯一的办法。(Mac)如果您在自己的Mac上处理与(Mac)激活锁相关的(Activation Lock-related)问题,请联系 Apple 支持(contact Apple Support)寻求帮助。
Forgot Mac Admin Password? Here’s How to Get Back In
If you don’t use your Mac often, it’s easy to forget the admin password аnd get stuck at the logіn screen. Apple understands thаt, which is why you’ve got multiple options tо reset the password and help yoυ get back in.
The instructions in this tutorial will walk you through each feasible way of resetting it if you forgot your Mac admin password. Just pick the method that suits you the best.
But first, you need to know the impact resetting a Mac password will have on any passwords stored within your login keychain.
Resetting Your Mac Admin Password vs. Login Keychain
Your Mac uses a built-in password management system called Keychain to save login details for apps and websites. The problem?
The login keychain, by default, uses the same password as your user account password to encrypt the data stored inside it. Unfortunately, that means you won’t be able to access its contents despite resetting the admin password.
In that case, you must go to Launchpad > Other > Keychain Access and select File > New Keychain to set up a new keychain. Or, macOS will automatically create one for you. The previous keychain will still be around, so you can access it if you remember your old password.
However, if you use iCloud Keychain to sync passwords with other Apple devices, you should be able to sync everything back quickly to the new keychain.
Reset Admin Password on Mac Using Apple ID
If you use an Apple ID with your Mac user account, it’s possible to reset a forgotten Mac admin password simply by inserting your Apple ID credentials. It’s quick and works on any MacBook, iMac, or Mac mini (Intel or Apple Silicon) running macOS 10.14 Catalina or later. The following steps should help you with that.
1. Take your best shot at guessing your admin password at the login screen. After the third failed attempt, select Reset it using your Apple ID underneath the password field.
Note: If you don’t receive a prompt asking you to reset your password, look for a Question Mark icon inside the password field and select it instead.
2. Fill in your Apple ID username and password and select Reset Password.
3. You’ll receive a notification regarding your current login keychain (if it uses the same password as your admin account). Select OK.
4. Your Mac will automatically boot into macOS Recovery. On the Reset Password assistant that then shows up, select Forgot all passwords?
5. Use the Set Password button next to your admin account.
6. Create a new Mac login password, add a password hint (optional), and select Set Password.
7. Set up new user passwords for any other accounts that appear within the Reset Password assistant.
8. Select Restart to reboot your Mac normally. Or, select Exit to Recovery Utilities and select the Restart option on the Apple menu.
9. Pick your admin user account and insert the new password to log in.
10. After getting back into the desktop area, your Mac may prompt you to reinsert your Apple ID password. If it does, select Apple ID Preferences. If not, open the Apple menu and select System Preferences > Apple ID.
11. Enter your Apple ID password and any other account details to get everything working as usual again.
Important: If you use iCloud Keychain, your Mac will also request you to enter the passcode of at least one other Apple device (iPhone, iPad, or Mac) you own. That will help you sync your passwords to a new login keychain.
Reset Admin Password on Mac Directly via macOS Recovery
An alternative way to reset Mac’s admin password involves opening the Reset Password assistant directly via the Terminal in macOS Recovery. You can use it in the following instances:
- You use an Intel or Apple Silicon Mac that hasn’t been signed into with an Apple ID.
- You’ve forgotten your Apple ID on an Intel Mac (without an Apple T2 Security Chip).
Note: If you use an Apple ID on an Apple Silicon Mac or a macOS device with an Apple T2 Security Chip inside, this method will not work unless you know your Apple ID’s password.
Loading macOS Recovery on an Apple Silicon Mac
1. Turn off your Mac.
2. Press and hold the Power button to turn it back on. Keep holding until you see the Loading startup options message flash on the screen.
3. On the Startup Options screen, select Options > Continue.
Loading macOS Recovery on an Intel Mac
1. Shut down your Mac.
2. Hold down the Command + R keys and press the Power button to turn it back on.
3. Release both keys once you see the Apple logo.
Resetting the Admin Password in macOS Recovery
1. In the macOS Recovery mode screen, select Utilities > Terminal on the menu bar.
2. Type the following command into the Terminal window and hit Enter:
resetpassword
3. On the Password Reset window that shows up, select Forgot all passwords?
4. Select Set Password next to your user account.
5. Create a new password and select Set Password.
6. Repeat for any other accounts within the list.
7. Select Exit to Recovery Utilities. Then, select Restart on the Apple menu.
8. Log into your Mac using the new admin password.
Reset Admin Password on Mac With Another Admin Account
Another handy method of resetting a Mac’s admin password if you forgot it involves using another administrator account. You (or someone else with the credentials to the account) must follow the steps below.
1. Sign in to the alternate admin account.
2. Open the Apple menu and select System Preferences.
3. Select Users & Groups.
4. Select Click the lock to make changes.
5. Enter the account’s administrator password and select Unlock.
6. Select the admin account you want to reset on the sidebar and select Reset password.
7. Set up a new password for the account. Then, select Change Password.
8. Log out and log back into your usual admin account using the new password.
Reset Admin Password on Mac by Reinstalling macOS
If the methods above don’t work when you forgot your Mac password, you must erase your Mac and reinstall the operating system. However, unless you had Time Machine or another form of backup in place, that will result in data loss.
Also, if you use an Apple ID, you must enter it before or after erasing your Mac due to Activation Lock. This only applies to Apple Silicon Macs and Intel Macs with the Apple T2 Security Chip.
For comprehensive step-by-step instructions, we recommend checking our reformatting a Mac without a password guide. But here are the steps in brief:
1. Restart your Mac computer and enter macOS Recovery (instructions above).
2. Select Disk Utility on the macOS Recovery menu.
3. Select Macintosh HD on the sidebar. Then, select the Erase button to wipe your Mac’s internal storage.
4. Quit the Disk Utility app.
5. Select Reinstall macOS on the macOS Recovery menu.
6. Select Continue on the macOS installation wizard and work your way through the onscreen instructions to reinstall macOS.
7. After reinstalling macOS, you must connect your Mac to the internet to activate the device. Then, follow the instructions on the Setup Assistant to set up your Mac.
If you have a Time Machine backup, you can choose to restore your data during or after the setup procedure.
Reset Admin Password on a FileVault-Secured Mac
If you’ve secured your Mac using FileVault, you can use an Apple ID or a FileVault recovery key to reset a forgotten password. The exact method depends on what you chose when you first activated FileVault.
So type any password three times at the login screen. After the third failed attempt, select Restart and show password reset options. Your Mac will boot into macOS Recovery on its own.
You’ll now have the option of entering your Apple ID or the FileVault recovery key to unlock Mac’s internal storage and reset your admin password.
If the password reset requires a FileVault recovery key, but you’ve forgotten to note it down, you have no other choice but to erase and reinstall macOS.
To do that, select Recovery Assistant > Erase Mac on the menu bar in macOS Recovery. On the Erase Mac assistant that then shows up, select Erase Mac again. Unless you have a backup, you’ll lose all your data.
That should erase your Mac. Then, once it boots into macOS Recovery again, choose to reinstall macOS.
Mac Admin Password Reset Complete
As you just saw, using an Apple ID is the quickest way to reset an admin password on Mac. If not, you should still be able to regain access to your account via Terminal in macOS Recovery, a different admin account, or a FileVault recovery key.
On the off chance that the methods above don’t work or you’ve lost the Filevault recovery key, erasing and setting up your Mac from scratch is your only recourse. If you’re dealing with Activation Lock-related issues on a Mac you own, contact Apple Support for help.