HxHippy
YTTWGH

File Integrity Checker

Monitor critical files for changes using checksums.

Last updated: 2024-12-15

File Integrity Checker

#!/bin/bash
BASELINE="/var/lib/integrity/baseline"
case "${1:---check}" in
    --init) sha256sum /etc/passwd /etc/shadow /etc/sudoers > "$BASELINE" ;;
    *) sha256sum -c "$BASELINE" ;;
esac
intermediateSecurityUpdated 2024-12-15
  • integrity
  • checksum
  • sha256
  • monitor
  • security
/

search

posts, pages, knowledgebase

Search blog posts, pages and every knowledgebase guide, command and tutorial.