Home arrow Journal arrow Make a MD5 Checksum of a Directory Tree in FreeBSD
Make a MD5 Checksum of a Directory Tree in FreeBSD PDF
Wednesday, 15 October 2014
Let's say we need to make a list of checksum for all files in a directory tree in order to track what files were modified. In order to accomplish that we will used md5deep app from FreeBSD's ports:

  cd /usr/ports/security/md5deep
  make install clean


Then using md5deep we will create a list of md5 checksums for all files in the directory we want to track (in this example we track /home/john directory):

  md5deep -rel /home/john > results_john.md5

After a while a list will be created. To check what files were modified we will run:

  md5deep -X results_john.md5 -r /home/john

This can be scripted and you can run it from time to time and in case there are changes to those files you can configure the script to send an email with files that were modified.

 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?