Ubuntu typically comes with a single main user who has root (administrative) privileges. In many cases, you’ll want to create a separate user to ensure secure SSH access. In this guide, you'll learn the basic commands (adduser, userdel, passwd) for managing users, as well as how to add a user to the sudo group so they can perform administrative tasks.
To create a new user account, for e.g., named "redfoxcloud", run the following command:
sudo adduser redfoxcloud
You will be prompted to enter a password (the input will be hidden for security). You can skip the additional info fields (Full Name, Phone, etc.) by pressing Enter for each.

To grant this new user the ability to run commands as root, add them to the sudo group:
sudo usermod -aG sudo redfoxcloud
To remove an account, for e.g., "redfoxcloud", run this command:
sudo userdel redfoxcloud
This will delete the user but not their home directory (e.g. /home/redfoxcloud). To remove both the user and their home directory, add the -r flag:
sudo userdel -r redfoxcloud
To change the password of a specific user (e.g. "redfoxcloud) use the following command:
sudo passwd redfoxcloud
passwd
How to run Grafana in Docker containerGrafana is a leading open-source tool for visualizing time series data. It’s widely used to visualize data from various...
How to Install a Graphical User Interface (GUI) on Ubuntu 24.04 Server OSThe Ubuntu Server operating system is normally designed to run without a graphical...