add user in os x or os x server with NetInfo
Adding an OS X/OS X Server user with NetInfo. Antiquated by servermrg, but still functional.
niutil -create . /users/fred niutil -createprop . /users/fred gid [groupID] niutil -createprop . /users/fred uid [uniqueNumberOver1000] niutil -createprop . /users/fred shell /bin/tcsh niutil -createprop . /users/fred home /Users/fred niutil -createprop . /users/fred realname "fred jones" niutil -createprop . /users/fred passwd '*' mkdir /Users/fred mkdir /Users/fred/.ssh chown -R fred /Users/fred chgrp -R [groupID] /Users/fred chmod 755 /Users/fred