Steps to Create a New Sudo User
Log in to your server as the root user.
add user
adduser username
Set and confirm the new user’s password at the prompt. A strong password is highly recommended!
Set password prompts:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Use the usermod command to add the user to the sudo group.
usermod -aG sudo username
By default, on Ubuntu, members of the sudo group have sudo privileges.
Test sudo access on new user account