source: postlfs/security/tripwire.xml@ 3597eb6

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 3597eb6 was 3597eb6, checked in by Randy McMurchy <randy@…>, 18 years ago

Added the 'User Notes' wiki link to each package page; changed all instances of .[so,a] to .{so,a} (brackets changed to braces); changed all replaceable tags to use angle brackets instead of square brackets to encapsulate the text - commit #7

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5835 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY tripwire-download-http "http://www.frenchfries.net/paul/tripwire/tripwire-&tripwire-version;.tar.gz">
8 <!ENTITY tripwire-download-ftp " ">
9 <!ENTITY tripwire-md5sum "02610d0593fe04d35d809ff6c5becc02">
10 <!ENTITY tripwire-size "869 KB">
11 <!ENTITY tripwire-buildsize "22 MB">
12 <!ENTITY tripwire-time "2.96 SBU">
13]>
14
15<sect1 id="tripwire-portable" xreflabel="Tripwire-&tripwire-version;">
16 <?dbhtml filename="tripwire.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 <keywordset>
22 <keyword role="package">tripwire-&tripwire-version;.tar</keyword>
23 <keyword role="ftpdir">tripwire</keyword>
24 </keywordset>
25 </sect1info>
26
27 <title>Tripwire-&tripwire-version;</title>
28
29 <indexterm zone="tripwire-portable">
30 <primary sortas="a-Tripwire">Tripwire</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to Tripwire</title>
35
36 <para>The <application>Tripwire</application> package contains programs
37 used to verify the integrity of the files on a given system.</para>
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>Download (HTTP): <ulink url="&tripwire-download-http;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download (FTP): <ulink url="&tripwire-download-ftp;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download MD5 sum: &tripwire-md5sum;</para>
49 </listitem>
50 <listitem>
51 <para>Download size: &tripwire-size;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated disk space required: &tripwire-buildsize;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated build time: &tripwire-time;</para>
58 </listitem>
59 </itemizedlist>
60
61 <bridgehead renderas="sect3">Tripwire Dependencies</bridgehead>
62
63 <bridgehead renderas="sect4">Optional</bridgehead>
64 <para role="optional">MTA (See <xref linkend="server-mail"/>)</para>
65
66 <para condition="html" role="usernotes">User Notes:
67 <ulink url="&blfs-wiki;/tripwire"/></para>
68
69 </sect2>
70
71 <sect2 role="installation">
72 <title>Installation of Tripwire</title>
73
74 <para>Compile <application>Tripwire</application> by running the following
75 commands:</para>
76
77<screen><userinput>sed -i -e 's@TWDB="${prefix}@TWDB="/var@' install/install.cfg &amp;&amp;
78./configure --prefix=/usr --sysconfdir=/etc/tripwire &amp;&amp;
79make</userinput></screen>
80
81 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
82
83<screen role="root"><userinput>make install &amp;&amp;
84cp -v policy/*.txt /usr/share/doc/tripwire</userinput></screen>
85
86 <para>The default configuration is to use a local MTA. If
87 you don't have an MTA installed and have no wish to install
88 one, modify <filename>install.cfg</filename> to use an SMTP
89 server instead.</para>
90
91 </sect2>
92
93 <sect2 role="commands">
94 <title>Command Explanations</title>
95
96 <para><command>sed -i -e 's@TWDB="${prefix}@TWDB="/var@'
97 install/install.cfg</command>: This command tells the package to install
98 the program database and reports in
99 <filename class="directory">/var/lib/tripwire</filename>.</para>
100
101 <para><command>make install</command>: This command creates the
102 <application>Tripwire</application> security keys as well as installing
103 the binaries. There are two keys: a site key and a local key which are
104 stored in <filename class="directory">/etc/tripwire/</filename>.</para>
105
106 <para><command>cp -v policy/*.txt /usr/share/doc/tripwire</command>: This
107 command installs the documentation.</para>
108
109 </sect2>
110
111 <sect2 role="configuration">
112 <title>Configuring Tripwire</title>
113
114 <sect3 id="tripwire-config">
115 <title>Config Files</title>
116
117 <para><filename>/etc/tripwire/*</filename></para>
118
119 <indexterm zone="tripwire-portable tripwire-config">
120 <primary sortas="e-etc-tripwire">/etc/tripwire/*</primary>
121 </indexterm>
122
123 </sect3>
124
125 <sect3>
126 <title>Configuration Information</title>
127
128 <para><application>Tripwire</application> uses a policy file to
129 determine which files are integrity checked. The default policy
130 file (<filename>/etc/tripwire/twpol.txt</filename>) is for a
131 default Redhat installation and will need to be updated for your
132 system.</para>
133
134 <para>Policy files should be tailored to each individual distribution
135 and/or installation. Some custom policy files can be found below:</para>
136
137<literallayout><ulink url="http://home.iprimus.com.au/glombowski/blfs/twpol-all.txt"/>
138Checks integrity of all files
139<ulink url="http://home.iprimus.com.au/glombowski/blfs/twpol-lfs.txt"/>
140Custom policy file for Base LFS 3.0 system
141<ulink url="http://home.iprimus.com.au/glombowski/blfs/twpol-suse7.2.txt"/>
142Custom policy file for SuSE 7.2 system</literallayout>
143
144 <para>Download the custom policy file you'd like to try, copy it into
145 <filename class="directory">/etc/tripwire/</filename>, and use it instead
146 of <filename>twpol.txt</filename>. It is, however, recommended that you
147 make your own policy file. Get ideas from the examples above and read
148 <filename>/usr/share/doc/tripwire/policyguide.txt</filename> for
149 additional information. <filename>twpol.txt</filename> is a good policy
150 file for beginners as it will note any changes to the file system and can
151 even be used as an annoying way of keeping track of changes for
152 uninstallation of software.</para>
153
154 <para>After your policy file has been transferred to
155 <filename class="directory">/etc/tripwire/</filename> you may begin
156 the configuration steps (perform as the
157 <systemitem class='username'>root</systemitem>):</para>
158
159<screen role="root"><userinput>twadmin --create-polfile --site-keyfile /etc/tripwire/site.key \
160 /etc/tripwire/twpol.txt &amp;&amp;
161tripwire --init</userinput></screen>
162
163 </sect3>
164
165 <sect3>
166 <title>Usage Information</title>
167
168 <para>To use <application>Tripwire</application> after creating a policy
169 file to run a report, use the following command:</para>
170
171<screen role="root"><userinput>tripwire --check &gt; /etc/tripwire/report.txt</userinput></screen>
172
173 <para>View the output to check the integrity of your files. An automatic
174 integrity report can be produced by using a cron facility to schedule
175 the runs.</para>
176
177 <para>Please note that after you run an integrity check, you must
178 examine the report (or email) and then modify the
179 <application>Tripwire</application> database to reflect the changed
180 files on your system. This is so that <application>Tripwire</application>
181 will not continually notify you that files you intentionally changed are
182 a security violation. To do this you must first <command>ls -l
183 /var/lib/tripwire/report/</command> and note the name of the newest file
184 which starts with <filename>linux-</filename> and ends in
185 <filename>.twr</filename>. This encrypted file was created during the
186 last report creation and is needed to update the
187 <application>Tripwire</application> database of your system. Then, as the
188 <systemitem class='username'>root</systemitem> user, type
189 in the following command making the appropriate substitutions for
190 <replaceable>&lt;?&gt;</replaceable>:</para>
191
192<screen role="root"><userinput>tripwire --update -twrfile \
193 /var/lib/tripwire/report/linux-<replaceable>&lt;???????&gt;</replaceable>-<replaceable>&lt;??????&gt;</replaceable>.twr</userinput></screen>
194
195 <para>You will be placed into <application>vim</application> with a copy
196 of the report in front of you. If all the changes were good, then just
197 type <command>:x</command> and after entering your local key, the database
198 will be updated. If there are files which you still want to be warned
199 about, remove the 'x' before the filename in the report and type
200 <command>:x</command>.</para>
201
202 </sect3>
203
204 <sect3>
205 <title>Changing the Policy File</title>
206
207 <para>If you are unhappy with your policy file and would like to modify
208 it or use a new one, modify the policy file and then execute the following
209 commands as the <systemitem class='username'>root</systemitem> user:</para>
210
211<screen role="root"><userinput>twadmin --create-polfile /etc/tripwire/twpol.txt &amp;&amp;
212tripwire --init</userinput></screen>
213
214 </sect3>
215
216 </sect2>
217
218 <sect2 role="content">
219 <title>Contents</title>
220
221 <segmentedlist>
222 <segtitle>Installed Programs</segtitle>
223 <segtitle>Installed Libraries</segtitle>
224 <segtitle>Installed Directories</segtitle>
225
226 <seglistitem>
227 <seg>siggen, tripwire, twadmin, and twprint.</seg>
228 <seg>None</seg>
229 <seg>/etc/tripwire, /usr/share/doc/tripwire, and /var/lib/tripwire</seg>
230 </seglistitem>
231 </segmentedlist>
232
233 <variablelist>
234 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
235 <?dbfo list-presentation="list"?>
236 <?dbhtml list-presentation="table"?>
237
238 <varlistentry id="siggen">
239 <term><command>siggen</command></term>
240 <listitem>
241 <para>is a signature gathering utility that displays
242 the hash function values for the specified files.</para>
243 <indexterm zone="tripwire-portable siggen">
244 <primary sortas="b-siggen">siggen</primary>
245 </indexterm>
246 </listitem>
247 </varlistentry>
248
249 <varlistentry id='tripwire'>
250 <term><command>tripwire</command></term>
251 <listitem>
252 <para>is the main file integrity checking program.</para>
253 <indexterm zone="tripwire-portable tripwire">
254 <primary sortas="b-tripwire">tripwire</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258
259 <varlistentry id='twadmin'>
260 <term><command>twadmin</command></term>
261 <listitem>
262 <para>administrative and utility tool used to perform
263 certain administrative functions related to
264 <application>Tripwire</application> files and configuration
265 options.</para>
266 <indexterm zone="tripwire-portable twadmin">
267 <primary sortas="b-twadmin">twadmin</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id='twprint'>
273 <term><command>twprint</command></term>
274 <listitem>
275 <para>prints <application>Tripwire</application>
276 database and report files in clear text format.</para>
277 <indexterm zone="tripwire-portable twprint">
278 <primary sortas="b-twprint">twprint</primary>
279 </indexterm>
280 </listitem>
281 </varlistentry>
282
283 </variablelist>
284
285 </sect2>
286
287</sect1>
Note: See TracBrowser for help on using the repository browser.