add_user(7) Mac OS X Darwin ZSH customization add_user(7) NAME add_user - Add a user to the Directory Service database and create the user's account SYNOPSIS add_user username fullname uid account_type where username is a one-word short username that becomes the username of the account fullname can be a multi-word full name such as "Joseph P. Docus" pro- vided the double-quotes are present. uid is an (unused) numerical user id integer (Mac OS X starts numbering users consecutively from 501 but any larger integers may be used) account_type must be either "staff" or "admin". All four arguments are compulsory and must be supplied in the order given above. DESCRIPTION add_user Consider using the System Preferences > Accounts preference pane to do this instead. The add_user command must be invoked by an admin user. Takes the user's username (i.e., account name, short name), fullname, uid, and staff|admin and creates: a new user in NetInfo passwd a new /Users/username home directory SEE ALSO add_user(7), addgroup(7), delete_user(7), delete_group(7), remove_user_from_group(7), adduser2group(7) AUTHOR Obtained and modified from a bash shell script available at http://www.osxfaq.com/tips/unix-tricks/week91/friday.ws MAINTAINER W. G. Scott wgscott@users.sourceforge.net Mac OS X August 4, 2005 add_user(7)