tarsnap-keymgmt.1-man 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. .TH TARSNAP-KEYMGMT 1 "@DATE@" ""
  2. .SH NAME
  3. .ad l
  4. \fB\%tarsnap-keymgmt\fP
  5. \- generate subsets of
  6. \fBtarsnap\fP(1)
  7. key files
  8. .SH SYNOPSIS
  9. .ad l
  10. .br
  11. \fB\%tarsnap-keymgmt\fP
  12. \fB\--outkeyfile\fP \fInew-key-file\fP
  13. [\fB\-r\fP]
  14. [\fB\-w\fP]
  15. [\fB\-d\fP]
  16. [\fB\--nuke\fP]
  17. [\fB\--passphrased\fP]
  18. [\fB\--passphrase-mem\fP \fImaxmem\fP]
  19. [\fB\--passphrase-time\fP \fImaxtime\fP]
  20. \fIkey-file\fP ...
  21. .br
  22. \fB\%tarsnap-keymgmt\fP
  23. \fB\--print-key-id\fP \fIkey-file\fP
  24. .br
  25. \fB\%tarsnap-keymgmt\fP
  26. \fB\--print-key-permissions\fP \fIkey-file\fP
  27. .br
  28. \fB\%tarsnap-keymgmt\fP
  29. \fB\--version\fP
  30. .SH DESCRIPTION
  31. .ad l
  32. \fB\%tarsnap-keymgmt\fP
  33. reads the provided key files and writes a new key file
  34. (specified by
  35. \fB\--outkeyfile\fP \fInew-key-file\fP)
  36. containing only the keys required for the operations
  37. specified via the
  38. \fB\-r\fP
  39. (list and extract archives),
  40. \fB\-w\fP
  41. (write archives),
  42. \fB\-d\fP
  43. (delete archives), and
  44. \fB\--nuke\fP
  45. flags.
  46. Note that
  47. \fB\-d\fP
  48. implies
  49. \fB\-r\fP
  50. since it is impossible to delete an individual archive without
  51. being able to read it; while a key file generated with
  52. \fB\--nuke\fP
  53. can be used to delete all the archives stored, but not individual
  54. archives.
  55. .PP
  56. The following list shows which permissions are required for various
  57. \fBtarsnap\fP(1)
  58. .IR command modes.
  59. .RS 5
  60. .TP
  61. .IR --recover
  62. requires either (1)
  63. \fB\-d\fP
  64. (archive deleting), (2)
  65. \fB\-w\fP
  66. (archive creating), or (3)
  67. \fB\--nuke\fP
  68. keys.
  69. .TP
  70. .IR --fsck
  71. requires either (1) both
  72. \fB\-w\fP
  73. (archive writing) and
  74. \fB\-r\fP
  75. (archive reading) keys, or (2)
  76. \fB\-d\fP
  77. (archive deleting) keys.
  78. .TP
  79. .IR --fsck-prune
  80. requires
  81. \fB\-d\fP
  82. (archive deleting) keys, since it needs to be able to delete
  83. corrupted archives.
  84. .RE
  85. .PP
  86. If the
  87. \fB\--passphrased\fP
  88. option is specified, the user will be prompted to enter a passphrase (twice)
  89. to be used to encrypt the key file.
  90. .PP
  91. If the
  92. \fB\--passphrase-mem\fP \fImaxmem\fP
  93. option is specified, a maximum of
  94. \fImaxmem\fP
  95. bytes of RAM will be used in the scrypt key derivation function to
  96. encrypt the key file; it may be necessary to set this option if a key
  97. file is being created on a system with far more RAM than the system
  98. on which the key file will be used.
  99. .PP
  100. If the
  101. \fB\--passphrase-time\fP \fImaxtime\fP
  102. option is specified, a maximum of approximately
  103. \fImaxtime\fP
  104. seconds will be used in the scrypt key derivation function to encrypt
  105. the key file.
  106. .PP
  107. Note that if none of the
  108. \fB\-w\fP,
  109. \fB\-r\fP,
  110. \fB\-d\fP,
  111. or
  112. \fB\--nuke\fP
  113. options are specified, a key file will be produced which does not
  114. contain any keys.
  115. This is probably not very useful.
  116. .PP
  117. The
  118. \fB\--print-key-id\fP \fIkey-file\fP
  119. option displays the 64-bit integer corresponding to the key's machine number.
  120. This may be useful for scripts or GUIs which manage a user's Tarsnap account,
  121. but is not likely to be helpful for command-line use.
  122. .PP
  123. The
  124. \fB\--print-key-permissions\fP \fIkey-file\fP
  125. option displays the permissions which the key possesses.
  126. .PP
  127. The
  128. \fB\--version\fP
  129. option prints the version number of
  130. \fB\%tarsnap-keymgmt\fP,
  131. then exits.