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:
authordanielorihuelarodriguez@gmail.com <danielorihuelarodriguez@gmail.com>2020-08-29 00:19:37 +0300
committerdanielorihuelarodriguez@gmail.com <danielorihuelarodriguez@gmail.com>2020-08-29 00:19:37 +0300
commit5ca6b7ed7985d63bed1689121f7c4aad00fb53df (patch)
tree800a8a72cb4a623d91e503fa609b58f453440bf9 /include/tests_authentication
parentc857ee7cf2c3e11b37c84d41e50f7f39806a4a4f (diff)
feature: take into account LK
Some distributions like CentOS 8 contains "LK" instead of "L" for locked users.
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 27b6b29f..7ef56982 100644
--- a/include/tests_authentication
+++ b/include/tests_authentication
@@ -872,7 +872,7 @@
PREQS_MET="YES"
FIND_P=$(for I in $(${AWKBINARY} -F: '{print $1}' "${ROOTDIR}etc/passwd") ; do passwd -S "$I" | ${AWKBINARY} '{ if ($2=="PS" && $5=="99999") print $1 }' ; done)
FIND2=$(for I in $(${AWKBINARY} -F: '{print $1}' "${ROOTDIR}etc/passwd") ; do passwd -S "$I" | ${AWKBINARY} '{ if ($2=="NP") print $1 }' ; done)
- FIND3=$(for I in $(${AWKBINARY} -F: '{print $1}' "${ROOTDIR}etc/passwd") ; do passwd -S "$I" | ${AWKBINARY} '{ if ($2=="L") print $1 }' | sort | uniq ; done)
+ FIND3=$(for I in $(${AWKBINARY} -F: '{print $1}' "${ROOTDIR}etc/passwd") ; do passwd -S "$I" | ${AWKBINARY} '{ if ($2=="L" || $2=="LK") print $1 }' | sort | uniq ; done)
else
LogText "Result: skipping test for this Linux version"
ReportManual "AUTH-9282:01"