LOGO

Create New User on Ubuntu 9.10 Server - Step-by-Step Guide

November 30, 2009
Create New User on Ubuntu 9.10 Server - Step-by-Step Guide

Adding a New User on Ubuntu Server

The process of establishing a new user account on an Ubuntu server is straightforward. It can be accomplished by elevating your shell privileges to root access using sudo, or by executing a specific command.

The 'adduser' Command

To create a new user, utilize the following command: adduser username. This command initiates the user creation process.

The system will then display output similar to the following, confirming the steps taken:

root@ubuntugeek910:~# adduser testuserAdding user `testuser' ...Adding new group `testuser' (1001) ...Adding new user `testuser' (1001) with group `testuser' ...Creating home directory `/home/testuser' ...Copying files from `/etc/skel' ...

This indicates that a new group and user have been added, a home directory created, and default configuration files copied.

Exploring Command Options

A comprehensive list of available options for the adduser command can be accessed by typing adduser --help at the command prompt.

adduser [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID][--firstuid ID] [--lastuid ID] [--gecos GECOS] [--ingroup GROUP | --gid ID][--disabled-password] [--disabled-login] [--encrypt-home] USER Add a normal useradduser --system [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID][--gecos GECOS] [--group | --ingroup GROUP | --gid ID] [--disabled-password][--disabled-login] USER Add a system useradduser --group [--gid ID] GROUPaddgroup [--gid ID] GROUP Add a user groupaddgroup --system [--gid ID] GROUP Add a system groupadduser USER GROUP Add an existing user to an existing groupgeneral options: --quiet | -q don't give process information to stdout --force-badname allow usernames which do not match the NAME_REGEX[_SYSTEM] configuration variable --help | -h usage message --version | -v version number and copyright --conf | -c FILE use FILE as configuration file

This help output details various parameters for customizing user creation, including specifying the home directory, shell, user ID, and group membership.

Conclusion

As demonstrated, the creation of a new user on an Ubuntu server is a simple and efficient process. The adduser command provides a user-friendly interface for managing user accounts.

#Ubuntu 9.10#create user#new user#server administration#user account#linux tutorial