source: postlfs/security/tripwire.xml@ bfb7882

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.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 bfb7882 was 0bc6cf76, checked in by Randy McMurchy <randy@…>, 19 years ago

Typo fixes in Chapter 4 package instructions

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

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