X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=man%2Famcrypt.8;h=90d205cb6af6d1628bd521a33f25e81c7686a9a6;hb=2627875b7d18858bc1f9f7652811e4d8c15a23eb;hp=649fc819568f5726c34d27d1e698368ff908f468;hpb=12179dea039515c06168c0037d048566a3f623de;p=debian%2Famanda diff --git a/man/amcrypt.8 b/man/amcrypt.8 index 649fc81..90d205c 100644 --- a/man/amcrypt.8 +++ b/man/amcrypt.8 @@ -1,75 +1,235 @@ -.\"Generated by db2man.xsl. Don't modify this, modify the source. -.de Sh \" Subsection +.\" Title: amcrypt +.\" Author: Kevin Till +.\" Generator: DocBook XSL Stylesheets v1.74.0 +.\" Date: 01/22/2009 +.\" Manual: System Administration Commands +.\" Source: Amanda 2.6.1 +.\" Language: English +.\" +.TH "AMCRYPT" "8" "01/22/2009" "Amanda 2\&.6\&.1" "System Administration Commands" +.\" ----------------------------------------------------------------- +.\" * (re)Define some macros +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" toupper - uppercase a string (locale-aware) +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.de toupper +.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ +\\$* +.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz +.. +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" SH-xref - format a cross-reference to an SH section +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.de SH-xref +.ie n \{\ +.\} +.toupper \\$* +.el \{\ +\\$* +.\} +.. +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" SH - level-one heading that works better for non-TTY output +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.de1 SH +.\" put an extra blank line of space above the head in non-TTY output +.if t \{\ +.sp 1 +.\} +.sp \\n[PD]u +.nr an-level 1 +.set-an-margin +.nr an-prevailing-indent \\n[IN] +.fi +.in \\n[an-margin]u +.ti 0 +.HTML-TAG ".NH \\n[an-level]" +.it 1 an-trap +.nr an-no-space-flag 1 +.nr an-break-flag 1 +\." make the size of the head bigger +.ps +3 +.ft B +.ne (2v + 1u) +.ie n \{\ +.\" if n (TTY output), use uppercase +.toupper \\$* +.\} +.el \{\ +.nr an-break-flag 0 +.\" if not n (not TTY), use normal case (not uppercase) +\\$1 +.in \\n[an-margin]u +.ti 0 +.\" if not n (not TTY), put a border/line under subheading +.sp -.6 +\l'\n(.lu' +.\} +.. +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" SS - level-two heading that works better for non-TTY output +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.de1 SS +.sp \\n[PD]u +.nr an-level 1 +.set-an-margin +.nr an-prevailing-indent \\n[IN] +.fi +.in \\n[IN]u +.ti \\n[SN]u +.it 1 an-trap +.nr an-no-space-flag 1 +.nr an-break-flag 1 +.ps \\n[PS-SS]u +\." make the size of the head bigger +.ps +2 +.ft B +.ne (2v + 1u) +.if \\n[.$] \&\\$* +.. +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" BB/BE - put background/screen (filled box) around block of text +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.de BB +.if t \{\ +.sp -.5 .br -.if t .Sp -.ne 5 -.PP -\fB\\$1\fR -.PP +.in +2n +.ll -2n +.gcolor red +.di BX +.\} +.. +.de EB +.if t \{\ +.if "\\$2"adjust-for-leading-newline" \{\ +.sp -1 +.\} +.br +.di +.in +.ll +.gcolor +.nr BW \\n(.lu-\\n(.i +.nr BH \\n(dn+.5v +.ne \\n(BHu+.5v +.ie "\\$2"adjust-for-leading-newline" \{\ +\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] +.\} +.el \{\ +\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] +.\} +.in 0 +.sp -.5v +.nf +.BX +.in +.sp .5v +.fi +.\} .. -.de Sp \" Vertical space (when we can't use .PP) -.if t .sp .5v -.if n .sp +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" BM/EM - put colored marker in margin next to block of text +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.de BM +.if t \{\ +.br +.ll -2n +.gcolor red +.di BX +.\} .. -.de Ip \" List item +.de EM +.if t \{\ .br -.ie \\n(.$>=3 .ne \\$3 -.el .ne 3 -.IP "\\$1" \\$2 +.di +.ll +.gcolor +.nr BH \\n(dn +.ne \\n(BHu +\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] +.in 0 +.nf +.BX +.in +.fi +.\} .. -.TH "AMCRYPT" 8 "" "" "" -.SH "NAME" -amcrypt - reference crypt program for Amanda symmetric data encryption -.SH "SYNOPSIS" -.HP 8 +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "Name" +amcrypt \- reference crypt program for \fIAmanda\fR symmetric data encryption +.SH "Synopsis" +.fam C +.HP \w'\fBamcrypt\fR\ 'u \fBamcrypt\fR +.fam .SH "DESCRIPTION" .PP + \fBamcrypt\fR requires \fBaespipe\fR, \fBuuencode\fR and \fBgpg\fR -to work. Aespipe is available from +to work\&. Aespipe is available from : http://loop-aes.sourceforge.net .PP + \fBamcrypt\fR -will search for the aespipe program in the following directories: /usr/bin:/usr/local/bin:/sbin:/usr/sbin. -\fBamcrypt\fR calls \fBamaespipe\fR and pass the -\fBpassphrase\fR through file descriptor 3. -The passphrase should be stored in ~amanda/.am_passphrase. -.SH "HOW TO CREATE ENCRYPTION KEYS FOR AMCRYPT" +will search for the aespipe program in the following directories: /usr/bin:/usr/local/bin:/sbin:/usr/sbin\&. +.PP -1. Create 65 random encryption keys and encrypt those keys using gpg. Reading -from /dev/random may take indefinitely long if kernel's random entropy pool -is empty. If that happens, do some other work on some other console (use -keyboard, mouse and disks). +\fBamcrypt\fR +calls +\fBamaespipe\fR +and pass the +\fBpassphrase\fR +through file descriptor 3\&. The passphrase should be stored in ~amanda/\&.am_passphrase\&. +.SH "How to create encryption keys for amcrypt" +.PP +1\&. Create 65 random encryption keys and encrypt those keys using gpg\&. Reading from /dev/random may take indefinitely long if kernel\'s random entropy pool is empty\&. If that happens, do some other work on some other console (use keyboard, mouse and disks)\&. .PP -head -c 2925 /dev/random | uuencode -m - | head -n 66 | tail -n 65 \ | gpg --symmetric -a > ~amanda/.gnupg/am_key.gpg +head \-c 2925 /dev/random | uuencode \-m \- | head \-n 66 | tail \-n 65 \e | gpg \-\-symmetric \-a > ~amanda/\&.gnupg/am_key\&.gpg .PP -This will ask for a passphrase. Remember this passphrase as you will need it in the next step. +This will ask for a passphrase\&. Remember this passphrase as you will need it in the next step\&. .PP -2. Store the passphrase inside the home-directory of the AMANDA-user and protect it with proper permissions: +2\&. Store the passphrase inside the home\-directory of the AMANDA\-user and protect it with proper permissions: .nf - -echo my_secret_passphrase > ~amanda/.am_passphrase -chown amanda:disk ~amanda/.am_passphrase -chmod 700 ~amanda/.am_passphrase +echo my_secret_passphrase > ~amanda/\&.am_passphrase +chown amanda:disk ~amanda/\&.am_passphrase +chmod 700 ~amanda/\&.am_passphrase .fi -.SH "KEY AND PASSPHRASE" +.SH "Key and Passphrase" .PP -\fBamcrypt\fR -uses the same key to encrypt and decrypt data. -It is very important to store and protect the key and the passphrase -properly. Encrypted backup data can \fBonly\fR be recovered with the correct key and -passphrase. +\fBamcrypt\fR +uses the same key to encrypt and decrypt data\&. +.PP +It is very important to store and protect the key and the passphrase properly\&. Encrypted backup data can +\fBonly\fR +be recovered with the correct key and passphrase\&. .SH "SEE ALSO" .PP \fBamanda\fR(8), \fBamanda.conf\fR(5), \fBaespipe\fR(1), \fBamaespipe\fR(8), -\fBgpg\fR(1) - +\fBgpg\fR(1), +: http://wiki.zmanda.com +.SH "Author" +.PP +\fBKevin Till\fR <\&kevin\&.till@zmanda\&.com\&> +.RS 4 +Zmanda, Inc\&. (\FChttp://www\&.zmanda\&.com\F[]) +.RE