|
Bugzilla – Full Text Bug Listing |
| Summary: | mail_no_perms seems to not work? | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Christoph Anton Mitterer <calestyo> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.8.3 | ||
| Hardware: | All | ||
| OS: | Linux | ||
|
Description
Christoph Anton Mitterer
2012-07-01 19:40:01 MDT
The check for whether a command is allowed or not is done after the user authenticates. Since you are using the -n flag, authentication never succeeds and so the permission check is not done. In this case, I think it makes more sense for sudo to mail if "mail_badpass" is set. Well... a) as I said, I tried with out -n, too, and it didn't work. b) an now I have a system (SL6 with stone aged 1.7.4p5), where mail_badpass is NOT set per default as in Debian, and with the options above, but where also no mail about wrong commands are sent. Cheers, Chris. (In reply to comment #2) If you don't enter the correct password the user's sudoers commands won't be evaluated yet and so you won't get mail sent for mail_no_perms, though you will get mail if you have mail_badpass set. Uhm.. ok.. well... perhaps that order, and the dependecies, should be documented among the mail_* options? Cheers, Chris. I've reordered the way things are logged for sudo 1.8.6. In sudo 1.8.6 mail_no_perms will send mail even if the user doesn't authenticate successfully which should address your issue. This is fixed in sudo 1.8.6. |