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.
- 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.
- Next, we will add the user to the sudo group with this command:
sudo usermod -aG sudo cpaneltest
- 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.]
To sum up, the skilled Support Engineers at Bobcares demonstrated how to add Ubuntu users to sudoers.