Lesson 13

Date: 7/3/2017
Application security and Intrusion detection
Linux System Administration

Exercise: Using GNUtar for file system consistensy check

Downloaded file openssh-4.4p1.tar.gz:
wget http://linuxcourse.rutgers.edu/lessons/security_ids/Downloads/openssh-4.4p1.tar.gz

Unzip and untar the archive and then tar it again so tar assign your ownership to the files in the new archive:
   gunzip openssh-4.4p1.tar.gz 
   tar -xvf openssh-4.4p1.tar 
   tar -cvf openssh-4.4p1.tar openssh-4.4p1

Consistency check:
  tar -df openssh-4.4p1.tar openssh-4.4p1 

It should show you nothing since the archive contains files with identical attributes.
Edit file openssh-4.4p1/ChangeLog and create a new line in it. Run the consistency check again:
   tar -df openssh-4.4p1.tar openssh-4.4p1 
See the results: 'Mod time differs', 'Size differs'

Take me to the Course Website