#!/bin/sh
# Show all wrong passwd tries.
cat /var/log/auth.notice | grep failure | sort -M >> /var/log/intruders.log 
cat /var/log/intruders.log | mail -s "Daily report: Possible intruders." root
