1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 17:27:31 +00:00

Merge pull request #6524 from bcat/patch-1

(docs) Recommend umask for passphrase file perms
This commit is contained in:
TW 2022-04-03 17:57:50 +02:00 committed by GitHub
commit 269b948284
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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::