From c2090b74b39081caa5233d040d1d9bcfc5bce5d3 Mon Sep 17 00:00:00 2001 From: Thibault Ayanides Date: Mon, 2 Nov 2020 16:53:04 +0100 Subject: [PATCH] FIX(2.2.12): smbd enabling check was wrong --- bin/hardening/2.2.12_disable_samba.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/hardening/2.2.12_disable_samba.sh b/bin/hardening/2.2.12_disable_samba.sh index ef3390a..d4d4dfd 100755 --- a/bin/hardening/2.2.12_disable_samba.sh +++ b/bin/hardening/2.2.12_disable_samba.sh @@ -29,7 +29,7 @@ audit () { fi done is_service_enabled $SERVICE - if [ $FNRET = 1 ]; then + if [ $FNRET = 0 ]; then crit "Service $SERVICE is enabled!" else ok "Service $SERVICE is disabled" @@ -49,7 +49,7 @@ apply () { fi done is_service_enabled $SERVICE - if [ $FNRET = 1 ]; then + if [ $FNRET = 0 ]; then crit "Service $SERVICE is enabled!" systemctl disable $SERVICE else