IMP(6.2.2,6.2.3,6.2.4): add purposely failing tests

This commit is contained in:
Thibault Ayanides
2020-10-26 14:46:42 +01:00
parent 7ab41f7b88
commit 1e64a14299
4 changed files with 64 additions and 4 deletions

View File

@ -21,7 +21,7 @@ RESULT=''
audit () {
info "Checking if accounts have a legacy password entry"
if $SUDO_CMD grep '^+:' $FILE -q; then
RESULT=$(grep '^+:' $FILE)
RESULT=$($SUDO_CMD grep '^+:' $FILE)
crit "Some accounts have a legacy password entry"
crit $RESULT
else