Creating a new sudo user on CentOS 7

One of the first things I want to do after a new CentOS 7 install on a remote server is the creation of a new user with sudo privileges. Doing so is easy.

Create the user:

adduser [username]

Set a new password for the new user:

passwd [username]

Add the new user to the 'wheel' group. This group has sudo privileges by default on CentOS.

usermod -aG wheel [username]