Changeset 315

Show
Ignore:
Timestamp:
08/31/08 19:24:15 (3 months ago)
Author:
mbr
Message:

- Added --sign and --verify options.
- Fixed dash vs. minus sign fix noticed by Franck Joncourt:

http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gpgdir/trunk/gpgdir.1

    r293 r315  
    66.B gpgdir 
    77.SH SYNOPSIS 
    8 .B gpgdir -e|-d <directory> [options] 
     8.B gpgdir \-e|\-d <directory> [options] 
    99.SH DESCRIPTION 
    1010.B gpgdir 
     
    1616the mtime and atime values of all files will be preserved upon encryption and 
    1717decryption (this can be disabled with the 
    18 .B --no-preserve-times 
     18.B \-\-no-preserve-times 
    1919option).  Note that in 
    20 .B --encrypt 
     20.B \-\-encrypt 
    2121mode, gpgdir will delete the original files that 
    2222it successfully encrypts (unless the 
    23 .B --no-delete 
     23.B \-\-no-delete 
    2424option is given).  However, 
    2525upon startup gpgdir first asks for a the decryption password to be sure that a 
    2626dummy file can successfully be encrypted and decrypted.  The initial test can 
    2727be disabled with the 
    28 .B --skip-test 
     28.B \-\-skip-test 
    2929option so that a directory can easily be encrypted without having to also 
    3030specify a password (this is consistent with 
     
    4141.B wipe 
    4242program with the 
    43 .B --Wipe 
     43.B \-\-Wipe 
    4444command line option to securely delete the original unencrypted files after they 
    4545have been successfully encrypted.  This elevates the security stance of gpgdir 
     
    5151.TP 
    5252.BR \-e ", " \-\^\-encrypt\ \<directory> 
    53 Encrypt the directory specified on the command line. 
     53Recursively encrypt all files in the directory specified on the command line. 
     54All original files will be deleted (a password check is performed first to make 
     55sure that the correct password to unlock the private GnuPG key is known to the 
     56user). 
    5457.TP 
    5558.BR \-d ", " \-\^\-decrypt\ \<directory> 
    56 Decrypt the directory specified on the command line. 
     59Recursively decrypt all files in the directory specified on the command line. 
     60The encrypted .gpg version of each file will be deleted. 
     61.TP 
     62.BR \-\^\-sign\ \<directory> 
     63Recursively sign all files in the directory specified on the command line.  For 
     64each file, a detached .asc signature will be created. 
     65.TP 
     66.BR \-\^\-verify\ \<directory> 
     67Recursively verify all .asc signatures for files in the directory specified on the 
     68command line. 
    5769.TP 
    5870.BR \-g ", " \-\^\-gnupg-dir\ \<directory> 
     
    7082Run an encryption and decryption test against a dummy file and exit.  This 
    7183test is always run by default in both 
    72 .B --encrypt 
     84.B \-\-encrypt 
    7385and 
    74 .B --decrypt 
     86.B \-\-decrypt 
    7587mode. 
    7688.TP 
     
    102114.B pattern 
    103115as a regex match against each filename.  This is similar to the 
    104 .B --exclude 
     116.B \-\-exclude 
    105117option in the standard GNU tar command. 
    106118.TP 
     
    109121.B file. 
    110122This is similar to the 
    111 .B --exclude-from 
     123.B \-\-exclude-from 
    112124the GNU tar command. 
    113125.TP 
     
    129141Tell 
    130142.B gpgdir 
    131 to obfuscate the file names of files that it encrypts (in -e mode).  The 
     143to obfuscate the file names of files that it encrypts (in \-e mode).  The 
    132144names of each file are stored within the file .gpgdir_map_file for every 
    133 sub-directory, and this file is itself encrypted.  In decryption mode (-d), 
    134 the -O argument reverses the process so that the original files are 
     145sub-directory, and this file is itself encrypted.  In decryption mode (\-d), 
     146the \-O argument reverses the process so that the original files are 
    135147restored. 
    136148.TP 
     
    168180Specify the value of the GPG_AGENT_INFO environment variable as returned 
    169181by the 
    170 .B gpg-agent --daemon 
     182.B gpg-agent \-\-daemon 
    171183command. If the 
    172 .B gpgdir --agent 
     184.B gpgdir \-\-agent 
    173185command line argument is used instead of 
    174 .B --Agent-info, 
     186.B \-\-Agent-info, 
    175187then gpgdir assumes that the GPG_AGENT_INFO environment variable has already 
    176188been set in the current shell. 
     
    229241To encrypt a directory: 
    230242.PP 
    231 .B $ gpgdir -e /some/dir 
     243.B $ gpgdir \-e /some/dir 
    232244.PP 
    233245To encrypt a directory, and use the wipe command to securely delete the original 
    234246unencrypted files: 
    235247.PP 
    236 .B $ gpgdir -W -e /some/dir 
     248.B $ gpgdir \-W \-e /some/dir 
    237249.PP 
    238250To encrypt a directory with the default GnuPG key defined in ~/.gnupg/options: 
    239251.PP 
    240 .B $ gpgdir -e /some/dir --Default-key 
     252.B $ gpgdir \-e /some/dir \-\-Default-key 
    241253.PP 
    242254To decrypt a directory with a key specified in ~/.gpgdirrc: 
    243255.PP 
    244 .B $ gpgdir -d /some/dir 
     256.B $ gpgdir \-d /some/dir 
    245257.PP 
    246258To encrypt a directory but skip all filenames that contain the string "host": 
    247259.PP 
    248 .B $ gpgdir -e /some/dir --Exclude host 
     260.B $ gpgdir \-e /some/dir \-\-Exclude host 
    249261.PP 
    250262To encrypt a directory but only encrypt those files that contain the string "passwd": 
    251263.PP 
    252 .B $ gpgdir -e /some/dir --Include passwd 
     264.B $ gpgdir \-e /some/dir \-\-Include passwd 
    253265.PP 
    254266To acquire the GnuPG key password from a running gpg-agent daemon in order to decrypt 
    255267a directory (this requires that gpg-agent has the password): 
    256268.PP 
    257 .B $ gpgdir -A /tmp/gpg-H4DBhc/S.gpg-agent:7046:1 -d /some/dir 
     269.B $ gpgdir \-A /tmp/gpg-H4DBhc/S.gpg-agent:7046:1 \-d /some/dir 
    258270.PP 
    259271To encrypt a directory but skip the encryption/decryption test (so you will 
    260272not be prompted for a decryption password): 
    261273.PP 
    262 .B $ gpgdir -e /some/dir -s 
     274.B $ gpgdir \-e /some/dir \-s 
    263275.PP 
    264276To encrypt a directory and no subdirectories: 
    265277.PP 
    266 .B $ gpgdir -e /some/dir --no-recurse 
     278.B $ gpgdir \-e /some/dir \-\-no-recurse 
    267279.PP 
    268280To encrypt root's home directory, but use the GnuPG keys associated with the user "bob": 
    269281.PP 
    270 .B # gpgdir -e /root -g /home/bob/.gnupg 
     282.B # gpgdir \-e /root \-g /home/bob/.gnupg 
    271283.PP 
    272284.SH DEPENDENCIES