How To Add a Sudo-Enabled User

The sudo command provides a mechanism for granting administrator privileges — ordinarily only available to the root user — to normal users. This guide will show you how to create a new user with sudo access on your server without having to modify the /etc/sudoers file. Choose your server’s operating system below to get started.

CentOS

8

How To Create a New Sudo-enabled User on CentOS 8 [Quickstart]

Learn How To Create a New Sudo-enabled User on CentOS 8 [Quickstart]

Rocky Linux

8

How To Create a New Sudo-enabled User on Rocky Linux 8 [Quickstart]

Learn How To Create a New Sudo-enabled User on Rocky Linux 8 [Quickstart]

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.