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:
authormboelen <michael@cisofy.com>2014-10-06 13:29:04 +0400
committermboelen <michael@cisofy.com>2014-10-06 13:29:04 +0400
commitaeddf84aeda54dfa4a97e2019cf459e2ac2a1414 (patch)
tree68dc15f071fb78d50c55cf65d5c98e909b8f481c
parentf3a7921a3dd872d4d13d79d11ebddbaad62e2380 (diff)
Added SSH without-password option for PermitRootLogin
-rw-r--r--include/tests_ssh5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/tests_ssh b/include/tests_ssh
index 2d2029e6..613da201 100644
--- a/include/tests_ssh
+++ b/include/tests_ssh
@@ -136,6 +136,11 @@
logtext "Result: PermitRootLogin is disabled. Root can't login directly"
Display --indent 4 --text "- SSH option: PermitRootLogin" --result DISABLED --color GREEN
AddHP 3 3
+ elif [ "${FIND}" = "without-password" ]; then
+ # Check if password authentication is disabled for root user, so this option is used properly
+ logtext "Result: PermitRootLogin is disabled. Root can't login directly"
+ Display --indent 4 --text "- SSH option: PermitRootLogin (without-password)" --result OK --color GREEN
+ AddHP 3 3
else
logtext "Result: Value of PermitRootLogin is unknown (not defined)"
Display --indent 4 --text "- SSH option: PermitRootLogin" --result DEFAULT --color WHITE