How To

Add Remove Users Ubuntu: Complete User Management Guide

Managing user accounts is one of the most important administrative tasks on any Linux system. Whether you’re setting up a personal workstation, a development server, or a shared environment, knowing how to Add Remove Users Ubuntu systems efficiently helps maintain security, organization, and access control.

Ubuntu provides both command-line and graphical methods for creating and deleting user accounts, making the process accessible to beginners and experienced administrators alike.

Why User Management Matters in Ubuntu

Every user account on an Ubuntu system has its own settings, permissions, and personal files. Proper user management helps prevent unauthorized access and ensures that individuals only have access to the resources they need.

System administrators often create separate accounts for developers, employees, or family members to keep data organized and secure.

Before creating or deleting users, ensure you have administrator privileges or access to a sudo-enabled account.

Add Remove Users Ubuntu Using the Command Line

The command line is the fastest and most efficient way to manage users on Ubuntu.

To create a new user account, use the following command:

sudo adduser username

Replace username with the desired account name.

During the setup process, Ubuntu will prompt you to create a password and optionally enter additional information such as the user’s full name and contact details.

Once completed, Ubuntu automatically creates a home directory and assigns ownership to the new user.

Grant Administrative Privileges

If the new account requires administrative access, add it to the sudo group:

sudo usermod -aG sudo username

This allows the user to execute privileged commands when necessary.

Add Remove Users Ubuntu Through the Graphical Interface

Ubuntu’s graphical interface provides a beginner-friendly alternative to terminal commands.

To add a user:

  1. Open Settings.
  2. Navigate to Users.
  3. Click Unlock and authenticate with your password.
  4. Select Add User.
  5. Choose either a standard or administrator account.
  6. Enter the required details and save the configuration.

This method is especially useful for desktop users who prefer visual system management.

Removing Users from Ubuntu Terminal

When an account is no longer needed, you can remove it using the terminal.

To delete a user while keeping their files:

sudo deluser username

If you want to remove both the account and its home directory, use:

sudo deluser --remove-home username

Be cautious when using the second command because it permanently deletes user-owned files stored in the home directory.

Removing Users Through Ubuntu GUI

Ubuntu also allows user removal through its graphical settings panel.

Follow these steps:

  1. Open Settings and select Users.
  2. Unlock administrative controls.
  3. Select the account you want to remove.
  4. Click Remove User.
  5. Choose whether to keep or delete the user’s files.

This provides a simple way to manage accounts without using terminal commands.

Best Practices for User Account Management

To maintain a secure Ubuntu environment:

  • Create individual accounts for each user.
  • Assign sudo privileges only when necessary.
  • Use strong passwords.
  • Remove inactive accounts regularly.
  • Review user permissions periodically.

Following these practices reduces security risks and keeps systems organized.

Conclusion

Learning how to Add Remove Users Ubuntu systems is an essential Linux administration skill. Ubuntu offers flexible options through both terminal commands and graphical tools, allowing administrators to create, manage, and remove user accounts with ease. By applying proper user management practices, you can improve security, simplify administration, and maintain a well-organized Ubuntu environment.

Cyber Defence

Recent Posts

Install PHP on Ubuntu 26.04: Apache, Nginx, and Multiple Versions

PHP 8.5 is included in Ubuntu 26.04's default repositories and is the recommended version for…

9 hours ago

Upgrade to Ubuntu 26.04 from 25.10 and 24.04 LTS: Complete Guide

Ubuntu 26.04 LTS "Resolute Raccoon" arrived on April 23, 2026 with Linux kernel 7.0, GNOME 50,…

9 hours ago

Install Kubernetes on Ubuntu 26.04 with kubeadm and containerd

Kubernetes is the standard platform for running containerized workloads across multiple servers with self-healing, rolling…

9 hours ago

Install Ubuntu 26.04: Bootable USB, Partitioning, and First Steps

Ubuntu 26.04 LTS "Resolute Raccoon" was released on April 23, 2026 with Linux kernel 7.0, GNOME desktop, and standard security support until April 2031. A clean install gives you a known-good starting point on new hardware, when replacing another operating system, or when an upgrade path is not practical. This guide walks through how to install Ubuntu 26.04: downloading and verifying the ISO, writing a bootable USB drive, completing the installer, and doing the initial setup after the first boot. Before you start: You need a USB drive with at least 12 GB of free space. Back up any existing data on the target machine — the installer can erase the entire disk. Install Ubuntu 26.04: Download the ISO…

9 hours ago

Change Timezone on Ubuntu: timedatectl and Desktop GUI Guide

The correct timezone affects more than the clock on your screen. It drives cron job scheduling, systemd timer execution, log file timestamps, database record timing, and SSL certificate validity checks. A mismatched timezone can cause scheduled jobs to fire at the wrong hour and make log timestamps impossible to match with real-world events. This guide shows how to change timezone on Ubuntu using the timedatectl command (the recommended approach for servers and remote machines) and through the graphical Date & Time settings on desktop systems. The steps apply to all current Ubuntu releases including 24.04 and 26.04. <strong>Prerequisite:</strong>&nbsp;Only&nbsp;the&nbsp;root&nbsp;user&nbsp;or&nbsp;a&nbsp;user&nbsp;with&nbsp;sudo&nbsp;access&nbsp;can&nbsp;change&nbsp;the&nbsp;system&nbsp;timezone. Check the Current Timezone Before You Change It Run timedatectl with no arguments to see the active timezone and clock status: bashtimedatectl Sample output: Local…

9 hours ago

Install Atom on Ubuntu 18.04: GitHub’s Code Editor APT Setup

Atom is a free, open-source, cross-platform code editor developed by GitHub. Built on Electron, it uses…

21 hours ago