Преглед изворни кода

Merge pull request #6524 from bcat/patch-1

(docs) Recommend umask for passphrase file perms
TW пре 3 година
родитељ
комит
269b948284
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      docs/faq.rst

+ 1 - 2
docs/faq.rst

@@ -569,8 +569,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::