content top

Log Bash History

Log Bash History

  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

Apple OSX Malware Hype Pt I

  If the current tech media is to be believed, working from a Mac just got a lot more dangerous. The truth? It’s all up to the users. Oh yeah, and tech media outlets love to hype up a security issues, but often don’t seem to understand what they’re writing about.   Earlier this month, ZDNet posted an article [ZDNet.com] that establishes the precedence that Macs are no longer safe. They imply that Apple’s...

Read More
content top