#!/bin/sh
#
#     tiger - A UN*X security checking system
#     Copyright (C) 1993 Douglas Lee Schales, David K. Hess, David R. Safford
#
#     Please see the file `COPYING' for the complete copyright notice.
#
# SunOS/gen_cron - 06/14/93
#
#-----------------------------------------------------------------------------
#

outfile=$1
> $outfile

for dir in /etc/cron.hourly /etc/cron.daily /etc/cron.weekly /etc/cron.monthly
do
    (
      cd $dir
      $LS -l $LSGROUP *
    ) |
    while read x y owner a b c d e file
    do
      [ "$owner" != "root" ] && {
	echo "--WARN-- CRON file \`$file' is owned by $owner."
      }
	  
      echo "$owner $dir/$file" >> $outfile
    done
done 
