Reconfiguring the Tripwire database for administrative access
About this task
Because the Tripwire database is installed by an automated procedure, it is set up with passphrases that are not reusable. For administrative access to the Tripwire database, you must manually reinstall and reconfigure it.
Procedure
Log in as root.
Stop the Tripwire service by typing the following command: service tripwire stop.
Delete the Tripwire configuration file, the policy file, and all key files by typing the following commands:
rm /etc/tripwire/tw.cfg
rm /etc/tripwire/tw.pol
rm /etc/tripwire/*.key
Delete the Tripwire database file by typing the following command: rm /var/lib/tripwire/*.twd
Configure Tripwire by typing the following command:
/etc/tripwire/cmds/twinstall.sh
When prompted, type unique passphrases for the site key and the local key.
Each passphrase must consist of at least eight alphanumeric and symbolic characters (quotation marks should not be used). The maximum length of a passphrase is 1023 characters.
Reinitialize the tripwire database by typing the following command:
tripwire --init
Note
Ignore "No such file or directory" messages.
Start the tripwire service by typing the following command: