Re: Displaying errors to users

"Todd C. Miller" <[email protected]>
Newsgroups gmane.comp.tools.sudo.user
Message-ID <[email protected]>
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
____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.