Bug 862 - add scriptable interface to list user's with sudo permissions
add scriptable interface to list user's with sudo permissions
Status: NEW
Product: Sudo
Classification: Unclassified
Component: Sudo
1.8.26
PC Linux
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-11-30 05:35 MST by vvavrychuk
Modified: 2018-11-30 05:35 MST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vvavrychuk 2018-11-30 05:35:04 MST
Some software may want to get a list of users with sudo permissions.

For example, https://github.com/rvm/ubuntu_rvm wants to add all users with sudo permissions to rvm group.

It does it by checking sudo group in /etc/group, https://github.com/rvm/ubuntu_rvm/blob/master/debian/postinst#L39.

This method is not complete because user might be granted sudo permissions via sudoers, corresponding bug reported in https://github.com/rvm/ubuntu_rvm/issues/31.

It would be great if sudo provides scriptable analog of 'sudo --list' so its output can be used from other scripts.