Adding New Users the Easy Way on Ubuntu

by manojgumber

Ubuntu provides an alternative command ‘adduser’ for adding new
users instead of traditional commands like ‘useradd’. This is a very
convenient command and you do not have to remember any parameters as
this is a very interactive command .

They are friendlier front ends to the low level

tools like useradd, groupadd and usermod programs,
by default choos‐

ing Debian policy conformant UID and GID
values, creating a home

directory with skeletal configuration, running a
custom script, and

other features.

The normal way to run ‘adduser’ is with the name of user you want
to create and it will ask you by itself for any required information.

$ sudo useradd

So lets add a new user

$ sudo adduser leisurehours

Adding user `leisurehours’ …

Adding new group `leisurehours’ (1001)

Adding new user `leisurehours’ (1001)
with group `leisurehours’ …

Creating home directory
`/home/leisurehours’ …

Copying files from `/etc/skel’ …

Enter new UNIX password:

Retype new UNIX password:

passwd: password updated successfully

Changing the user information for

Enter the new value, or press ENTER
for the default

Full Name []: leisurehours

Room Number []:

Work Phone []:

Home Phone []:

Other []:

Is the information correct? [Y/n] y


adduser takes its default values from
the file /etc/adduser.conf .

So it is easy adding new users on