Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a hacker occasionally attempting to hack a site, and so far unsuccessful, but I would like a way to determine if the site has been compromised (i.e., files edited). The type of attacks are LFI and attempting to inject iFrames in some source files. What can I install on my Debian server to alert me via an e-mail if certain files or directories are modified?

share|improve this question
up vote 6 down vote accepted

You can install Tripwire and introduce a set of dicrectory to Tripwire, When a file has been changed, Tripwire notifies sysadmin.

share|improve this answer
Thank you @MohsenPahlevanzadeh. I will ask my sys admin to install. – Kobus Myburgh Feb 27 '14 at 12:02
does TripWire require root access? According to my sysadmin they will not install software on the server that require root access? – Kobus Myburgh Feb 27 '14 at 12:06
for installation yes, – PersianGulf Feb 27 '14 at 12:07
However i don't try to compile tell him/her to try compile it. – PersianGulf Feb 27 '14 at 12:08
Thanks, Mohsen. Much appreciated. – Kobus Myburgh Feb 27 '14 at 12:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.