跳转到主内容
加入维修社区 - 创建账户

此翻译由机器生成,尚未经过人工审核。 会说这种语言吗? 查看评论

如何重置 Mac 密码

    1. 如何重置 Mac 密码, 在单用户模式下启动 Mac: 步骤 1 中的图像 1,1
      • 关闭你的 Mac。

      • 按住 Command + S 键,同时按压电源按钮以开启你的 Mac。

      • 最好在屏幕亮起或听到启动提示音之前就开始按住按键。如果你看到了 Apple 标志,则需要关机并重新进行此步骤。在配备 T2 芯片的 Mac 上,电脑一开启就会始终显示 Apple 标志。

      • 你应该会看到一个带有白色文本的黑色屏幕。

      添加评论

    2. 如何重置 Mac 密码, 将根设备挂载为读写模式: 步骤 2 中的图像 1,1
      • 当文本停止滚动时,你应该会在底部看到一行显示为“localhost:/ root#”的文本。如果你没有看到“localhost:/ root#”,请按压回车键。

      • 输入“mount -uw”

      • 屏幕上会出现更多文本。当你在底部再次看到“localhost:/ root#”时,请继续执行下一个步骤。

      添加评论

    3. 如何重置 Mac 密码, 删除 .AppleSetupDone 文件: 步骤 3 中的图像 1,1
      • 输入 "rm /var/db/.AppleSetupDone" 并按压 Enter/Return 键

      • 注意区分大小写!

      • rm 和 / 之间必须有一个空格,否则你会收到“没有那个文件或目录”(no such file or directory) 的错误提示

      • 如果启动磁盘启用了 FileVault,此方法将无法生效。

      询问修复机器人

      添加评论

    4. 如何重置 Mac 密码, 覆盖 /var/db/.AppleSetupDone 的 root/wheel 权限: 步骤 4 中的图像 1,1
      • 如果你收到一条显示为“override r------- root/wheel for /var/db/.AppleSetupDone?”的消息,输入“y”并按压回车键。

      • 你可能会收到一条错误消息,显示为“rm: /var/db/.AppleSetupDone: read-only file system”。

      • 如果你没有看到显示为“override r------- root/wheel for /var/db/.AppleSetupDone?”的消息,请继续执行下一个步骤。

      添加评论

    5. 如何重置 Mac 密码, 重启电脑: 步骤 5 中的图像 1,1
      • 输入“reboot”并按压回车键。

      询问修复机器人

      添加评论

    6. 如何重置 Mac 密码, 设置你的 Mac: 步骤 6 中的图像 1,2 如何重置 Mac 密码, 设置你的 Mac: 步骤 6 中的图像 2,2
      • 你的 Mac 现在将重启进入“设置助理”。你现在可以设置你的 Mac 了。

      添加评论

    7. 如何重置 Mac 密码, 恭喜: 步骤 7 中的图像 1,2 如何重置 Mac 密码, 恭喜: 步骤 7 中的图像 2,2
      • 你已成功创建了一个拥有完全管理员权限的新用户账户。在此之前创建的所有用户账户均不受影响。

      询问修复机器人

      添加评论

结论

现在,你已成功在 Mac 上创建了一个新的管理员帐户。

取消:我没有完成这个指南。

26等其他人完成本指南。

Elijah

于12/16/18注册

1,436 声望

创作了2篇指南

11指南评论

What are the steps to overcome the error?

“You may get an error that says, rm: /var/db/.AppleSetupDone: read-only file system.”

dhinostroza - 回复 分享

This error can be caused because FileVault is enabled or that there was some random error. Try running the same commands in Terminal in the macOS recovery partition and see if that works. This error may also occur on a Mac with a T2 chip. If FileVault is enabled, you will have to erase the hard drive/SSD and reinstall macOS if you forgot your password.

Elijah - 回复 分享

i get no such file or directory why ???

Mohamed Barnoussi - 回复 分享

El nuevo usuario administrador que se crea ¿de dónde toma el nombre “Admin” que es el nombre del nuevo usuario administrador?

Horacio Gáñez

Harok Hga - 回复 分享

: /var/db/.AppleSetupDone: read-only file system.",

you have to allow write access to the filesystem,

but only after checking for errors.

On my old MacBookPro, it's written in the system messages:

/sbin/fsck -fy

/sbin/mount -uw /

rm /var/db/.AppleSetupDone

Afterwards, it worked as described

Walter Bastanier - 回复 分享

添加评论

浏览统计数据:

过去 24 小时: 31

过去 7 天: 185

过去 30 天: 791

总计 59,135