Boot into Single User Mode and remove a setup file
Restart the Mac holding down the Command+S keys, this will take you into Single User Mode and it’s Terminal interface
Youl need to check the filesystem first:
fsck -fy
Next, you must mount the root drive as writeable so that changes will save:
mount -uw /
Now, type the following command exactly, followed by the enter key: rm /var/db/.applesetupdone
reset forgot mac password
After removing the applesetupdone file, you need to reboot, type ‘reboot’ and hit enter |