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:
authorMichael Boelen <michael.boelen@cisofy.com>2016-07-31 14:23:09 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-07-31 14:23:09 +0300
commitaad8d89bf859c299d93b6d138c1c5f1ed5f88337 (patch)
tree78f86b7c6b4749031fbac8422df022ac741b6af7
parent9b00ea7d403bfe975d4e4e022a6f826b8d9f6372 (diff)
[AUTH-9228] Provide just an suggestion instead of warning
-rw-r--r--include/tests_authentication12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/tests_authentication b/include/tests_authentication
index 084f0eab..04182d8c 100644
--- a/include/tests_authentication
+++ b/include/tests_authentication
@@ -244,15 +244,16 @@
TESTED=0
case ${OS} in
"Linux")
- FIND=`/usr/sbin/pwck -q -r 2> /dev/null; echo $?`
+ FIND=$(/usr/sbin/pwck -q -r 2> /dev/null; echo $?)
TESTED=1
;;
"Solaris")
- FIND=`/usr/sbin/pwck 2> /dev/null; echo $?`
+ FIND=$(/usr/sbin/pwck 2> /dev/null; echo $?)
TESTED=1
;;
*)
LogText "Dev: found /usr/sbin/pwck, but unsure how to call it on this operating system"
+ ReportException "${TEST_NO}:1" "Found /usr/sbin/pwck, but unsure how to call it on this operating system"
;;
esac
# Only display if this test has been executed
@@ -260,11 +261,10 @@
Display --indent 2 --text "- Checking password file consistency" --result "${STATUS_OK}" --color GREEN
LogText "Result: pwck check didn't find any problems"
AddHP 2 2
- else
- Display --indent 2 --text "- Checking password file consistency" --result "${STATUS_WARNING}" --color RED
+ else
+ Display --indent 2 --text "- Checking password file consistency" --result "${STATUS_SUGGESTION}" --color YELLOW
LogText "Result: pwck found one or more errors/warnings in the password file."
- ReportWarning ${TEST_NO} "M" "pwck found one or more errors/warnings in the password file"
- ReportSuggestion ${TEST_NO} "Run pwck manually and correct found issues."
+ ReportSuggestion ${TEST_NO} "Run pwck manually and correct any errors in the password file"
AddHP 0 2
fi
fi