Created
July 25, 2017 07:32
-
-
Save aduzsardi/f133b8c11f3fa926f59fa20e918742ab to your computer and use it in GitHub Desktop.
osx create user with dscl
This file contains hidden or 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
dscl . -create /Users/myuser | |
dscl . -create /Users/myuser UserShell /bin/zsh | |
dscl . -create /Users/myuser RealName "myuser" | |
dscl . -create /Users/myuser UniqueID "510" | |
dscl . -create /Users/myuser PrimaryGroupID 20 | |
dscl . -create /Users/myuser NFSHomeDirectory /Users/myuser | |
dscl . -passwd /Users/myuser password | |
dscl . -append /Groups/admin GroupMembership myuser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment