The useradd command is a tool that provides sysadmins with the capability of adding new users (a.k.a. logins) to the system. The generic form of the command is this:
useradd -c 'COMMENT' -d 'HOME' -m -p 'CRYPT_STRING' -s 'SHELL' LOGIN
- COMMENT is used generally for user information such as full name, phone number etc.
- HOME is the home folder e.g. /home/user.
- CRYPT_STRING string generated by the crypt(3) function (libcrypt, a component of glibc, the GNU C Library).
- SHELL is the default shell for the user.
- LOGIN is for the new username in question.
The -m option creates the user’s home directory if it does not exist.
Example:
useradd -c 'John Doe' -d /home/johndoe -m -p 'ABiELdbxGY2fY' -s '/bin/ksh' johndoe
John Doe just got himself a new account with the /home/johndoe home/login directory, created (-m) if not present, with CRYPT_STRING ‘ABiELdbxGY2fY’ generated by the crypt(3) function for the (simplest and unbelievably most commonly used) password ’123456′ with salt ‘AB’. The default login shell for this account is ksh (-s ‘/bin/ksh’). And last, the username, johndoe.
Go on and create some users on your grid.

