Use -o instead of stdout redirect with paperkey
Using -o makes sure that the file is created with 0600 permissions instead of whatever the default umask setting is. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
This commit is contained in:
parent
51be7788df
commit
51026930ef
2 changed files with 2 additions and 2 deletions
|
@ -275,7 +275,7 @@ Paperkey should already be packaged for most distributions.
|
|||
|
||||
Run the following command to create a hardcopy backup of your private key:
|
||||
|
||||
$ gpg --export-secret-key [fpr] | paperkey > /tmp/key-backup.txt
|
||||
$ gpg --export-secret-key [fpr] | paperkey -o /tmp/key-backup.txt
|
||||
|
||||
Print out that file (or pipe the output straight to lpr), then take a pen and
|
||||
write your passphrase on the margin of the paper. **This is strongly
|
||||
|
|
|
@ -390,7 +390,7 @@ all Linux distros, as well as installable via `brew install paperkey` on Macs.
|
|||
Run the following command, replacing `[fpr]` with the full fingerprint of your
|
||||
key:
|
||||
|
||||
$ gpg --export-secret-key [fpr] | paperkey > /tmp/key-backup.txt
|
||||
$ gpg --export-secret-key [fpr] | paperkey -o /tmp/key-backup.txt
|
||||
|
||||
The output will be in a format that is easy to OCR or input by hand, should
|
||||
you ever need to recover it. Print out that file, then take a pen and write
|
||||
|
|
Loading…
Reference in a new issue