Created
October 8, 2018 01:46
-
-
Save JDHatman/6ddc26dbf585512bed455badcfef08df to your computer and use it in GitHub Desktop.
Sysadminctl admin account
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Create the Account | |
sysadminctl -addUser secretadmin -fullName SecretAdministrator -UID 510 -password secretpassword -admin -secureTokenOn -adminUser existingadminuser -adminPassword existingadminpassword | |
exit 0 | |
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "postinstall" 7L, 199C |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment