Re: Displaying errors to users
seph <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <1510676399.599781.1172242840.5FBC00EF@webmail.messagingengine.com> |
> Do you not receive a warning when the user tries to run a command > not listed in sudoers? Correct, I do not. On an ubuntu xenial test virtual machine: default-ubuntu-1604% sudo -V Sudo version 1.8.16 Sudoers policy plugin version 1.8.16 Sudoers file grammar version 45 Sudoers I/O plugin version 1.8.16 Using a very small configuration: Defaults passwd_tries=0, passwd_timeout=0 ALL ALL=(ALL:ALL) NOPASSWD: !/bin/cat %vagrant ALL=(ALL) NOPASSWD:ALL frank ALL=(ALL:ALL) NOPASSWD: /bin/ls I get: default-ubuntu-1604% sudo ls; echo $? 0 default-ubuntu-1604% sudo id; echo $? 1 default-ubuntu-1604% sudo cat; echo $? Sorry, user frank is not allowed to execute '/bin/cat' as root on default-ubuntu-1604. 1 -- seph [email protected] ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users