GEEK: user admin cheat sheet
2009-02-09 11:59 amHow to set various user properties via the command line on Mac OS X
Create a new entry in the local (/) domain under the category /users.
dscl / -create /Users/crasch
Create and set the shell property to bash.
dscl / -create /Users/crasch UserShell /bin/bash
Create and set the user’s full name.
dscl / -create /Users/crasch RealName “Christopher Rasch”
Create and set the user’s ID.
dscl / -create /Users/crasch UniqueID 503
Create and set the user’s group ID property.
dscl / -create /Users/crasch PrimaryGroupID 1000
Create and set the user home directory.
dscl / -create /Users/crasch NFSHomeDirectory /Local/Users/crasch
Set the password.
dscl / -passwd /Users/crasch PASSWORD
or
passwd crasch
If you would like to be able to perform administrative functions:
dscl / -append /Groups/admin GroupMembership crasch
Original: craschworks - comments