Created
October 17, 2022 08:12
-
-
Save KozhevnikovM/2da90e81c6f2069cff7f03e6b2c6b323 to your computer and use it in GitHub Desktop.
Log all sudo commands
This file contains hidden or 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
Defaults logfile="/var/log/sudo.log" | |
Defaults log_output | |
Defaults log_input | |
Defaults iolog_dir=/var/log/sudo-io/%{user} | |
%admins ALL=(ALL) NOPASSWD: LOG_INPUT: LOG_OUTPUT: ALL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment