{"id":8792,"date":"2020-07-19T07:58:38","date_gmt":"2020-07-19T11:58:38","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=8792"},"modified":"2021-12-04T07:43:59","modified_gmt":"2021-12-04T07:43:59","slug":"add-users-ubuntu-20-04","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/add-users-ubuntu-20-04\/","title":{"rendered":"How to Add Users on Ubuntu 20.04 With adduser Command-line Tools"},"content":{"rendered":"\n

Here we will be showing you how to add users to Ubuntu 20.04. In all fairness, the steps here also apply to previous Ubuntu<\/a> versions and even other Linux<\/a> distros. Adding users to any Linux system is a simple but very important task to do while setting up your system.<\/p>\n\n\n\n

By default, a fresh installation of Ubuntu gets you one user who happens to be the root user. This user has administrative rights on your system and that makes it potentially very destructive if used wrongly or in the hands of unauthorized users.<\/p>\n\n\n\n

The general rule is to create at least one other user with sudo<\/em> privileges that can perform administrative tasks on-demand using the sudo<\/em> command. This is the user you would generally use to sign into the system.<\/p>\n\n\n\n

Prerequisites<\/h2>\n\n\n\n

Because we are using Ubuntu 20.04 in this guide, you will need to have authorized root access to a server running Ubuntu 20.04. If you haven’t already, you can set this up using this initial server setup guide for Ubuntu 20.04<\/a>.<\/p>\n\n\n\n

Add Users<\/h2>\n\n\n\n

When signed in as the root user, create a new user at any time by typing the following:<\/p>\n\n\n\n

# adduser newuser<\/code><\/pre>\n\n\n\n

Or if you are signed in as a non-root user then use the following command:<\/p>\n\n\n\n

$ sudo adduser newuser<\/code><\/pre>\n\n\n\n

Where newuser<\/em> is the username you are planning to use. You will then be presented with a series of prompts requiring you to:<\/p>\n\n\n\n