Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
Linux

How to Create a New User in Ubuntu

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To create a regular local account on Ubuntu, use Settings → System → Users on Ubuntu Desktop, or run sudo adduser username in a terminal. Choose administrator access only if the person needs to manage the system; a standard account is safer for everyday use.

Before you begin

You need administrator privileges to add a local account. On Desktop, that means being able to unlock the Users panel with an administrator password. On Server, use an account authorized to run sudo. The account created by the Ubuntu installer is normally in the sudo group. See Ubuntu’s user-management guide.

This guide covers local Ubuntu accounts for people. It does not create an LDAP, Active Directory, Samba, or other centrally managed identity; those are administered through their identity service. A human login is also different from a system account used by a service.

The Desktop directions follow Ubuntu’s current GNOME documentation, which lists Settings → System → Users. Labels and placement can vary by release or desktop environment. Ubuntu’s official documentation lists 26.04 LTS, 24.04 LTS, and 22.04 LTS; check the instructions for your installed release if the panel differs. Desktop account instructions · Ubuntu documentation

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
XTPTFABS RJ45 Keyboard to USB Converter v1.0 Cable,Plug&Play,No Extra Power
  • Compatible With: RJ45 Keyboard to USB Converter v1.0 cable Compatible with IBM Model M Terminal keyboards
  • Applicable scenarios:RJ45 to USB Converter v1.0 uses Soarer’s Converter firmware so you can use your old IBM Model M Terminal and compatible keyboards on a modern computer with USB support
  • Product Includes:1 x RJ45 Keyboard to USB Converter cable(Ethernet (RJ-45) Female, USB Male)Compatible with Windows, MacOS, and Linux.Scan code set 3.Realtime configuration using online
  • Product Features:Remapping.Layers.Macros.On-the-fly Config Selection.Full NKRO, if the keyboard supports it Compatible with Windows, MacOS, and Linux.Scan code set 3.Realtime configuration using online
  • No Power Required:Plug and play, more convenient connection

Create a user in Ubuntu Desktop

  1. Open Activities, search for Settings, and open it.
  2. Select System, then Users.
  3. Click Unlock near the upper-right corner and authenticate with an administrator password.
  4. Under Other Users, click Add User….
  5. Choose Standard for ordinary use. Choose Administrator only if the person needs to install software, change system settings, manage users, or run administrative commands.
  6. Enter the person’s full name and review the suggested username. Set a password, or choose the option that lets the person set one on first login if offered.
  7. Click Add. Ubuntu creates a separate home folder for the account’s files and settings.
  8. Log out or switch users, select the new account at the login screen, and sign in to test it.

If Add User… is unavailable, the panel may still be locked or your current account may lack administrator privileges. The Users panel may not exist on a Server installation without a desktop environment.

Create a user from the terminal

Ubuntu recommends adduser for ordinary account management. It is a policy-oriented tool that handles the typical interactive setup, including a home directory and password prompts. Run:

sudo adduser alice
  1. Enter the current administrator’s password when sudo prompts for it. The characters will not appear as you type.
  2. Enter and confirm a password for alice.
  3. Optionally enter a full name and other account details, then confirm the information when prompted.

Replace alice with the desired login name. For a regular user, adduser normally chooses an available UID, creates a matching primary group, creates the home directory, and copies initial configuration files from /etc/skel. The exact UID is not guaranteed; 1000 is a common convention for regular users, not an invariant. See the adduser manual.

For automation, avoid placing a password in a command-line argument. One approach is to create the account without setting its password, then set it interactively:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo adduser --disabled-password --gecos "" alice
sudo passwd alice

Configure an approved authentication method before expecting the account to log in. Do not use useradd -p 'password' alice: useradd -p expects an encrypted password, and password material entered on a command line may be exposed to process-listing tools. useradd manual

Choose standard or administrator access

A standard user has a normal login and home directory but does not automatically have broad system-administration rights. An administrator is still a normal user account; the difference is authorization to run privileged operations with sudo.

Rank #2
Perixx PERIDUO-212 Wired Mini Keyboard and Mouse Set, USB Connection, Black, US English Layout
  • Compact Wired Keyboard & Mouse Combo: PERIDUO-212 includes a space-saving mini keyboard (11.46 × 5.43 × 0.77 in) and a 3-button 1000 DPI optical mouse (4.09 × 2.44 × 1.33 in), ideal for office, home, or limited desk spaces.
  • 12 Multimedia Function Keys: Built-in multimedia keys provide quick access to Internet, media, and email functions. Use Fn + F1–F12 hotkeys for efficient control during work or entertainment (see manual for full key functions).
  • Plug-and-Play USB Connection: No drivers or software required. Simply connect via USB and start using instantly with desktop PCs, notebooks, and all-in-one computers.
  • Durable & Comfortable Design: Keyboard is made of high-quality black ABS material with membrane switches and a 3 mm key travel distance for comfortable, quiet typing. The bundled mouse features a precise optical sensor with 3 responsive buttons.
  • Stylish Red Accents: The keyboard bottom features a distinctive red injection color, complemented by red side accents on the mouse for a modern, coordinated look.

If Alice needs that access, add her to Ubuntu’s administrative group:

sudo adduser alice sudo

Or use usermod with the append option:

sudo usermod -aG sudo alice

The -a matters: without it, usermod -G can replace existing supplementary-group memberships instead of adding to them. Membership in sudo commonly grants broad administrative access under Ubuntu’s standard configuration, so do not grant it merely to fix access to one file or project. Use a narrowly scoped group for shared resources where appropriate.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check group membership with id alice or groups alice. The user should start a new login session for updated group membership to take effect. From Alice’s account, test with sudo -v, then sudo whoami; the latter should print root if the command is authorized.

Verify the account and its home directory

Run these checks as an administrator, replacing alice as needed:

id alice
getent passwd alice
ls -ld /home/alice
  • id displays the account’s UID and group memberships.
  • getent passwd displays the account database entry, including its home directory and login shell. Because it consults the system’s configured NSS sources, its results can include remote identities as well as local users.
  • ls -ld checks whether the expected home directory exists. Its owner should be the new user.

To test a local interactive login without first logging out, run:

su - alice
whoami
pwd

After switching, whoami should report alice and pwd should normally show /home/alice. Type exit to return to the previous shell. For additional password-state information, sudo passwd -S alice is available on systems whose installed passwd supports that output format.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Kali Linux 2026.2 Bootable USB – Penetration Testing & Ethical Hacking Live OS Installer
  • Portable Kali Linux: Carry the power of Kali Linux on a bootable USB drive for seamless cybersecurity.
  • Live Environment: Pre-configured to boot directly into a 'Live' Kali Linux environment without installation, enabling instant access.
  • Versatile Compatibility: Designed to work with most modern computers and laptops, providing a flexible platform for various tasks.
  • Secure and Encrypted: Kali Linux offers robust security features, encryption tools, and a vast array of penetration testing utilities.
  • Current Version: Kali 2026.2 uses kernel 6.19 and includes GNOME 50 and KDE Plasma 6.6 updates. We will update with newer stable versions of Kali as they are released.

Sign in on Desktop or Server

Ubuntu Desktop

Log out and choose the new account at the login screen, or use the desktop’s user menu to switch users if that feature is enabled. A first login may take longer while the home directory and desktop configuration are initialized.

Ubuntu Server or SSH

From a local console, switch accounts with su - alice. An SSH login can be attempted with:

ssh alice@server-address

Creating a local account does not itself enable SSH access. SSH password-authentication settings, public-key setup, firewall rules, cloud-provider policies, and the server’s sshd_config can independently allow or block remote login.

Create a service account instead

Do not use a system account for a person who needs an interactive login. Service accounts typically have different UID conventions, may not have a home directory, and commonly use /usr/sbin/nologin as their shell. For a service named myservice, an example is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo adduser --system --group --no-create-home --shell /usr/sbin/nologin myservice

This creates a non-interactive account and group for software rather than a person. The Ubuntu 26.04 adduser manual describes system-account options; use service-specific installation guidance when available.

Change, lock, or remove an account

Change the password

sudo passwd alice

This prompts for a new password. Password-policy behavior can differ when an administrator creates or changes an account with sudo; do not assume every configured strength or minimum-length rule is enforced identically in that situation. Ubuntu Server user-management guidance

Rank #4
SR Mini Keyboard Wired Thin Light 78 Keys USB Multimedia Small for Pc Computer Laptop
  • Compatible Devices: PC, Mac, PS3, Xbox360, Windows 8 7 XP Vista
  • Color:black
  • Multimedia composite key
  • thin and fashion
  • Character laser print

Lock password authentication

sudo passwd -l alice

This locks the account’s password. It does not necessarily make the account unusable through every authentication route: SSH keys, PAM modules, and other configured mechanisms can affect access. Check the authentication method in use before treating password locking as a complete access revocation.

Remove an account cautiously

Before deleting an account, review files it owns and preserve any data you need. To locate owned files, run:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo find / -user alice -ls 2>/dev/null

Review the results before proceeding, especially for an employee, service account, or account that may own files outside its home directory. To remove the account while retaining its home directory:

sudo deluser alice

To remove the account and its home directory:

sudo deluser --remove-home alice

If you only need to stop a person’s access temporarily, locking the account may be safer than deleting it immediately.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common problems

Authentication failure or permission denied

Confirm that you are using an administrator account, entered the correct password, and included sudo where required. Check whether sudo works with:

sudo -v

If it fails, use another administrator account or console access. Avoid casual edits to /etc/sudoers; a syntax error there can disrupt administrative access.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
64GB - 16-in-1, Bootable USB Drive 3.2 for Linux & Windows 11, Zorin | Mint | Kali | Ubuntu | Tails | Debian, Supported UEFI and Legacy
  • ✅For beginners, refer image-7, its a video boot instruction, and image-6 is "boot menu Hot Key list"
  • ✅16-IN-1, 64GB Bootable USB Drive 3.2 , Can Run Linux On USB Drive Without Install, All Latest versions.
  • ✅Including Windows 11 64Bit & Linux Mint 22.3 (Cinnamon)、Kali 2026.02、Ubuntu 26.04、Zorin Pro 18、Tails 7.8.1、Debian 13.5.0、Garuda 2026.03、Fedora Workstation 44、Manjaro 25.06、Pop!_OS 22.04、Solus 2026.04、Archcraft 26.05、Neon 2026.06、Fossapup 9.5、Sparkylinux 8.3, All ISO has been Tested
  • ✅Supported UEFI and Legacy, Compatibility any PC/Laptop, Any boot issue only needs to disable "Secure Boot"

The username already exists

Check before creating another account:

getent passwd alice

If the account exists, change its password with sudo passwd alice or, when justified, add it to the sudo group. Do not delete and recreate an account just to change its display name; that can complicate file ownership and risk data loss. Usernames are validated against Ubuntu’s configured naming policy. Prefer simple names without spaces or shell metacharacters; avoid --allow-bad-names unless a nonstandard name is genuinely required.

The account has no home directory

This can happen if the lower-level useradd command was used without an option or configuration that creates a home, or if home creation was explicitly disabled. Check the home path with getent passwd alice. For an ordinary person’s account, adduser is the more predictable choice; see the useradd manual.

The user can log in but cannot use sudo

Check groups alice. If administrator access is intended, add the account with sudo adduser alice sudo, then have the user start a new login session before testing again.

The user cannot log in

Check the account entry and password status with getent passwd alice and sudo passwd -S alice. Then check that the account has a valid shell, that its home directory exists and is owned correctly, and that its password is not locked. Also identify whether the failing method is graphical, console, SSH, or domain-based: each may have separate authentication configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How files and permissions work

Files a user creates are normally owned by that user and the user’s primary group. Separate accounts keep files, settings, and access rights distinct; other users cannot read private files unless permissions or group membership allow it. If several people need access to a project directory, a dedicated group with suitable directory permissions is generally preferable to repeatedly changing ownership or using chmod 777.

Additional groups can grant substantial access. Add a user to groups such as docker, libvirt, or hardware-access groups only when the person needs the corresponding capability. A separate account per person also gives each person their own password and a clearer account identity than sharing one login.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Read next

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.