Listing 1: checksys -- checking files and permissions against a master
file

# CHECKSYS SAMPLE SCRIPT
# This program will create a list to check your files and 
# permissions against a master file.  When running for the first
# time be sure to create a master.  This can be done by commenting
# out the diff statement and then mv the checkfil file to master.

ls -l /etc/* > checkfil
ls -l /dev/* >> checkfil    #add other key files as required
ls -l /bin/* >> checkfil
ls -l /usr/adm/* >> checkfil

diff master checkfil > diffout



