From 4d243c01a731e03ab77abb9fc6a1fa4abef44c7a Mon Sep 17 00:00:00 2001 From: bernat Date: Fri, 15 Oct 2004 23:40:25 +0200 Subject: [PATCH] Droits plus restrictifs pour la clef (imposs par ssh) darcs-hash:20041015214025-d1718-2e4a0d343df3fda824830327c8c8037f89e0e207.gz --- gestion/set_droits.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gestion/set_droits.sh b/gestion/set_droits.sh index 59fc9a5f..62dbc744 100755 --- a/gestion/set_droits.sh +++ b/gestion/set_droits.sh @@ -7,7 +7,9 @@ chown -R respbats:adm $BASE set_dr () { if [[ -x $1 ]] ; then chmod 775 $1 - elif [[ $1 = "$BASE/secrets.py" ]] || [[ $1 = "$BASE/secrets.pyc" ]] || [[ $1 = "$BASE/clef-wifi" ]]; then + elif [[ $1 = "$BASE/clef-wifi" ]]; then + chmod 600 $1 + elif [[ $1 = "$BASE/secrets.py" ]] || [[ $1 = "$BASE/secrets.pyc" ]]; then chmod 640 $1 else chmod 664 $1