Create a Sudo User on Ubuntu

#1

1. Log in to your system as the root user.

$ ssh root@server_ip_address

2. Create a new user account.

$ adduser username

3. Add the new user to the sudo group.

$ usermod -aG sudo username

4. Test the sudo access.

$ su - username
$ sudo whoami