Bobcares

WHM add Ubuntu user to sudoers | A handy guide

by | Nov 25, 2021

WHM add Ubuntu user to sudoers made easy.

At Bobcares, we offer solutions for every query, big and small, as a part of our Server Management Service.

Let’s take a look at how our Support Team recently helped a customer when they wanted to add new sudo users on Ubuntu.

WHM: How to add Ubuntu user to sudoers

If you are looking for a way to create sudo users on Ubuntu, you have come to the right place. Our Support Techs have an easy solution for you.

  1. First, we will create a user by executing the following command as an existing sudo user or as root:
    sudo adduser cpaneltest

    Then, we have to set a password for the new user. In the example above, we have chosen cpaneltest as the user name.

  2. Next, we will add the user to the sudo group with this command:
    sudo usermod -aG sudo cpaneltest
  3. After that, we will test access by ensuring the newly created user can log in via ssh. We will use the “sudo su” command along with the password to access root privileges.

    We will be able to tell whether the new user has root privilege with the help of the “whoami” command. If it returns “root”, we have succeeded.

This process makes it possible to create sudo users on Ubuntu servers without too much trouble.

[Need further help? We are available 24/7.]

Conclusion

To sum up, the skilled Support Engineers at Bobcares demonstrated how to add Ubuntu users to sudoers.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

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

Never again lose customers to poor
server speed! Let us help you.