[comp.sources.wanted] file crc comparison program wanted

zeeff@b-tech.ann-arbor.mi.us (Jon Zeeff) (01/09/89)

I'm looking for a program that will take and store crc and permission
values for all the files on a file system and then at some future date,
produce a report indicating what files have changed.  Something like:

/etc/inittab has changed date and crc value
/xx has been removed
/zz has been added
/ff has changed crc value but not date
/bin/su has changed permissions
/gg has changed ownership


Such a program would have obvious uses for security and file system
corruption checks.

-- 
  Jon Zeeff			zeeff@b-tech.ann-arbor.mi.us
  Support ISO 8859/1		zeeff%b-tech.uucp@umix.cc.umich.edu
  Ann Arbor, MI			umix!b-tech!zeeff

childers@avsd.UUCP (Richard Childers) (01/19/89)

zeeff@b-tech.ann-arbor.mi.us (Jon Zeeff) writes:

>I'm looking for a program that will take and store crc and permission
>values for all the files on a file system and then at some future date,
>produce a report indicating what files have changed.

I've implemented this as a script. It doesn't check little fiddlin' details
and give you all the answers, it just detects deviations and reports them
via email.

I'll be glad to outline the operation, but I'm saving it for a symposium,
so I don't want to give away everything until I've published it.

	for ( each filename in control file )
		get file attributes
		get CRC
		compare these with stored attributes and CRC
		if ( divergent )
			run in circles, scream and shout
		else continue
	until done

>Such a program would have obvious uses for security and file system
>corruption checks.

Indeed it does. I use it to manage N divergent networks, each associated with
a different group of people, working on a different project, with different
and often antagonistic attitudes about who 'root' belongs to. I developed this
at my last company to facilitate in finger-pointing and blame assignment, and
it does nicely here, too.

And it makes upgrades a cinch, as I've got all the unique and sensitive files
archived away in duplicate. Crash recovery is a cinch, and people can't play
little 'root' games for very long, either, without me catching them.

>  Jon Zeeff			zeeff@b-tech.ann-arbor.mi.us
>  Support ISO 8859/1		zeeff%b-tech.uucp@umix.cc.umich.edu
>  Ann Arbor, MI			umix!b-tech!zeeff

-- richard ( formerly of Network Equipment Technologies, now of AMPEX )

-- 
 *                     Bismillah hir-Rahman nir-Rahim                         *
 *                                                                            *
 *      ..{amdahl|decwrl|octopus|pyramid|ucbvax}!avsd.UUCP!childers@tycho     *
 *          AMPEX Corporation - Audio-Visual Systems Division, R & D          *

zeeff@b-tech.ann-arbor.mi.us (Jon Zeeff) (01/20/89)

>
>>I'm looking for a program that will take and store crc and permission
>>values for all the files on a file system and then at some future date,
>>produce a report indicating what files have changed.
>

Since nobody replied, I did this myself.  The program reports
   corrupted
   added
   deleted
   permissions change
   owner or group change
   file change

Does anyone want to beta test it?


-- 
  Jon Zeeff			zeeff@b-tech.ann-arbor.mi.us
  Ann Arbor, MI			mailrus!b-tech!zeeff