Create a user:
useradd --create-home example_user
Set a password for the user:
passwd example_user
Ensure sudo
is installed.
Add to the wheel group (for sudo access):
usermod --append --groups wheel example_user
Finally, run visudo
and uncomment the line below:
## Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL) ALL