Bash version 4.N has apparently the ability to write command-history to syslog, but I can't find information about how to configure this.
I have read several pages which offer hacks using the
PROMPT_COMMAND
, and trap, and I know that there's a patch available, but this should be unnecessary, as it is now built in.
I know I can use auditd
to capture commands, but I'd like to use the bash/syslog combination.
Asked by Graham Nicholls
(772 rep)
Jul 18, 2018, 11:06 PM
Last activity: May 9, 2025, 08:30 AM
Last activity: May 9, 2025, 08:30 AM