5
1
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
2admin should be %admin - Percent signs are used for groups, you could have also just added the user to be in the sudo group – Dan M. – 2011-06-22T19:19:55.457