From 9660fcb26977b4bc5916351696fa9bf4e17932b3 Mon Sep 17 00:00:00 2001 From: John Internet Date: Thu, 2 Jan 2020 16:00:19 +0000 Subject: [PATCH] Make sure permissions are set. --- hosts-add | 3 ++- hosts-clear | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hosts-add b/hosts-add index b7e1e97..3c60c30 100644 --- a/hosts-add +++ b/hosts-add @@ -1,3 +1,4 @@ #!/bin/sh -echo "$@" >> ~/.ssh/known_hosts \ No newline at end of file +echo "$@" >> ~/.ssh/known_hosts +chmod 0664 ~/.ssh/known_hosts \ No newline at end of file diff --git a/hosts-clear b/hosts-clear index 2dde0b0..fd5f9aa 100644 --- a/hosts-clear +++ b/hosts-clear @@ -1,3 +1,4 @@ #!/bin/sh -truncate -s 0 ~/.ssh/known_hosts \ No newline at end of file +truncate -s 0 ~/.ssh/known_hosts +chmod 0664 ~/.ssh/known_hosts \ No newline at end of file