File: twadmin.8

package info (click to toggle)
tripwire 2.4.3.7-3
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 7,224 kB
  • sloc: cpp: 57,898; sh: 6,006; perl: 2,735; yacc: 497; makefile: 437; lex: 356; ansic: 10
file content (564 lines) | stat: -rw-r--r-- 17,375 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
'\" t
.\" Do not move or remove previous line.
.\" Used by some man commands to know that tbl should be used.
.\"
.\" Macro added by TSS.
.\" The command mode descriptions run together visually, so
.\" macro Hr draws a horizontal rule to give some separation
.\" between modes.  Register Vs dithers the amount of vertical
.\" space before the rule, in lines.
.nr Vs 1
.de Hr
.ne \\n(Vs 2
.sp \\n(Vsli
.nr Oi \\n(.i
.in 0
\\l'\\n(.lu'
.in \\n(.iu
..
.ad l
.TH TWADMIN 8 "04 Jan 2018" "Open Source Tripwire 2.4"
.SH NAME
twadmin \- Tripwire administrative and utility tool
.SH SYNOPSIS
.B twadmin
.RB "{ " "\-m F" " | " "\-\-create\-cfgfile" " } "
.I " options... "
.if n .br
.if n .ti  .5i
.I "configfile.txt"
.br
.B twadmin
.RB "{ " "\-m f" " | " "\-\-print\-cfgfile" " } "
.RI "[ " options... " ]"
.br
.B twadmin
.RB "{ " "\-m P" " | " "\-\-create\-polfile" " } "
.RI "[ " options... " ] "
.if n .br
.if n .ti  .5i
.I "policyfile.txt"
.br
.B twadmin
.RB "{ " "\-m p" " | " "\-\-print\-polfile" " } "
.RI "[ " options... " ]"
.br
.B twadmin
.RB "{ " "\-m R" " | " "\-\-remove\-encryption" " } "
.RI "[ " options... " ] "
.if n .br
.if n .ti  .5i
.IR file1 " [ " file2... " ]"
.br
.B twadmin
.RB "{ " "\-m E" " | " "\-\-encrypt" " } "
.RI "[ " options... " ] "
.if n .br
.if n .ti  .5i
.IR file1 " [ " file2... " ]"
.br
.B twadmin
.RB "{ " "\-m e" " | " "\-\-examine" " } "
.RI "[ " options... " ] "
.if n .br
.if n .ti  .5i
.IR file1 " [ " file2... " ]"
.br
.B twadmin
.RB "{ " "\-m G" " | " "\-\-generate\-keys" " } "
.I options...
.br
.B twadmin
.RB "{ " "-m C" " | " "--change-passphrases" " } "
.I options...
.br
.SH DESCRIPTION
.PP
The \fBtwadmin\fR utility is used to perform certain administrative
functions related to \fITripwire\fR files and configuration options.
Specifically, \fBtwadmin\fR allows encoding, decoding,
signing, and verification of
\fITripwire\fR files, and provides a means to generate and change
local and site keys.
.\" *****************************************
.SS Creating a configuration file (\-\-create\-cfgfile)
This command mode designates an existing text file as the new
configuration file for \fITripwire\fR.
The plain text configuration
file must be specified on the command line.
Using the site key, the new configuration file
is encoded and saved.
.\" *****************************************
.SS Printing a configuration file (\-\-print\-cfgfile)
This command mode prints the specified encoded and signed
configuration file in clear-text form to standard output.  
.\" *****************************************
.SS Replacing a policy file (\-\-create\-polfile)
This command mode designates an existing text file as the new
policy file for \fITripwire\fR.
The plain text policy file must be specified on the 
command line.
Using the site key, the new policy file is encoded and saved.  
.\" *****************************************
.SS Printing a policy file (\-\-print\-polfile)
This command mode prints the
specified encoded and signed policy file
in clear-text form to standard output.  
.\" *****************************************
.SS Removing encryption from a file (\-\-remove\-encryption)
This command mode allows the user to remove signing from signed
configuration, policy, database, or report files.  Multiple
files may be specified on the command line. The
user will need to enter the appropriate local or site keyfile,
or both if a combination of files is to be verified. Even with the
cryptographic signing removed, these files will be in a binary encoded
(non-human-readable) form.
.\" *****************************************
.SS Encrypting a file (\-\-encrypt)
This command mode allows the user to sign
configuration, policy, database files, or reports.
Multiple files may be specified on the command line.
The files will be signed using either the site or local key,
as appropriate for the type of file.  
To automate the process, the passphrase for the key
files can be included on the command line.
.\" *****************************************
.hy 0
.SS "Examining the signing status of a file (\-\-examine)"
.hy 1
This command allows the user to examine the listed files
and print a report of their signing status.  This report
displays the filename, file type, whether or not a file is
signed, and what key (if any) is used to sign it.  
.\" *****************************************
.SS Generating keys (\-\-generate\-keys)
This command mode generates site and/or local key files with
names specified by the user.
.\" *****************************************
.SS Changing passphrases (--change-passphrases)
This command reencrypts the private part of the
site and/or local key files using the key filenames and passphrases
specified by the user.
.\" *****************************************
.if \n(.t<700 .bp
.SH OPTIONS
.\" *****************************************
.SS Creating a configuration file:
.RS 0.4i
.TS
;
lbw(1.2i) lb.
\-m F	\-\-create\-cfgfile
\-v	\-\-verbose
\-s	\-\-silent\fR,\fP \-\-quiet
\-c \fIcfgfile\fP	\-\-cfgfile \fIcfgfile\fP
\-S \fIsitekey\fP	\-\-site\-keyfile \fIsitekey\fP
\-Q \fIpassphrase\fP	\-\-site\-passphrase \fIpassphrase\fP
\-e	\-\-no\-encryption
.TE
.I configfile.txt
.RE
.TP
.BR "\-m F" ", " "\-\-create\-cfgfile"
Mode selector.
.TP
.BR \-v ", " \-\-verbose
Verbose output mode.  Mutually exclusive with (\fB\-s\fR).
.TP 
.BR \-s ", " \-\-silent ", " \-\-quiet
Silent output mode.  Mutually exclusive with (\fB\-v\fR).
.TP
.BI \-c " cfgfile\fR, " \-\-cfgfile " cfgfile"
Specify the destination of the encoded (and optionally signed)
configuration file.
.TP
.BI \-S " sitekey\fR, " \-\-site\-keyfile " sitekey"
Use the specified site key file to encode and sign the new
configuration file.
Exactly one of (\fB\-S\fR) or (\fB\-e\fP) must be specified.
.TP
.BI \-Q " passphrase\fR, " \-\-site\-passphrase " passphrase"
Specifies passphrase to be used with site key for
configuration file encoding and signing.
Valid only in conjunction with (\fB\-S\fR).
.TP
.BR \-e ", " \-\-no\-encryption
Do not sign the configuration file being stored.
The configuration
file will still be compressed, and will not be human-readable.
Mutually exclusive with (\fB\-Q\fR) and (\fB\-S\fR).
.TP
.I configfile.txt
Specifies the text configuration file that will become
the new configuration file.
.\" *****************************************
.Hr
.if \n(.t<700 .bp
.SS Printing a configuration file:
.RS 0.4i
.TS
;
lbw(1.2i) lb.
\-m f	\-\-print\-cfgfile
\-v	\-\-verbose
\-s	\-\-silent\fR,\fP \-\-quiet
\-c \fIcfgfile\fP	\-\-cfgfile \fIcfgfile\fP
.TE
.RE
.TP
.BR "\-m f" ", " "\-\-print\-cfgfile"
Mode selector.
.TP
.BR \-v ", " \-\-verbose
Verbose output mode.  Mutually exclusive with (\fB\-s\fR).
.TP 
.BR \-s ", " \-\-silent ", " \-\-quiet
Silent output mode.  Mutually exclusive with (\fB\-v\fR).
.TP
.BI \-c " cfgfile\fR, " \-\-cfgfile " cfgfile"
Print the specified configuration file.
.\" *****************************************
.Hr
.if \n(.t<700 .bp
.SS Creating a policy file:
.RS 0.4i
.TS
;
lbw(1.2i) lb.
\-m P	\-\-create\-polfile
\-v	\-\-verbose
\-s	\-\-silent\fR,\fP \-\-quiet
\-c \fIcfgfile\fP	\-\-cfgfile \fIcfgfile\fP
\-p \fIpolfile\fP	\-\-polfile \fIpolfile\fP
\-S \fIsitekey\fP	\-\-site\-keyfile \fIsitekey\fP
\-Q \fIpassphrase\fP	\-\-site\-passphrase \fIpassphrase\fP
\-e	\-\-no\-encryption
.TE
.I policyfile.txt
.RE
.TP
.BR "\-m P" ", " \-\-create\-polfile
Mode selector.
.TP
.BR \-v ", " \-\-verbose
Verbose output mode. Mutually exclusive with (\fB\-s\fR).
.TP 
.BR \-s ", " \-\-silent ", " \-\-quiet
Silent output mode.  Mutually exclusive with (\fB\-v\fR).
.TP
.BI \-c " cfgfile\fR, " \-\-cfgfile " cfgfile"
Use the specified configuration file.
.TP
.BI \-p " polfile\fR, " \-\-polfile " polfile"
Specify the destination of the encoded (and optionally signed) policy
file.
.TP
.BI \-S " sitekey\fR, " \-\-site\-keyfile " sitekey"
Use the specified site key file.  Mutually exclusive with (\fB\-e\fR).
.TP
.BI \-Q " passphrase\fR, " \-\-site\-passphrase " passphrase"
Specifies passphrase to be used with site key for policy signing.
Mutually exclusive with (\fB\-e\fR).
.TP
.BR \-e ", " \-\-no\-encryption
Do not sign the policy file being stored.  The policy
file will still be compressed, and will not be human-readable.
Mutually exclusive with (\fB\-Q\fR) and (\fB\-S\fR).
.TP
.I policyfile.txt
Specifies the text policy file that will become the new 
policy file.
.\" *****************************************
.Hr
.if \n(.t<700 .bp
.SS Printing a policy file:
.RS 0.4i
.TS
;
lbw(1.2i) lb.
\-m p	\-\-print\-polfile
\-v	\-\-verbose
\-s	\-\-silent\fR,\fP \-\-quiet
\-c \fIcfgfile\fP	\-\-cfgfile \fIcfgfile\fP
\-p \fIpolfile\fP	\-\-polfile \fIpolfile\fP
\-S \fIsitekey\fP	\-\-site\-keyfile \fIsitekey\fP
.TE
.RE
.TP
.BR "\-m p" ", " \-\-print\-polfile
Mode selector.
.TP
.BR \-v ", " \-\-verbose
Verbose output mode.  Mutually exclusive with (\fB\-s\fR).
.TP 
.BR \-s ", " \-\-silent ", " \-\-quiet
Silent output mode.  Mutually exclusive with (\fB\-v\fR).
.TP
.BI \-c " cfgfile\fR, " \-\-cfgfile " cfgfile"
Use the specified configuration file.
.TP
.BI \-p " polfile\fR, " \-\-polfile " polfile"
Print the specified policy file.
.TP
.BI \-S " sitekey\fR, " \-\-site\-keyfile " sitekey"
Use the specified site key file.
.\" *****************************************
.Hr
.if \n(.t<700 .bp
.SS Removing encryption from a file:
.RS 0.4i
.TS
;
lbw(1.2i) lb.
\-m R	\-\-remove\-encryption
\-v	\-\-verbose
\-s	\-\-silent\fR,\fP \-\-quiet
\-c \fIcfgfile\fP	\-\-cfgfile \fIcfgfile\fP
\-L \fIlocalkey\fP	\-\-local\-keyfile \fIlocalkey\fP
\-S \fIsitekey\fP	\-\-site\-keyfile \fIsitekey\fP
\-P \fIpassphrase\fP	\-\-local\-passphrase \fIpassphrase\fP
\-Q \fIpassphrase\fP	\-\-site\-passphrase \fIpassphrase\fP
.TE
.IR "file1" " [ " "file2..." " ]"
.RE
.TP
.BR "\-m R" ", " \-\-remove\-encryption
Mode selector.
.TP
.BR \-v ", " \-\-verbose
Verbose output mode.  Mutually exclusive with (\fB\-s\fR).
.TP
.BR \-s ", " \-\-silent ", " \-\-quiet
Silent output mode.  Mutually exclusive with (\fB\-v\fR).
.TP
.BI \-c " cfgfile\fR, " \-\-cfgfile " cfgfile"
Use the specified configuration file.
.TP
.BI \-L " localkey\fR, " \-\-local\-keyfile " localkey"
Specify the local keyfile to use to verify database files and reports.
.TP
.BI \-S " sitekey\fR, " \-\-site\-keyfile " sitekey"
Specify the site keyfile to use to verify configuration
and policy files.
.TP
.BI \-P " passphrase\fR, " \-\-local\-passphrase " passphrase"
Specify the passphrase to use when verifying with the
old local keyfile.
.TP
.BI \-Q " passphrase\fR, " \-\-site\-passphrase " passphrase"
Specify the passphrase to use when verifying with the
old site keyfile.
.TP
.IR file1 " [ " file2... " ]"
List of files from which signing is to be removed.
.\" *****************************************
.Hr
.if \n(.t<700 .bp
.SS Encrypting a file:
.RS 0.4i
.TS
;
lbw(1.2i) lb.
\-m E	\-\-encrypt
\-v	\-\-verbose
\-s	\-\-silent\fR,\fP \-\-quiet
\-c \fIcfgfile\fP	\-\-cfgfile \fIcfgfile\fP
\-L \fIlocalkey\fP	\-\-local\-keyfile \fIlocalkey\fP
\-S \fIsitekey\fP	\-\-site\-keyfile \fIsitekey\fP
\-P \fIpassphrase\fP	\-\-local\-passphrase \fIpassphrase\fP
\-Q \fIpassphrase\fP	\-\-site\-passphrase \fIpassphrase\fP
.TE
.IR "file1" " [ " "file2..." " ]"
.RE
.TP
.BR "\-m E" ", " \-\-encrypt
Mode selector.
.TP
.BR \-v ", " \-\-verbose
Verbose output mode.  Mutually exclusive with (\fB\-s\fR).
.TP
.BR \-s ", " \-\-silent ", " \-\-quiet
Silent output mode.  Mutually exclusive with (\fB\-v\fR).
.TP
.BI \-c " cfgfile\fR, " \-\-cfgfile " cfgfile"
Use the specified configuration file.
.TP
.BI \-L " localkey\fR, " \-\-local\-keyfile " localkey"
Specify the local keyfile to use to sign database
files and reports.
.TP
.BI \-S " sitekey\fR, " \-\-site\-keyfile " sitekey"
Specify the site keyfile to use to sign configuration
and policy files.
.TP
.BI \-P " passphrase\fR, " \-\-local\-passphrase " passphrase"
Specify the passphrase to use when signing with the 
local keyfile.
.TP
.BI \-Q " passphrase\fR, " \-\-site\-passphrase " passphrase"
Specify the passphrase to use when signing with the 
site keyfile.
.TP
.IR file1 " [ " file2... " ]"
List of files to sign using the new key(s).
.\" *****************************************
.Hr
.if \n(.t<700 .bp
.SS "Examining the encryption status of a file:"
.RS 0.4i
.TS
;
lbw(1.2i) lb.
\-m e	\-\-examine
\-v	\-\-verbose
\-s	\-\-silent\fR,\fP \-\-quiet
\-c \fIcfgfile\fP	\-\-cfgfile \fIcfgfile\fP
\-L \fIlocalkey\fP	\-\-local\-keyfile \fIlocalkey\fP
\-S \fIsitekey\fP	\-\-site\-keyfile \fIsitekey\fP
.TE
.IR file1 " [ " file2... " ]"
.RE
.TP
.BR "\-m e" ", " \-\-examine
Mode selector.
.TP
.BR \-v ", " \-\-verbose
Verbose output mode.  Mutually exclusive with (\fB\-s\fR).
.TP
.BR \-s ", " \-\-silent ", " \-\-quiet
Silent output mode.  Mutually exclusive with (\fB\-v\fR).
.TP
.BI \-c " cfgfile\fR, " \-\-cfgfile " cfgfile"
Use the specified configuration file.
.TP
.BI \-L " localkey\fR, " \-\-local\-keyfile " localkey"
Specifies the key to use as a local key.
.TP
.BI \-S " sitekey\fR, " \-\-site\-keyfile " sitekey"
Specifies the key to use as a site key.
.TP
.IR file1 " [ " file2... " ]"
List of files to examine.
.\" *****************************************
.Hr
.if \n(.t<700 .bp
.SS Generating keys:
.RS 0.4i
.TS
;
lbw(1.2i) lb.
\-m G	\-\-generate\-keys
\-v	\-\-verbose
\-s	\-\-silent\fR,\fP \-\-quiet
\-L \fIlocalkey\fP	\-\-local\-keyfile \fIlocalkey\fP
\-S \fIsitekey\fP	\-\-site\-keyfile \fIsitekey\fP
\-P \fIpassphrase\fP	\-\-local\-passphrase \fIpassphrase\fP
\-Q \fIpassphrase\fP	\-\-site\-passphrase \fIpassphrase\fP
.TE
.RE
.TP
.BR "\-m G" ", " \-\-generate\-keys
Mode selector.
.TP
.BR \-v ", " \-\-verbose
Verbose output mode.  Mutually exclusive with (\fB\-s\fR).
.TP
.BR \-s ", " \-\-silent ", " \-\-quiet
Silent output mode.  Mutually exclusive with (\fB\-v\fR).
.TP
.BI \-L " localkey\fR, " \-\-local\-keyfile " localkey"
Generate the local key into the specified file.  At least one of
(\fB\-L\fR) or (\fB\-S\fR) must be specified.
.TP
.BI \-S " sitekey\fR, " \-\-site\-keyfile " sitekey"
Generate the site key into the specified file.  At least one of
(\fB\-S\fR) or (\fB\-L\fR) must be specified.
.TP
.BI \-P " passphrase\fR, " \-\-local\-passphrase " passphrase"
Specify local passphrase to be used when generating
the local key.
.TP
.BI \-Q " passphrase\fR, " \-\-site\-passphrase " passphrase"
Specify site passphrase to be used when generating
the site key.
.TP
.BI \(hyK " size\fR, " --key-size " size"
Specify the key size (1024 or 2048 bits) when generating
keys. (Default is 1024.)
.\" *****************************************
.Hr
.if \n(.t<700 .bp
.SS Changing passphrases:
.RS 0.4i
.TS
;
lbw(1.2i) lb.
-m C	--change-passphrases
-v	--verbose
-s	--silent\fR,\fP --quiet
-L \fIlocalkey\fP	--local-keyfile \fIlocalkey\fP
-S \fIsitekey\fP	--site-keyfile \fIsitekey\fP
-P \fIpassphrase\fP	--local-passphrase \fIpassphrase\fP
-Q \fIpassphrase\fP	--site-passphrase \fIpassphrase\fP
	--local-passphrase-old \fIpassphraseOld\fP
	--site-passphrase-old \fIpassphraseOld\fP
.TE
.RE
.TP
.BR "\-m C" ", " --change-passphrases
Mode selector.
.TP
.BR \-v ", " --verbose
Verbose output mode.  Mutually exclusive with (\fB\-s\fR).
.TP
.BR \-s ", " --silent ", " --quiet
Silent output mode.  Mutually exclusive with (\fB\-v\fR).
.TP
.BI \-L " localkey\fR, " --local-keyfile " localkey"
Change passphrase used to encrypt the private key in the specified localkey
file.  At least one of (\fB\-L\fR) or (\fB\-S\fR) must be specified.
.TP
.BI \-S " sitekey\fR, " --site-keyfile " sitekey"
Change passphrase used to encrypt the private key in the specified sitekey
file.  At least one of (\fB\-L\fR) or (\fB\-S\fR) must be specified.
.TP
.BI \-P " passphrase\fR, " --local-passphrase " passphrase"
Specify passphrase used to encrypt the private key in the specified localkey
file.
.TP
.BI \-Q " passphrase\fR, " --site-passphrase " passphrase"
Specify passphrase used to encrypt the private key in the specified sitekey
file.
.TP
.BI --local-passphrase-old " passphraseOld"
Specify passphrase used to decrypt the private key in the specified localkey
file.
.TP
.BI --site-passphrase-old " passphraseOld"
Specify passphrase used to decrypt the private key in the specified sitekey
file.
.\" *****************************************
.SH EXIT STATUS
\fBtwadmin\fP exits 0 on success, 1 on error.
.SH VERSION INFORMATION
This man page describes
.B twadmin
version 2.4.
.SH AUTHORS
Tripwire, Inc.
.SH COPYING PERMISSIONS
Permission is granted to make and distribute verbatim copies of this man page provided the copyright notice and this permission notice are preserved on all copies.
.PP
Permission is granted to copy and distribute modified versions of this man page under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.
.PP
Permission is granted to 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.
.PP
Copyright 2000-2018 Tripwire, Inc. Tripwire is a registered trademark of Tripwire, Inc. in the United States and other countries. All rights reserved.
.SH SEE ALSO
.BR twintro (8),
.BR tripwire (8),
.BR twprint (8),
.BR siggen (8),
.BR twconfig (4),
.BR twpolicy (4),
.BR twfiles (5)