mirror of https://github.com/CISOfy/lynis.git
Only show suggestion when shell does not exist [AUTH-9218]
This commit is contained in:
parent
44a530719c
commit
ef531081bc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue