Linux sudo 事件在哪里报告?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13546933/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where are sudo incidents reported?
提问by user1717828
Attempting something devious on my machine leads to
尝试在我的机器上进行一些狡猾的事情会导致
ryan@debian:~$ sudo EAT_ALL_THE_COOKIES_BEFORE_DINNER
[sudo] password for ryan:
ryan is not in the sudoers file. This incident will be reported.
Where is this incident reported, and how do I get the log of all the nasty attempted commands?
此事件在哪里报告,我如何获取所有令人讨厌的尝试命令的日志?
采纳答案by user1717828
回答by qqx
The report is sent as an email to the root
user. Many Linux distributions will automatically setup an alias for that user directing the mail to the first account created during the install process.
该报告将作为电子邮件发送给root
用户。许多 Linux 发行版会自动为该用户设置别名,将邮件定向到在安装过程中创建的第一个帐户。