diff --git a/docs/faq.rst b/docs/faq.rst index b3c3d7317..bbf81f15b 100644 --- a/docs/faq.rst +++ b/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::