Droits plus restrictifs pour la clef (imposs par ssh)

darcs-hash:20041015214025-d1718-2e4a0d343df3fda824830327c8c8037f89e0e207.gz
This commit is contained in:
bernat 2004-10-15 23:40:25 +02:00
parent 2b74e4cfa1
commit 4d243c01a7

View file

@ -7,7 +7,9 @@ chown -R respbats:adm $BASE
set_dr () { set_dr () {
if [[ -x $1 ]] ; then if [[ -x $1 ]] ; then
chmod 775 $1 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 chmod 640 $1
else else
chmod 664 $1 chmod 664 $1