mirror of https://github.com/CISOfy/lynis.git
Merge pull request #888 from bginsbach/fix-auth-9230
Fix AUTH-9230 for systems without /etc/login.defs
This commit is contained in:
commit
e481d5a173
|
@ -396,7 +396,7 @@
|
|||
if [ -f ${ROOTDIR}etc/login.defs ]; then
|
||||
PREQS_MET="YES"
|
||||
fi
|
||||
Register --test-no AUTH-9230 --root-only NO --weight L --network NO --category security --description "Check group password hashing rounds"
|
||||
Register --test-no AUTH-9230 --preqs-met ${PREQS_MET} --root-only NO --weight L --network NO --category security --description "Check group password hashing rounds"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
LogText "Test: Checking SHA_CRYPT_MIN_ROUNDS option in ${ROOTDIR}etc/login.defs"
|
||||
FIND=$(${GREPBINARY} "^SHA_CRYPT_MIN_ROUNDS" ${ROOTDIR}etc/login.defs | ${AWKBINARY} '{ if ($1=="SHA_CRYPT_MIN_ROUNDS") { print $2 } }')
|
||||
|
|
Loading…
Reference in New Issue