concept Tripwire in category linux

appears as: Tripwire
Linux in Action

This is an excerpt from Manning's book Linux in Action.

  • twadmin --create-cfgfile --site-keyfile site.key twcfg.txt—Generates a new encrypted tw.cfg file for Tripwire.
  • Tripwire scans your server and adds key attributes of important system files (like the file size) to its own database. If any one of those files should be edited or deleted, or if new files are added to directories being monitored, those attributes will change. When you later tell Tripwire to check the system, it compares the current values to the ones stored in the database and reports any discrepancies.

    Figure 11.4. Final screen before Tripwire rebuilds the encrypted configuration file

    If you’re setting up Tripwire on an LXC container, be aware that you’ll likely see a lot of errors like these:

    The object: "/proc/cpuinfo" is on a different file system...ignoring.
    The object: "/proc/diskstats" is on a different file system...ignoring.
    The object: "/proc/meminfo" is on a different file system...ignoring.

    This is happening because some of the system files normally monitored by Tripwire are being shared with the container’s host. This means that processes running in the container may not always have full access. Don’t worry, though. Other than producing lots of nasty-looking error messages, this won’t have any impact on the way Tripwire works.