10.1 User Management from the Command-line
New users may be added to an Ubuntu system via the command-line using the useradd utility. To create a new user account, enter a command similar to the following:
# adduser john
Adding user `john' ...
Adding new group `john' (1001) ...
Adding new user `john' (1001) with group `john' ...
The home directory `/home/john' already exists. Not copying from `/etc/skel'.
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for john
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] Y
By default, this will create a home directory for the user in the /home directory (in this case /home/john). To specify a different home directory, use the --home command-line option when creating the account...