Cover V11, I08
aug2002.tar

Listing 2 Script to notify of su's to root

#!/usr/bin/ksh
#Name: security.chk
#Written by Rhonda Thorne
#Date 02/98
#Purpose is to report via email any su's to root on a daily basis

echo "Here are the su to root list for yesterday" >> /tmp/sec.list
grep `date +%m/%d` /var/adm/sulog|grep -e "-root" >> /tmp/sec.list
mailx -s "su list" sysadmin2 < /tmp/sec.list
rm /tmp/sec.list