Keep the systemd journal across reboots and cap its size
Make journald keep logs across reboots, set a size ceiling, verify it worked, and undo it. Applies to systemd-based Linux distributions.
Tag
1 article tagged linux.
Blog
Security
The config changed overnight and nobody did it. Everyone says so. The logs disagree. How to read sudo logs and login records, record whole sudo sessions, watch key files with auditd, and why the logs shouldn't only live on the box.
Linux
A talking cow, a train that punishes typos, the Matrix in your terminal, and hidden among them, six genuinely useful tools you'll keep long after the novelty wears off. A toy box for Linux nerds.
Security
fail2ban is the bouncer who throws out anyone who gets their name wrong three times. Useful, and not a security strategy. How to set up its SSH jail, check who it has banned, and know what it can't protect you from.