| 1 |
README for FileTraq v0.2 |
| 2 |
Copyright (c) 2000 Jeremy Weatherford |
| 3 |
See file COPYING included with distribution. |
| 4 |
|
| 5 |
----> Code, development, contact |
| 6 |
|
| 7 |
The latest filetraq release is available from |
| 8 |
https://packages.debian.org/src:filetraq . Please use the Debian bugtracking |
| 9 |
system at https://bugs.debian.org/ for any feedback. If you really need to |
| 10 |
contact the current maintainer privately: Joost van Baal-Ilić |
| 11 |
<[email protected]> . |
| 12 |
|
| 13 |
Code is maintained using git at https://salsa.debian.org/debian/filetraq . |
| 14 |
|
| 15 |
Below is Jeremy Weatherford's original README for FileTraq. |
| 16 |
|
| 17 |
|
| 18 |
----> What's it do? |
| 19 |
|
| 20 |
FileTraq is designed to be run periodically from the root crontab. Each time, |
| 21 |
it compares a list of system files with the copies that it keeps. Any changes |
| 22 |
are reported in diff or patchfile style, and dated backup copies are kept. |
| 23 |
|
| 24 |
----> What's that good for? |
| 25 |
|
| 26 |
It's designed to be an easy way to ensure that no system files are changed |
| 27 |
without your knowledge. If you're worried about people breaking in and |
| 28 |
changing things without you noticing, or just worried about the other guy |
| 29 |
with root on the box changing things and forgetting to tell you, it's a good |
| 30 |
way to keep tabs on configuration files. |
| 31 |
|
| 32 |
It can even be useful to add some sanity to your own life, by reminding you |
| 33 |
when files are changed. If you keep track of the messages you get back from |
| 34 |
FileTraq, you'll have a rudimentary file history that will allow you to flip |
| 35 |
back to see when you changed a certain thing. Dated backups are also kept, |
| 36 |
just in case you nuke a file. |
| 37 |
|
| 38 |
----> How's it work? |
| 39 |
|
| 40 |
It's just a little shell script that reads a list of files to watch, runs diff |
| 41 |
against each file and its backup, and reports any discrepancies, along with |
| 42 |
keeping a dated backup of the original. |
| 43 |
|
| 44 |
----> Is there anything wrong with it? |
| 45 |
|
| 46 |
Right now, it doesn't take care of its backups very well. The dated backups |
| 47 |
will accumulate in the backups directory, bounded only by diskspace. If anyone |
| 48 |
has an idea for a SIMPLE way to keep backups in check, let me know. |
| 49 |
|
| 50 |
It only handles text files -- this isn't a Tripwire replacement for use with |
| 51 |
system binaries. I suppose it could be, though. |
| 52 |
|
| 53 |
FileTraq is not well tested or hardened. It runs as root, but all of its |
| 54 |
config files should only be accessible by root. No security holes are known |
| 55 |
at this time, but please be careful. |
| 56 |
|
| 57 |
----> How do I send feedback? |
| 58 |
|
| 59 |
I'm glad you asked... Jeremy Weatherford <[email protected]> |
| 60 |
|
| 61 |
There's a homepage for FileTraq at http://filetraq.xidus.net |
| 62 |
|
| 63 |
Feedback is definitely welcome, especially about proposed features. |
| 64 |
|
| 65 |
----> Legalese |
| 66 |
|
| 67 |
This program is distributed under the terms of the GNU Public License. |
| 68 |
See the file COPYING included with this distribution. |
| 69 |
|
| 70 |
-------------------------------------------------------------------------- |
| 71 |
|
| 72 |
FileTraq versions 0.2 and earlier came with scripts for installation and |
| 73 |
uninstallation. Since 0.3, the preferred way of installing FileTraq is via |
| 74 |
binary packages (.deb, .rpm, ...). If you really want to do things manually, |
| 75 |
see below. |
| 76 |
|
| 77 |
----> Upgrading |
| 78 |
|
| 79 |
To upgrade a previous version of FileTraq, simply follow the procedure |
| 80 |
below, specifying the same directories as before, and the new version will |
| 81 |
replace the old one. Your backups and config files will continue to work |
| 82 |
with the new version. |
| 83 |
|
| 84 |
----> Installation |
| 85 |
|
| 86 |
First, be root. |
| 87 |
$ su |
| 88 |
|
| 89 |
Extract the archive if you haven't already. |
| 90 |
# tar -xvzf filetraq-0.2.tgz |
| 91 |
# cd filetraq-0.2 |
| 92 |
|
| 93 |
Optionally, edit pathnames in the script filetraq to your taste. Then, copy |
| 94 |
the script to e.g. /usr/sbin/filetraq. Optionally, adjust filetraq.conf to |
| 95 |
your needs. Then copy filetraq.conf to e.g. /etc/filetraq.conf. |
| 96 |
|
| 97 |
# crontab -e |
| 98 |
(add an entry to run FileTraq periodically. Every 5 minutes, say) |
| 99 |
|
| 100 |
Sample crontab entry: (every five minutes) |
| 101 |
*/5 * * * * /usr/local/sbin/filetraq |
| 102 |
|
| 103 |
Most modern cron daemons support the syntax */5. If yours doesn't, substitute |
| 104 |
0,5,10,15,20,25,30,35,40,45,50,55 for the */5. |
| 105 |
|
| 106 |
Make sure the output from the crontab is being mailed to you. If there's |
| 107 |
no MAILTO= setting in the crontab, the output should be mailed to root. If |
| 108 |
you want it mailed to a specific user, add a MAILTO=user line at the top. |
| 109 |
|
| 110 |
You'll get one initial mailing when it runs the first time, then it'll be quiet |
| 111 |
until there are changes. |
| 112 |
|
| 113 |
If you don't receive an initial mailing at the designated time, make sure the |
| 114 |
cron daemon is actually running. If a ps auxc | grep crond doesn't show |
| 115 |
anything running, start it manually, then make sure it will start when your |
| 116 |
system boots. |
| 117 |
|
| 118 |
Edit /usr/local/filetraq/filetraq.conf (or wherever you put it) to add/delete |
| 119 |
files to be monitored. |
| 120 |
|
| 121 |
See the README file if you want more information. |
| 122 |
|
| 123 |
That's that. |
| 124 |
|
| 125 |
----> Uninstallation: |
| 126 |
|
| 127 |
There's an uninstall.sh script that should work fairly well for removing all |
| 128 |
of FileTraq's files. |
| 129 |
|
| 130 |
# ./uninstall.sh |
| 131 |
(review info and confirm) |
| 132 |
|
| 133 |
And it'll be uninstalled. |