Add User to Sudoers in CentOS
#create username and set password
useradd username
passwd username
#Verify the Wheel Group is Enabled
sudo visudo
%wheel ALL=(ALL) ALL
#Add User to Group
usermod -aG wheel username
# Open the Sudoers File in an Editor
sudo visudo
root ALL=(ALL) ALL
username ALL=(ALL) ALL
#Now you can switch to new username
su — username