From 3b7b71cc3ef6d6b42f9d0bfd73af959f64ba88c2 Mon Sep 17 00:00:00 2001 From: Mathis CHIRAT Date: Mon, 23 Oct 2023 12:46:47 +0200 Subject: [PATCH] =?UTF-8?q?Transf=C3=A9rer=20les=20fichiers=20vers=20''?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update Protection of SSH --- deftools.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deftools.sh b/deftools.sh index c0984a7..9dd3d69 100644 --- a/deftools.sh +++ b/deftools.sh @@ -42,7 +42,7 @@ do printf "Chargemement en cours.." cmdpanel_msg="$(ls -l -A /dev/pts | grep $USER | grep -v 'rw-------' | wc -l)" cmdpanel_file="$(ls -ld ~ | grep -o '^\S*')" - cmdpanel_ssh="$(ls -l -A ~| grep .ssh | grep -o '^\S*')" + cmdpanel_ssh="$(ls -ld ~/.ssh | grep -o '^\S*')" cmdpanel_psqlpwd="$(cat ~/.psql_history | grep 'WITH PASSWORD' | wc -l)" clear Aff @@ -121,7 +121,7 @@ do while ((j==0)) do clear - cmdpanel_ssh="$(ls -l -A ~| grep .ssh | grep -o '^\S*')" + cmdpanel_ssh="$(ls -ld ~/.ssh | grep -o '^\S*')" if [[ $cmdpanel_ssh == "drwx------" ]]; then printf "\n> ${ENDCOLOR}SSH File Protection ${GREEN}Enable ${ENDCOLOR}\n" else