破解mac密码

开机启动时按住command+s 进入单用户模式下

在shell中输入以下命令

# 单用户下跟挂载点默认为读 让它拥有写功能
root# mount -aw
# 设置完成标志文件 进入桌面时如果没有将启动系统设置程序从而绕过登录界面
root# rm -f /var/db/.AppleSetupDown
#重启
root# reboot

重启后会进入系统设置界面 重新创建个管理员和登录新的apple id 

root# passwd zhangsan
Changing password for user zhangsan.
New password: 
Retype new password: 
passwd: all authentication tokens updated successfully.

注销当前用户登录老用户

# -r删除用户时同时删除家目录 lisi为新用户
root# userdel -r lisi

猜你喜欢

转载自blog.csdn.net/nailsoul/article/details/80860457