Say I am part of various groups
$ groups users git engineering ....
And I can execute
sudo in that machine,
How can I tell which group is responsible for my sudo execution ability ?
sudo less /etc/sudoers
or even just
sudo cat /etc/sudoers
and look for something like the following:
%wheel ALL=(ALL) ALL
where the key to your question is the group name following the "%".
man sudo.conf for an excellent explanation of who gets what privileges based on the line "%" line above and other parameters available in