source: postlfs/security/tripwire.xml@ 15b3bc29

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 15b3bc29 was 15b3bc29, checked in by Randy McMurchy <randy@…>, 17 years ago

Modified all the Sourceforge download links to use the new standard Sourceforge has implemented

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

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