Back to the command reference

adduser

UsersBeginnerReference only

Create a user interactively (Debian/Ubuntu)

Name: adduser: add user

This command is outside what the site lets you practise (mostly distribution-specific or rarely used tools). This page describes how to use it; try it on your own Linux system.

Description

adduser is the friendlier user creation tool on Debian/Ubuntu. It creates the home directory, copies defaults from /etc/skel and prompts for a password and details. adduser USER GROUP also adds an existing user to a group.

Syntax

adduser [OPTION]... USER

Common options

--disabled-passwordNo password (log in with an SSH key or similar)
--gecos INFOGive the full name and so on without being asked
--ingroup GROUPUse GROUP as the primary group instead of a new one
--systemA system user

Examples

  • $ sudo adduser alice

    Follow the prompts for password and details

    Explain

Related