156 Chapter 12. Installing and Configuring Tripwire
does not have a /etc/smb.conf file, you can tell Tripwire not to try to look for it by commenting
out its line in twpol.txt:
# /etc/smb.conf -> $(SEC_CONFIG) ;
Next, you must tell Tripwire to generate a new /etc/tripwire/tw.pol signed file
and then generate an updated database file based on this policy information. Assuming
/etc/tripwire/twpol.txt is the edited policy file, use this command:
/usr/sbin/twadmin --create-polfile -S site.key /etc/tripwire/twpol.txt
You will be asked for the site passphrase. Then, the twpol.txt file will be parsed and signed.
It is important that you update the Tripwire database after creating a new /etc/tripwire/tw.pol
file. The most reliable way to accomplish this is to delete your current Tripwire database and create a
new database using the new policy file.
If your Tripwire database file is named wilbur.domain.com.twd, type this command:
rm /var/lib/tripwire/wilbur.domain.com.twd
Then type the command to create a new database:
/usr/sbin/tripwire --init
A new database will be created according to the instructions in the new policy file. To make sure the
database was correctly changed, run the first integrity check manually and view the contents of the
resulting report. See Section 12.8 and Section 12.9 for specific instructions on these points.
12.11.1. Signing the Configuration File
The text file with the configuration file changes (commonly /etc/tripwire/twcfg.txt) must be
signed to replace the /etc/tripwire/tw.cfg and be used by Tripwire when it runs its integrity
check. Tripwire will not recognize any configuration changes until the configuration text file is cor-
rectly signed and used to replace the /etc/tripwire/tw.pol file.
If your altered configuration text file is /etc/tripwire/twcfg.txt, type this command to sign it,
replacing the current /etc/tripwire/tw.cfg file:
/usr/sbin/twadmin --create-cfgfile -S site.key /etc/tripwire/twcfg.txt
Since the configuration file does not not alter any Tripwire policies or files tracked by the application,
it is not necessary to regenerate the database of monitored system files.
12.12. Tripwire and Email
Tripwire can email someone if a specific type of rule in the policy file is violated. To configure Trip-
wire to do this, you first have to know the email address of the person to be contacted if a particular
integrity violation occurs, plus the name of the rule you would like to monitor. Note that on large sys-
tems with multiple administrators, you can have different sets of people notified for certain violations
and no one notified for minor violations.
Once you know who to notify and what to notify them about, add an emailto= line to the rule directive
section of each rule. Do this by adding a comma after the severity= line and putting emailto= on the
next line, followed by the email addresses to send the violation reports for that rule. Multiple emails
will be sent if more than one email address is specified and they are separated by a semi-colon.
Commenti su questo manuale