- If I'm not a sudoer, is it possible to view the list sudoers?
/etc/groupshow this information?
No you're unable to find out whom has access to sudo rights if you yourself do not have access directly. You could possibly "back into it" by seeing what users if any are members of the Unix group "wheel".
This shows that user "saml" is a member of the wheel group.
Being a member of the "wheel" group typically allows for full sudo rights through this rule that's often in a systems sudoers file,
But there are no guarantees that the administrator of a given system decided to give
In which case, without
What about /etc/groups
This file only shows users who have a 2nd, 3rd, etc. group associated with them. Often times user accounts only have a single group associated, in which case you'd need to use a slightly different command to find out a given user's primary group:
Here user "saml" has the primary group 1000. This GID equates to this group:
But none of this actually tells you anything as to which user accounts have
Why the big secret?
This is all done to prevent what's known as a side channel attack. Leaking information out, such as which accounts have privileges, would give important information out to a would be attacker, if they were able to gain access to any account on a given system. So often times it's best to mask this info from any non-privileged account.