mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-31 01:34:23 +02:00
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"
|
logtext "Result: found no shell on line"
|
||||||
else
|
else
|
||||||
logtext "Result: found possible harmful shell ${J}"
|
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
|
if [ -f ${J} ]; then
|
||||||
logtext "Result: shell ${J} does exist"
|
logtext "Result: shell ${J} does exist"
|
||||||
FOUND=1
|
FOUND=1
|
||||||
else
|
else
|
||||||
logtext "Result: shell ${J} does not exist"
|
logtext "Result: shell ${J} does not exist"
|
||||||
|
ReportSuggestion ${TEST_NO} "Determine if account is needed, as shell ${J} does not exist"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user