Skip to content

sudo -l -U someuser fails when given command to check #248

@tik-stbuehler

Description

@tik-stbuehler

Given this entry:

nobody ALL = (root) NOPASSWD: /usr/bin/ping

As root: sudo -l -U nobody includes the command in the output, but sudo -l -U nobody /usr/bin/ping fails.

This got broken in 9f695f0 (#134).

I think the idea was to check whether the user running this is allowed to run the pseudo command list as the target user, but runas_pw should only be set this way when testing for list, not when searching for the actual command.

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