Home    scripts    monitor shell

Security shell script to monitor file changes

A light-weight shell script that can be run by cron to monitor any file changes in the specific folder. The script uses find and stat commands to produce results that are then sent via email to the project's owner or the person responsible with the technical aspect. As is, it is set to check for content modification and metadata changes in all the files inside the set folder for the past hour. Cron daemon is set to run the script each hour to synchronize the process. The code itself is explained here.

Download:

File: monitor_shell.zip
Licence: MIT
Last update: 24.11.2017

Checksum(SHA256):


db08c5f65dc810d3563a781a66e8464ed987ce5799e155ace542f5f5ceb658f5

Security aspect to consider

The script itself won't compromise your system in any way but it is recommended to run it from outside the projects root folders. Otherwise, the script and its content might get noticed by the outside world.