Skip to content

Instantly share code, notes, and snippets.

@anthonywu
Created November 1, 2016 18:25
Show Gist options
  • Save anthonywu/41c8f18f98c6cb053e894660c739682c to your computer and use it in GitHub Desktop.
Save anthonywu/41c8f18f98c6cb053e894660c739682c to your computer and use it in GitHub Desktop.
icloud_password_restore.sh
# if the iCloud password option is disabled, you'll not see your iCloud login with this result
dscl . read /Users/your_username | grep AuthenticationAuthority
# use this command to add your icloud password as an auth authority again
sudo dscl . append /Users/your_username AuthenticationAuthority ";AppleID;[email protected]"
# confirm the previous command
dscl . read /Users/your_username | grep AuthenticationAuthority
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment