summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTW <tw@waldmann-edv.de>2022-04-10 14:01:08 +0200
committerGitHub <noreply@github.com>2022-04-10 14:01:08 +0200
commit76e8e4d78970a5ce9806585baf3bbf33d4fdf5c5 (patch)
tree0690f1403e0e0ad15f2d3c91b438d87327b9a281
parentcaba5bfa53eeff632d11e82dae279423908f700c (diff)
parent75e2efaf32607d5c21266f01a0fbb1bd33dc380b (diff)
Merge pull request #6559 from bcat/1.1-maint
(docs) 1.1: Recommend umask for passphrase file perms
-rw-r--r--docs/faq.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/faq.rst b/docs/faq.rst
index 248985c05..4574b9f42 100644
--- a/docs/faq.rst
+++ b/docs/faq.rst
@@ -538,8 +538,7 @@ Using ``BORG_PASSCOMMAND`` with a properly permissioned file
directory and use permissions to keep anyone else from reading it. For
example, first create a key::
- head -c 32 /dev/urandom | base64 -w 0 > ~/.borg-passphrase
- chmod 400 ~/.borg-passphrase
+ (umask 0077; head -c 32 /dev/urandom | base64 -w 0 > ~/.borg-passphrase)
Then in an automated script one can put::