Skip to content

Instantly share code, notes, and snippets.

@Deadlyelder
Last active November 29, 2017 06:19
Show Gist options
  • Save Deadlyelder/c49341013eac00a8b4b67f031dd4dea8 to your computer and use it in GitHub Desktop.
Save Deadlyelder/c49341013eac00a8b4b67f031dd4dea8 to your computer and use it in GitHub Desktop.
Quick and dirty solution for root pass. Credit to original thinker :P
cat /dev/urandom | env LC_CTYPE=C tr -dc a-zA-Z0-9 | head -c 60; echo | xargs -I rootpw sudo dscl . -passwd /Users/root rootpw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment