Survivor & Slonephant
Hey, I've got a rough supply log that's going to mess up if it falls into the wrong hands. Think you can code a quick lockdown script?
#!/usr/bin/env bash
# Quick lockdown script for your supply log
LOGFILE="/path/to/your/supply.log"
# Make sure only root can touch it
sudo chown root:root "$LOGFILE"
# Give root read/write, no others
sudo chmod 600 "$LOGFILE"
# Optional: make the file immutable so even root can't change it accidentally
# If you want to remove the lock later, use: sudo chattr -i "$LOGFILE"
sudo chattr +i "$LOGFILE"
echo "Lockdown complete: only root can read/write $LOGFILE