Skip to content

Instantly share code, notes, and snippets.

View eggrollstan's full-sized avatar

eggrollstan

View GitHub Profile
@eggrollstan
eggrollstan / create_user.sh
Created September 6, 2021 17:12 — forked from dimitardanailov/create_user.sh
Creating a Mac OS X user via shell script
#!/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

Keybase proof

I hereby claim:

  • I am eggrollstan on github.
  • I am eggrollstan (https://keybase.io/eggrollstan) on keybase.
  • I have a public key ASCRPP_Rt2PRCqiHto1Auu6Y71lm0XMRyYInCTj-B6B4mQo

To claim this, I am signing this object: