Interview Prep/Linux/User Lifecycle, Auditing & Time Sync

How do you record full terminal sessions for privileged access?

AdvancedProductionUser Lifecycle, Auditing & Time Sync
Answer
  • sudo I/O logging: Defaults log_output with Defaults!/usr/bin/sudoreplay !log_output; replay with sudoreplay -l and sudoreplay <id>.
  • tlog (RHEL, integrates with SSSD) records sessions to the journal for central playback.
  • Access proxies (Teleport, AWS SSM session logging) record at the gateway, which is tamper-resistant from the host.

Tell users their sessions are recorded (banner, policy), and protect the recordings because they may contain secrets.

All Linux questions Roadmap: Linux

More on User Lifecycle, Auditing & Time Sync