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/sh | |
# https://apple.stackexchange.com/questions/82472/what-steps-are-needed-to-create-a-new-user-from-the-command-line/84039#84039 | |
. /etc/rc.common | |
dscl . create /Users/administrator | |
dscl . create /Users/administrator RealName "Terminal User Account" | |
dscl . create /Users/administrator hint "Password Hint" | |
dscl . create /Users/administrator picture "/Path/To/Picture.png" | |
dscl . passwd /Users/administrator thisistheaccountpassword |