Recovering Lost Password

The MacStudio has only one account on it, and that is of course an admin account. The password to this account is lost. The MacStudio has an association with my AppleID I log into developer.apple.com with. To recover, this procedure was followed:

  1. The recovery mode was entered by holding down the power key for 15 seconds.

  2. In the options that appeared the "Forgot all passwords" option was clicked on.

  3. I entered the same credentials I log into developer.apple.com with. The credentials were accepted.

  4. The shell was launched, and the in the shell the command "resetpasswords" entered.

  5. The message: "If you don't know the password for any user on your Mac, you can deactivate your Mac and set new passwords for all users. An internet connection will be required to reactivate your Mac". Beneath this message there was in blue text: "Deactivate Mac".

I did not proceed after this because I was not sure what deactivation would mean for the files on the computer. On it there is code written in Swift that needs to be preserved. If the deactivation is done will the files be preserved, and be accessible? Or does a deactivation remove all files?

A quick search yields this link.

It looks like it doesn't delete your data. Read it through.

Recovering Lost Password
 
 
Q