https://github.com/sudo-project/sudo/commit/6aa320c96a37613663e8de4c275bd6c490466b01 Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this organization All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} sudo-project / sudo Public * * Notifications * Fork 157 * Star 798 * Code * Issues 16 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights Permalink This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. Browse files Browse the repository at this point in the history 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/ * Loading branch information @millert millert committed Feb 4, 2022 1 parent 4d0aeea commit 6aa320c Showing 1 changed file with 3 additions and 4 deletions. Split Unified There are no files selected for viewing 7 changes: 3 additions & 4 deletions 7 plugins/sudoers/logging.c [*] Show comments View file Edit file Delete file This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters Original file Diff line Diff line change line number number @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: ISC * * Copyright (c) 1994-1996, 1998-2020 Todd C. Miller * Copyright (c) 1994-1996, 1998-2022 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above Expand Down Expand Up @@ -311,11 +311,10 @@ log_denial(int status, bool inform_user) if (ISSET(status, FLAG_NO_USER)) { sudo_printf(SUDO_CONV_ERROR_MSG, _("%s is not in the sudoers " "file. This incident will be reported.\n"), user_name); "file.\n"), user_name); } else if (ISSET(status, FLAG_NO_HOST)) { sudo_printf(SUDO_CONV_ERROR_MSG, _("%s is not allowed to run sudo " "on %s. This incident will be reported.\n" ), user_name, user_srunhost); "on %s.\n"), user_name, user_srunhost); } else if (ISSET(status, FLAG_NO_CHECK)) { sudo_printf(SUDO_CONV_ERROR_MSG, _("Sorry, user %s may not run " "sudo on %s.\n"), user_name, user_srunhost); Expand Down Toggle all file notes Toggle all file annotations 34 comments on commit 6aa320c @wirehaiku Copy link @wirehaiku wirehaiku commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment End of an era. Sorry, something went wrong. 18 xpac1985, yeeHaw456789, smiba, bruttosozial, jugendhacker, kescherCode, RelativeSure, wirehaiku, magistermaks, emmachase, and 8 more reacted with confused emoji [?] 42 mimuki, bruttosozial, spacekookie, zesterer, kescherCode, RelativeSure, diggit, wirehaiku, doctormo, emmachase, and 32 more reacted with heart emoji All reactions * 18 reactions * [?] 42 reactions @bruttosozial Copy link @bruttosozial bruttosozial commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment RIP. Sorry, something went wrong. All reactions @lexisother Copy link @lexisother lexisother commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @DarkKapla Copy link @DarkKapla DarkKapla commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @spacekookie Copy link @spacekookie spacekookie commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment I remember being a first year CS student and trying to run sudo on university infrastructure for the first time and getting scared shitless of that message. I ended up trying to find a member of faculty for half an hour to check if I was in trouble or not. Once I found someone to talk to they just laughed. Gonna miss this message Sorry, something went wrong. 52 faho, zesterer, jugendhacker, cagatay-y, kescherCode, bruttosozial, RelativeSure, imsnif, diggit, DarkKapla, and 42 more reacted with laugh emoji 1 Explosion-Scratch reacted with eyes emoji All reactions * 52 reactions * 1 reaction @BenBE Copy link @BenBE BenBE commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @HanEmile Copy link @HanEmile HanEmile commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @yeti0904 Copy link @yeti0904 yeti0904 commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @tildezero Copy link @tildezero tildezero commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @foxwyn Copy link @foxwyn foxwyn commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @DistroHopper39B Copy link @DistroHopper39B DistroHopper39B commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @RomeuG Copy link @RomeuG RomeuG commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @Odyssey346 Copy link @Odyssey346 Odyssey346 commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @Rexogamer Copy link @Rexogamer Rexogamer commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment Truly the end of an era... Sorry, something went wrong. All reactions @Explosion-Scratch Copy link @Explosion-Scratch Explosion-Scratch commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @xadacka Copy link @xadacka xadacka commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @xoiga123 Copy link @xoiga123 xoiga123 commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment I legit wrote a suggestion in uni using sudo because I thought someone from the IT staff will read it Sorry, something went wrong. 1 JesseTG reacted with laugh emoji All reactions * 1 reaction @Paranoid-Dev Copy link @Paranoid-Dev Paranoid-Dev commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @farcaller Copy link @farcaller farcaller commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment But how will Santa know about privilege escalations now? Sorry, something went wrong. 1 bcb44 reacted with laugh emoji All reactions * 1 reaction @giorgiovilardo Copy link @giorgiovilardo giorgiovilardo commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @Elycin Copy link @Elycin Elycin commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @rcastellotti Copy link @rcastellotti rcastellotti commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @miloserdev Copy link @miloserdev miloserdev commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @GiorgioRen Copy link @GiorgioRen GiorgioRen commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @lvwrence Copy link @lvwrence lvwrence commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @ashkitten Copy link @ashkitten ashkitten commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @Midou36O Copy link @Midou36O Midou36O commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @etherealsunshine Copy link @etherealsunshine etherealsunshine commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @BirdInFire Copy link @BirdInFire BirdInFire commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @eshoyfer Copy link @eshoyfer eshoyfer commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @VikingPingvin Copy link @VikingPingvin VikingPingvin commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @sermah Copy link @sermah sermah commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @sreedevk Copy link @sreedevk sreedevk commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment F Sorry, something went wrong. All reactions @millert Copy link Collaborator Author @millert millert commented on 6aa320c Apr 29, 2023 There was a problem hiding this comment. Choose a reason for hiding this comment The reason will be displayed to describe this comment to others. Learn more. [Choose a reason] Hide comment The warning was restored in a slightly altered form in 9757d29 Sorry, something went wrong. All reactions Please sign in to comment. Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.