TWCONFIG(4)
π twconfig(4) β Tripwire configuration file reference π
Okay so this is the twconfig(4) page from the Kernel Interfaces Manual, and it's literally the whole lore of the Tripwire configuration file. Bestie, grab your iced coffee β we're going through every keyword, default, and caveat. π
πΈ NAME πΈ
twconfig β Tripwire configuration file reference. That's the vibe. β¨
β¨ DESCRIPTION β¨
The configuration file stores system-specific information, including the location of Tripwire data files, and the settings used to send email notification. It's giving main character energy for your Tripwire setup, ngl.
The configuration file settings are generated during the installation process, but can be changed by the system administrator at any time. The configuration file is signed with the site key, and the site passphrase is required to edit the file. So yeah β no passphrase, no edits, periodt.
During installation, a signed Tripwire configuration file tw.cfg will be created in the /etc/tripwire directory, and a plain text copy of this configuration file twcfg.txt will be created in the same directory.
The configuration file is modified using the twadmin ββcreateβcfgfile command. With this command, the user can designate an existing plain text file as the current configuration file. Using the current site key and passphrase, the new configuration file is cryptographically signed and saved with this command. Slay. π₯
π§© Components of the Configuration File π§©
The Tripwire configuration file is structured as a list of keyword-value pairs, and may also contain comments and variable definitions. Any lines with # in the first column are treated as comments.
The general syntax for variable definition is:
keyword = value
For example:
ROOT = /usr/tripwire
EDITOR = /usr/local/bin/jove
Variable substitution on the right hand side is permitted using the syntax:
$( varname )
For example:
DBFILE = $(ROOT)/db/$(HOSTNAME).twd
Variable names are case-sensitive, and may contain all alphanumeric characters, underscores, the characters "+β@:", and the period. Two variables are predefined in the configuration file, and may not be changed. HOSTNAME is the unqualified hostname that Tripwire is running on, and DATE is a string representation of the date and time.
π Required Variables π
The following variables must be set in order for Tripwire to operate. The values listed below are assigned during installation. No skips, bestie. π
POLFILEβ Default =/etc/tripwire/tw.polDBFILEβ Default =/var/lib/tripwire/$(HOSTNAME).twdREPORTFILEβ Default =/var/lib/tripwire/report/$(HOSTNAME)-$(DATE).twrSITEKEYFILEβ Default =/etc/tripwire/site.keyLOCALKEYFILEβ Default =/etc/tripwire/$(HOSTNAME)-local.key
π¦ Other Variables π¦
The following variables are not required to run Tripwire, but some of the program's functionality will be lost without them. The values assigned during installation are listed. They're lowkey optional but highkey useful. π«Ά
EDITORβ Specifies an editor to be used in interactive modes. IfEDITORis not defined, and no editor is specified on the command line, using interactive modes will cause an error. Initial value:/bin/viTEMPDIRECTORYβ This variable can be set to the location to whichtripwireshould write its temporary files. By default it is/tmp, which due to the default permissions can be very insecure. It is recommended that you use this configuration variable to providetripwirewith a secure place to write temporary files. The directory used should have its permissions set such that only the owning process can read/write to it, i.e."chmod 700". Initial value:/tmpGLOBALEMAILβ This variable is set to a list of email addresses separated by either a comma",", or semi-colon";". If a report would have normally been sent out, it will also be sent to this list of recipients. Initial value:noneLATEPROMPTINGβ Prompt for passphrase as late as possible to minimize the amount of time that the passphrase is stored in memory. If the value istrue(case-sensitive), then late prompting is turned on. With any other value, or if the variable is removed from the configuration file, late prompting is turned off. Initial value:falseLOOSEDIRECTORYCHECKINGβ When a file is added or removed from a directory, Tripwire reports both the changes to the file itself, and the modification to the directory (size, num links, etc.). This can create redundant entries in Tripwire reports. With loose directory checking, Tripwire will not check directories for any properties that would change when a file was added or deleted. This includes: size, number of links, access time, change time, modification time, number of blocks, growing file, and all hashes. If the value for this variable istrue(case-sensitive), then loose directory checking is turned on, and these properties will be ignored for all directories. With any other value, or if the variable is removed from the configuration file, loose directory checking is turned off. Turning loose directory checking on is equivalent to appending the following propertymask to the rules for all directory inodes:βsnacmblCMSHInitial value:falseSYSLOGREPORTINGβ If this variable is set totrue, messages are sent to the syslog for four events: database initialization, integrity check completions, database updates, and policy updates. The syslog messages are sent from the"user"facility at the"notice"level. For more information, see thesyslogd(1)man page and thesyslog.conffile. The following illustrates the information logged in the syslog for each of the four events:
Jun 18 14:09:42 lighthouse tripwire[9444]: Database initialized:
/var/lib/tripwire/test.twd
Jun 18 14:10:57 lighthouse tripwire[9671]: Integrity Check Complete:
TWReport lighthouse 20000618141057 V:2 S:90 A:1 R:0 C:1
Jun 18 14:11:19 lighthouse tripwire[9672]: Database Update Complete:
/var/lib/tripwire/test.twd
Jun 18 14:18:26 lighthouse tripwire[9683]: Policy Update Complete:
/var/lib/tripwire/test.twd
The letters in the Integrity Checking log correspond to # of violations, maximum severity level, and # of files added, deleted, and changed, respectively. With any value other than true, or if this variable is removed from the configuration file, syslog reporting will be turned off. Initial value: true
REPORTLEVELβ Specifies the default level of report produced by thetwprint ββprint-reportmode. Valid values for this option are0to4. The report level specified by this option can be overridden with the (βtorββreportβlevel) option on the command line. If this variable is not included in the configuration file, the default report level is3. Note that only reports printed using thetwprint ββprint-reportmode are affected by this parameter; reports displayed by other modes and other commands are not affected. Initial value:3DBPRINTLEVELβ Specifies the default level of report produced by thetwprint ββprint-dbfilemode. Valid values for this option are0to2. The output level specified by this option can be overridden with the (βtorββoutputβlevel) option on the command line. If this variable is not included in the configuration file, the default output level is2. Initial value:2HASH_DIRECT_IOβ Use direct i/o when hashing files. (Linux-only as of OST 2.4.3.2) Initial value:falseRESOLVE_IDS_TO_NAMESβ Specifies whether to resolve uid/gid values to user & group names. Static binaries may segfault while callinggetpwuid/getgrgidin certainnsswitch.confconfigurations, and setting this tofalsewill bypass the name resolution step and prevent the segfault. Initial value:true
π Email Notification Variables π
MAILMETHODβ Specifies the protocol to be used by Tripwire for email notification. The only acceptable values for this field areSMTPorSENDMAIL. Any other value will produce an error message. Initial value:SENDMAILSMTPHOSTβ Specifies the domain name or IP address of the SMTP server used for email notification. Ignored unlessMAILMETHODis set toSMTP. Initial value:mail.domain.comSMTPPORTβ Specifies the port number used with SMTP. Ignored unlessMAILMETHODis set toSMTP. Initial value:25MAILPROGRAMβ Specifies the program used for email reporting of rule violations ifMAILMETHODis set toSENDMAIL. The program must take an RFC822 style mail header, and recipients will be listed in the"To:"field of the mail header. Some mail programs interpret a line consisting of only a single period character to mean endβofβinput, and all text after that is ignored. Since there is a small possibility that a Tripwire report would contain such a line, the mail program specified must be able to ignore lines that consist of a single period (the-oioption tosendmailproduces this behavior). Initial value:/usr/lib/sendmail -oi -tEMAILREPORTLEVELβ Specifies the default level of report produced by thetripwire ββcheckmode email report. Valid values for this option are0to4. The report level specified by this option can be overridden with the (βtorββemailβreportβlevel) option on the commandβline. If this variable is not included in the configuration file, the default report level is3. Initial value:3MAILNOVIOLATIONSβ This option controls the way that Tripwire sends email notification if no rule violations are found during an integrity check. IfMAILNOVIOLATIONSis set tofalseand no violations are found, Tripwire will not send a report. With any other value, or if the variable is removed from the configuration file, Tripwire will send an email message stating that no violations were found. Mailing reports of no violations allows an administrator to distinguish between unattended integrity checks that are failing to run and integrity checks that are running but are not finding any violations. However, mailing no violations reports will increase the amount of data that must be processed. Initial value:trueMAILFROMADDRESSβ Specifies the value of the"From:"field in email reports. Initial value:tripwire@hostname, where'hostname'is the local machine name.
π VERSION INFORMATION π
This man page describes Tripwire 2.4.
π AUTHORS π
Tripwire, Inc.
π COPYING PERMISSIONS π
okay bestie, legal time, but make it cute π β this is the part where the manpage says what you're allowed to do with the manpage itself. yes, the page has lore.
- Verbatim copies? Go off. You're totally allowed to make and distribute verbatim copies of this man page β but only if the copyright notice and this permission notice stay preserved on all copies. like, don't be the person who strips the credits, that's not the vibe π
- Modified versions? Also fine, with conditions. You can copy and distribute modified versions of this man page under the same conditions as verbatim copying β provided that the entire resulting derived work gets distributed under the terms of a permission notice identical to this one. same energy, same notice, no shortcuts π
- Translations? Slay, yes. You can copy and distribute translations of this man page into another language, under the above conditions for modified versions β except that this permission notice may be stated in a translation approved by Tripwire, Inc. so like, get your translation of the notice blessed first, iykyk β¨
Copyright 2000-2018 Tripwire, Inc. Tripwire is a registered trademark of Tripwire, Inc. in the United States and other countries. All rights reserved. π
π SEE ALSO π
bestie, your reading list πβ¨ go click around, it's giving "lore deep dive":
twintro(8)β the intro vibestripwire(8)β the main character itself πtwadmin(8)β admin thingstwprint(8)β printing thingssiggen(8)β signature generation, iconictwpolicy(4)β policy files, the rules of the gametwfiles(5)β file formats fr frsendmail(1)β mail stuffvi(1)β the editor, no capsyslogd(1)β logging, lowkey essential
okay that's the whole page, you made it to the end!! π«Ά This one's from Open Source Tripwire 2.4, dated 04 Jan 2018, and it's page TWCONFIG(4) β go forth and configure responsibly, bestie ππ¦πΈ
π¦ where this page comes from
- epel 10: tripwire 2.4.3.7-20.el10_2 Β· GPL-2.0-or-later
- epel 9: tripwire 2.4.3.7-16.el9 Β· GPL-2.0-or-later
- fedora 43: tripwire 2.4.3.7-20.fc43 Β· GPL-2.0-or-later
- fedora 44: tripwire 2.4.3.7-21.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: tripwire 2.4.3.7-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: tripwire 2.4.3.7-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: tripwire 2.4.3.7-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: tripwire 2.4.3.7-bp160.1.12 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms