Power on COMMAND + S key combination to enter single user mode
Mac OS 10.10
Enter after #root >
1./sbin/fsck-y Detection Disk
2./sbin/mount-uaw loading file system (read/write) get read and Write permissions
3, rm/var/db/. Applesetupdone Delete Account Configuration
4. Reboot restart
After restarting, reset an account to enter the system
After entering the system, go to account management and reset the password of the original account.
Mac OS 10.9
If there is no #root > only #, then follow the prompts
1./sbin/fsck-fy Detection Disk
2./sbin/mount-uw loading file system (read/write) get read and Write permissions
3, rm/var/db/. Applesetupdone Delete Account Configuration
4. Reboot restart
After restarting, reset an account to enter the system
After entering the system, go to account management and reset the password of the original account.
This article is from the "Shuming Flying Growth Station" blog, please make sure to keep this source http://anyue007.blog.51cto.com/3113658/1675089
MAC OS password forgot reset method