mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-22 05:27:01 +01:00
IMP(5.2.3): fix possible permissions for 5.2.3
This commit is contained in:
parent
d40a85085d
commit
f4e0aafacc
@ -32,8 +32,13 @@ audit () {
|
|||||||
if [ $FNRET = 0 ]; then
|
if [ $FNRET = 0 ]; then
|
||||||
ok "$FILE permissions were set to $PERMISSIONS"
|
ok "$FILE permissions were set to $PERMISSIONS"
|
||||||
else
|
else
|
||||||
ERRORS=$((ERRORS+1))
|
has_file_correct_permissions $FILE 600
|
||||||
crit "$FILE permissions were not set to $PERMISSIONS"
|
if [ $FNRET = 0 ]; then
|
||||||
|
ok "$FILE permissions were set to $PERMISSIONS"
|
||||||
|
else
|
||||||
|
ERRORS=$((ERRORS+1))
|
||||||
|
crit "$FILE permissions were not set to $PERMISSIONS"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -73,8 +78,13 @@ apply () {
|
|||||||
if [ $FNRET = 0 ]; then
|
if [ $FNRET = 0 ]; then
|
||||||
ok "$FILE permissions were set to $PERMISSIONS"
|
ok "$FILE permissions were set to $PERMISSIONS"
|
||||||
else
|
else
|
||||||
warn "fixing $DIR SSH public keys permissions to $USER:$GROUP"
|
has_file_correct_permissions $FILE 600
|
||||||
chmod 0$PERMISSIONS $FILE
|
if [ $FNRET = 0 ]; then
|
||||||
|
ok "$FILE permissions were set to $PERMISSIONS"
|
||||||
|
else
|
||||||
|
warn "fixing $DIR SSH public keys permissions to $USER:$GROUP"
|
||||||
|
chmod 0$PERMISSIONS $FILE
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user