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:
An Ubuntu server
Root access or a user account with sudo privileges
Steps to Create a New Sudo-Enabled User
Create a New User: Use the following command to create a new user. Replace username with your desired username:
sudo adduser username
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.
Łukasz Bodziony is the CEO and founder of NETCLOUD24, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance Windows VPS and Remote Desktop Services (RDS) solutions to clients across Europe, North America, and beyond.
His expertise covers a wide range of technologies, including Microsoft Azure, Proxmox VE, Amazon Web Services (AWS), and numerous other virtualization and cloud platforms.
Beyond running his hosting business, Łukasz also provides professional paid server configuration and optimization services for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.
If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via Windows VPS.
How To Create A New Sudo-Enabled User on Ubuntu and Configure