PROMPT_COMMAND='history -a >(tee -a ~/.bash_history | logger -t "$USER[$$] $SSH_CONNECTION")' You can put the command (not the whole line, but just the command) into/etc/sysconfig/bash-prompt-default and make it executable. This will log all users bash history system wide to a syslog. Or you can add it to ~/.bashrc file per user – it’s up to you. Surely, it’s possible to tell the logger to send...
Read More