Download PDF version - Unix Support
Transcript
Section 11.3:File Locations 171 files, and signing these files. See Section 11.6, Selecting Passphrases for more information on setting passphrases. Note Once encoded and signed, the configuration file (/etc/tripwire/tw.cfg) and policy file (/etc/tripwire/tw.pol) generated by running the /etc/tripwire/twinstall.sh script should not be renamed or moved. 3. Initialize the Tripwire database file by issuing the /usr/sbin/tripwire --init command at the command line. 4. Run the first integrity check comparing your new Tripwire database to your system files by issuing the /usr/sbin/tripwire --check command at the command line and looking for errors in the generated report. Once you finish these steps successfully, Tripwire has the baseline snapshot of your filesystem that it needs to check for changes to critical files. Additionally, the tripwire RPM adds a file called tripwire-check to the /etc/cron.daily directory that will automatically run an integrity check once per day. 11.3 File Locations Before working with Tripwire, you should know where important files for the application are located. Tripwire stores its files in a variety of places depending on their role: • The /usr/sbin directory stores the tripwire, twadmin, and twprint programs. • The /etc/tripwire directory contains the local and site keys (*.key files) and the initialization script (twinstall.sh), as well as the sample and actual configuration and policy files. • The /var/lib/tripwire directory contains the Tripwire database of your system’s files (*.twd) and a report directory where Tripwire reports are stored. The Tripwire reports, named host_name-date_of_report-time_of_report.twr, detail the differences between the Tripwire database and your actual system files.