How do you record full terminal sessions for privileged access?
AdvancedProductionUser Lifecycle, Auditing & Time Sync
Answer
- sudo I/O logging:
Defaults log_outputwithDefaults!/usr/bin/sudoreplay !log_output; replay withsudoreplay -landsudoreplay <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.
More on User Lifecycle, Auditing & Time Sync
How do you manage Linux users across hundreds of servers?BeginnerWhat is SSSD?IntermediateWhat should happen in the offboarding process for an engineer with server access?IntermediateHow do you safely remove a local user?BeginnerHow should service accounts be created and governed?IntermediateHow do you review who has access to a server?Intermediate