[sudo-users] Displaying errors to users

Todd C. Miller Todd.Miller at courtesan.com
Mon Nov 13 20:43:32 MST 2017

You should already receive an error when trying to run a command
through sudo that is not allow.

For example:

xerxes% sudo -l

User millert may run the following commands on xerxes:
    (ALL) /bin/ls

xerxes% sudo id
Sorry, user millert is not allowed to execute '/usr/bin/id' as root on xerxes

Do you not receive a warning when the user tries to run a command
not listed in sudoers?

 - todd

More information about the sudo-users mailing list