File Checksums
This security_checksums_objects.cfg example specifies MD5 checksums and file sizes for use by the ChecksumDifferenceCritical script, which uses this information to report unexpected checksum and/or file size changes, perhaps indicative of hacker activity. Note how the #include directives incorporate several different sets of checksums, for example checksums_piktbin_objects.cfg and checksums_redhat_linux_objects.cfg or checksums_suse_linux_objects.cfg.
/////////////////////////////////////////////////////////////////////////////// // // security_objects.cfg // /////////////////////////////////////////////////////////////////////////////// [... other objects omitted ...] /////////////////////////////////////////////////////////////////////////////// Checksums #verbatim <objects/adm/checksums_piktbin_objects.cfg> #if redhat # include <objects/adm/checksums_redhat_linux_objects.cfg> #endif #if suse # include <objects/adm/checksums_suse_linux_objects.cfg> #endif /////////////////////////////////////////////////////////////////////////////// [... other objects omitted ...] ///////////////////////////////////////////////////////////////////////////////
On the piktmaster system, we would install the Checksums.obj file to each PIKT slave system with the command:
# piktc -iv +O Checksums +H all [or: ... -H down]
For more examples, see Samples.