For CentOS based servers, refer to our other article:
Introduction
You may need to create sudo users due to security or other reasons.
Procedure
1. Create a user.
Execute the below command as root or an existing sudo user. Set a password for the new user when prompted. In the below example the username I chose is 'cpaneltest'.
sudo adduser cpaneltest
2. Add the user to the sudo group.
sudo usermod -aG sudo cpaneltest
3. Test access.
Ensure that the user you created can log in via ssh and use the command sudo su
with their password to gain root privileges. You can tell that the user has root privileges if the command whoami
returns "root".
Comments
0 comments
Article is closed for comments.