mrzool / bash-sensible

An attempt at saner Bash defaults
https://github.com/mrzool/bash-sensible/blob/master/sensible.bash
MIT License
2.03k stars 94 forks source link

Option to log to syslog #21

Open gaia opened 6 years ago

gaia commented 6 years ago

Just feedback: it would be great to have an option to log cmd history to syslog.

Some options:

https://sysadmin.compxtreme.ro/how-to-log-bash-history-with-syslog/ https://www.thegeekdiary.com/how-to-log-all-bash-history-commands-to-syslog-var-log-messages-in-centos-rhel/

Feel free to close this, just wanted to give some feedback.

mrzool commented 6 years ago

Why would I want to do this? Can you explain the advantages?

gaia commented 6 years ago

immediately send any cmds run on the machine to an external log storage server, like papertrail. useful to watch other ppl on the server in real time, if you have anyone else with access to it. Also to help trace the steps of malicious actors who could gain access to the server (not an infallible way to do this, but one of the least worse solutions for this need)