OS Manuals

/usr/bin/sudoreplay

Give certain users the ability to run some commands as root

From sudo 1.9.17_p2-r12 (os), captured 2026-11-05 by running sudoreplay --help (exit 0). permalink

sudoreplay: /etc/sudo.conf is owned by uid 1100, should be 0
sudoreplay - replay sudo session logs

usage: sudoreplay [-hnRS] [-d dir] [-m num] [-s num] ID
usage: sudoreplay [-h] [-d dir] -l [search expression]

Options:
  -d, --directory=dir    specify directory for session logs
  -f, --filter=filter    specify which I/O type(s) to display
  -h, --help             display help message and exit
  -l, --list             list available session IDs, with optional expression
  -m, --max-wait=num     max number of seconds to wait between events
  -n, --non-interactive  no prompts, session is sent to the standard output
  -R, --no-resize        do not attempt to re-size the terminal
  -S, --suspend-wait     wait while the command was suspended
  -s, --speed=num        speed up or slow down output
  -V, --version          display version information and exit
Options (11)
OptionDescriptionSource
-d, --directory dirStore session logs in dir instead of the default, /var/log/sudo-io.help + man
-f, --filter filterspecify which I/O type(s) to displayhelp + man
-h, --helpDisplay a short help message to the standard output and exit.help + man
-l, --list searchlist available session IDs, with optional expressionhelp + man
-m, --max-wait numSpecify an upper bound on how long to wait between key presses or output data.help + man
-n, --non-interactiveDo not prompt for user input or attempt to re-size the terminal.help + man
-R, --no-resizeDo not attempt to re-size the terminal to match the terminal size of the session.help + man
-S, --suspend-waitWait while the command was suspended.help + man
-s, --speed numThis option causes sudoreplay to adjust the number of seconds it will wait between key presses or program output.help + man
-V, --versionPrint the sudoreplay versions version number and exit.help + man
-F, --followEnable “follow mode”. (in the manual page but not in --help)man
Examples (4) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.