gimili17 at gmail.com
Thu May 19 18:34:28 UTC 2016
Would something like this help? I put a bunch of junk pictures and
other files in a samba share that everyone has access to. If I modify
them in any way, I get warned. I was thinking it might warn me so I
could prevent it spreading to backups.
$MY_EMAIL="some at email.com"
while inotifywait -qre modify "$MY_DIR"; do
#play a sound on server
play -v .3 /home/warning.wav
#send an email
mail -s "Possible malware" $MY_EMAIL </home/warning.txt
More information about the samba