Skip to content

Instantly share code, notes, and snippets.

@geoffrepoli
Created November 29, 2017 13:51
Show Gist options
  • Save geoffrepoli/f36a13247ead6ec298e114a8f05b5495 to your computer and use it in GitHub Desktop.
Save geoffrepoli/f36a13247ead6ec298e114a8f05b5495 to your computer and use it in GitHub Desktop.
sudo dscl . passwd /users/root "$(env LC_CTYPE=C tr -dc 'A-Za-z0-9_\ \!\@\#\$\%\^\&\*\(\)-+=' < /dev/urandom | head -c 32)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment