Skip to content

Instantly share code, notes, and snippets.

@KozhevnikovM
Created October 17, 2022 08:12
Show Gist options
  • Save KozhevnikovM/2da90e81c6f2069cff7f03e6b2c6b323 to your computer and use it in GitHub Desktop.
Save KozhevnikovM/2da90e81c6f2069cff7f03e6b2c6b323 to your computer and use it in GitHub Desktop.
Log all sudo commands
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