2018-11-28

解决MacBook重置管理员密码的时候输入rm /var/db/.AppleSetupDone后出现

such no file or directory:

开机长按command+R 进入到恢复模式

cd /Volumes

ls -l (This will show all volumes)

cd Macintosh\ HD

cd var/db

ls -la (You should now see a .AppleSetupDone file)

rm .AppleSetupDone

然后,reboot 进入设置管理用户

你可能感兴趣的:(2018-11-28)