mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
If the user is not allowed to run a command, we try to give them a more useful message than "Sorry, user foo may not run sudo on bar." However, this should only be done when running, not listing, a command. Otherwise, it would be possible for a user with no sudo privileges to use "sudo -l /path/to/some/command" to determine whether an executable exists in a directory that they do not have search access to.