Skip to content

How To Create A New Sudo-Enabled User on Ubuntu and Configure

Netcloud24
Cloud Infrastructure Expert
HOSTING H1

Free web hosting H1

5 GB of storage and SSL for a small website or WordPress project.

Explore hosting H1
WINDOWS VPS + RDS

Run Windows applications remotely

Windows Server 2022 or 2025 and RDS CALs included in the plan. Choose resources and user capacity for your business.

Explore Windows VPS
NetCloud24 Expert Guides Open the dedicated video page

Video transcript: NetCloud24 Expert Guides. Practical knowledge for a reliable cloud. Cloud and VPS expertise, security, performance, and step-by-step tutorials. Learn, deploy, and keep building with NetCloud24.

 

Introduction

Creating a new sudo-enabled user on Ubuntu allows you to grant administrative privileges to a non-root user. In this guide, we’ll walk through the steps to create a new sudo-enabled user on Ubuntu and configure it for use.

Prerequisites

Before proceeding, ensure you have:

  1. An Ubuntu server
  2. Root access or a user account with sudo privileges

Steps to Create a New Sudo-Enabled User

    1. Create a New User: Use the following command to create a new user. Replace username with your desired username:
sudo adduser username
    1. Add User to sudo Group: Use the following command to add the new user to the sudo group, granting administrative privileges:
sudo usermod -aG sudo username

Configure User Preferences (Optional)

You can configure additional preferences for the new user, such as setting a password, modifying the user’s shell, or adding SSH keys.

Conclusion

Congratulations! You have successfully created a new sudo-enabled user on your Ubuntu server and configured it for administrative tasks. The new user can now execute commands with elevated privileges using the sudo command.

Windows VPS Deutschland

Windows VPS España

Visual overview of How To Create A New Sudo-Enabled User on Ubuntu and Configure
Visual overview: How To Create A New Sudo-Enabled User on Ubuntu and Configure

Windows VPS Nederland

Windows VPS Italia

Windows VPS Portugal

VPS Windows Italia

Windows VPS

Windows VPS

Windows VPS Sverige

Key topics covered in How To Create A New Sudo-Enabled User on Ubuntu and Configure
Key topics covered in this NetCloud24 guide.

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Windows RDS (Remote Desktop Services)

Windows VPS

How To Create A New Sudo-Enabled User on Ubuntu and Configure
How To Create A New Sudo-Enabled User on Ubuntu and Configure
Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.