Cómo Configurar un usuario en linux para hacer SUDO
1. Crear el usuario
# adduser myuser
info: Adding user `myuser' ...
info: Selecting UID/GID from range 1000 to 59999 ...
info: Adding new group `myuser' (1001) ...
info: Adding new user `myuser' (1001) with group `myuser (1001)' ...
info: Creating home directory `/home/myuser' ...
info: Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for myuser
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] Y
info: Adding new user `myuser' to supplemental / extra groups `users' ...
info: Adding user `myuser' to group `users' ...
2. Agregarlo al grupo de SUDOERS
# usermod -aG sudo myuser
3. Verificar
# id myuser
uid=1001(myuser) gid=1001(myuser) groups=1001(myuser),27(sudo),100(users)