#!/bin/bash
#
# test_audit_suoders
#
# get summary of sudoers
#
####################################################
#
BASEFILE=/etc/sudoers
#
if [[ -f $BASEFILE ]]
 then
  if [[ $# -ge 2 ]]
   then
    DT="$1 $2"
  else
    DT=`date '+%F %T%:z'`
  fi
  #
  cd `dirname $0`
  awk -f audit_sudoers_v4.awk $BASEFILE | send_stdin2uls -s adm Security Sudoers Summary $DT "_"
fi
