User Tools

Site Tools


linux:linux_audit_user_commands

This is an old revision of the document!


Log user commands

Set PROMPT_COMMAND to log every command to syslog

PROMPT_COMMAND='history -a >(logger -t "[$USER] $SSH_CONNECTION")'
linux/linux_audit_user_commands.1757869350.txt.gz · Last modified: 2025/09/14 19:02 by manu