Skip to content

sudo -U <user> -l as root does not display some entries correctly #183

@aayla-secura

Description

@aayla-secura

An entry like the following:

test ALL = () /bin/ls

would allow user test to run both ls as themselves (the invoking user). When sudo -l is invoked by user test this is shown correctly. But when root runs sudo -U test -l, the output implies user test can run ls as root:

# sudo -U test -l
User test may run the following commands on ip-172-31-28-2:
    (root) /bin/ls

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions