title: Hook into linux authentication to run script or program when certain conditions are met
body: <p>Using ecryptfs or encfs (Possibly more) the actual decryption passphrase is kept in a file that is decrypted by the password.</p>
  
  <p>Because of this, if paranoid (Or trying to impress) you can effectively shred all the encrypted data to US DOD standards (Usually the entire home directory) in a few milliseconds.</p>
  
  <p>I want to setup my computer (Or at least my vbox system) to shred the wrapped passphrase if a specific password is entered, or the wrong password is entered a certain amount of times in a row.</p>
  
  <p>This would be easy enough but I don't know how to get into the linux authentication system at a level that will allow me to check the incorrect password and/or run the shred program on the file.</p>
  
  <p>TL;DR: Anyone know how to make linux shred a file if an incorrect login used a specific password?</p>