From d9d5053770a0be4884650127380029bec695af8e Mon Sep 17 00:00:00 2001 From: Danil Mikhailov Date: Tue, 6 Oct 2015 18:25:09 +0300 Subject: [PATCH] Change home dir var, fix var name permission --- autosshd/share/autossh-conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autosshd/share/autossh-conf b/autosshd/share/autossh-conf index d4628ec..60054aa 100755 --- a/autosshd/share/autossh-conf +++ b/autosshd/share/autossh-conf @@ -28,7 +28,7 @@ check_permissions(){ fi done - DSAFILES="~/.ssh/id_dsa*" + DSAFILES="/$HOME/.ssh/id_dsa*" if ls $DSAFILES &> /dev/null ; then is_ok $DSAFILES else @@ -36,11 +36,11 @@ check_permissions(){ fi for i in $DSAFILES ; do - file_premission="$(stat -c "%a" $i)" - if [ "$file_premission" == "600" ] || [ "$file_premission" == "400" ]; then + file_permission="$(stat -c "%a" $i)" + if [ "$file_permission" == "600" ] || [ "$file_permission" == "400" ]; then is_ok $i else - echo "Permissions $(stat -c "%a" $i) for $i are too open." + echo "Permissions $file_permission for $i are too open." fi done } -- 2.11.4.GIT