Skip to content

Instantly share code, notes, and snippets.

@dvdknaap
Created July 27, 2018 08:28
Show Gist options
  • Save dvdknaap/e85b4833ed81f84c364d6d314a0a2a69 to your computer and use it in GitHub Desktop.
Save dvdknaap/e85b4833ed81f84c364d6d314a0a2a69 to your computer and use it in GitHub Desktop.
Reset Mac password

Recent admin password via Recovery mode

  • Hold during boot cmd+R
  • Click on the top left scheen on the 'Utilities' menu and then on 'Terminal'
  • When Terminal is open typ 'resetpassword' and press enter

Reset your admin password using Single-user mode

  • Hold during boot cmd+S
  • Type 'mount -uw /' and press enter
  • Type 'launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist' and hit enter
  • After this you can reset any username with 'passwd username'

If you dont know the username check the /Users folder

  • ls /Users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment