Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2015-01-16 01:21:17 +0300
committermboelen <michael@cisofy.com>2015-01-16 01:21:17 +0300
commitef531081bcf88477211cb76279a2b55d5cbc1866 (patch)
tree2acbdab2f3fcbf9ade712fdbad3e3f86293d7426 /include/tests_authentication
parent44a530719cd9dddf8f9ee814209dffcfe5adb568 (diff)
Only show suggestion when shell does not exist [AUTH-9218]
Diffstat (limited to 'include/tests_authentication')
-rw-r--r--include/tests_authentication2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_authentication b/include/tests_authentication
index 3e3f3cb0..3cd2ff91 100644
--- a/include/tests_authentication
+++ b/include/tests_authentication
@@ -169,12 +169,12 @@
logtext "Result: found no shell on line"
else
logtext "Result: found possible harmful shell ${J}"
- ReportSuggestion ${TEST_NO} "Determine if account is needed, as shell ${J} does not exist"
if [ -f ${J} ]; then
logtext "Result: shell ${J} does exist"
FOUND=1
else
logtext "Result: shell ${J} does not exist"
+ ReportSuggestion ${TEST_NO} "Determine if account is needed, as shell ${J} does not exist"
fi
fi
done