I wanted to give user
sudo privileges. I added user
to the admin group:
usermod -a -G admin user
Then I used visudo to check if admin users had been set to receive sudo privileges. I uncommented the line admin ALL=(ALL) ALL
.
It didn't work.
sudoers file:
Defaults env_reset
root ALL=(ALL:ALL) ALL
admin ALL=(ALL) ALL
%sudo ALL=(ALL:ALL) ALL