From 906eb19ece47023c659b4b3db2e7a6bb57dff0d9 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 15 May 2022 18:46:24 -0600 Subject: [PATCH] Add maxseq setting to log_output example. This should make it more obvious that you need to adjust maxseq unless you have (virtually) unlimited disk space. --- plugins/sudoers/sudoers.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/sudoers/sudoers.in b/plugins/sudoers/sudoers.in index 4a8def464..a0d293409 100644 --- a/plugins/sudoers/sudoers.in +++ b/plugins/sudoers/sudoers.in @@ -64,10 +64,13 @@ ## ## Uncomment to enable logging of a command's output, except for ## sudoreplay and reboot. Use sudoreplay to play back logged sessions. +## Sudo will create up to 2,176,782,336 I/O logs before recycing them. +## Set maxseq to a smaller number if you don't have unlimited disk space. # Defaults log_output # Defaults!/usr/bin/sudoreplay !log_output # Defaults!/usr/local/bin/sudoreplay !log_output # Defaults!REBOOT !log_output +# Defaults maxseq = 1000 ## ## Runas alias specification