Skip to content

Commit 6aa320c

Browse files
committed
Remove "This incident will be reported." from user warnings.
This used to indicate that email had been sent to the administrator telling them that someone tried to run sudo. Whether or not sudo sends email is now configurable, so the warning may not be accurate. It is also confusing to the user since they will not know who the incident is being reported to. See also https://xkcd.com/838/
1 parent 4d0aeea commit 6aa320c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

plugins/sudoers/logging.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* SPDX-License-Identifier: ISC
33
*
4-
* Copyright (c) 1994-1996, 1998-2020 Todd C. Miller <Todd.Miller@sudo.ws>
4+
* Copyright (c) 1994-1996, 1998-2022 Todd C. Miller <Todd.Miller@sudo.ws>
55
*
66
* Permission to use, copy, modify, and distribute this software for any
77
* purpose with or without fee is hereby granted, provided that the above
@@ -311,11 +311,10 @@ log_denial(int status, bool inform_user)
311311

312312
if (ISSET(status, FLAG_NO_USER)) {
313313
sudo_printf(SUDO_CONV_ERROR_MSG, _("%s is not in the sudoers "
314-
"file. This incident will be reported.\n"), user_name);
314+
"file.\n"), user_name);
315315
} else if (ISSET(status, FLAG_NO_HOST)) {
316316
sudo_printf(SUDO_CONV_ERROR_MSG, _("%s is not allowed to run sudo "
317-
"on %s. This incident will be reported.\n"),
318-
user_name, user_srunhost);
317+
"on %s.\n"), user_name, user_srunhost);
319318
} else if (ISSET(status, FLAG_NO_CHECK)) {
320319
sudo_printf(SUDO_CONV_ERROR_MSG, _("Sorry, user %s may not run "
321320
"sudo on %s.\n"), user_name, user_srunhost);

0 commit comments

Comments
 (0)