From 8de806c9a7e6eaf69a7c66c191f5c59a782ee7cc Mon Sep 17 00:00:00 2001 From: David <2069735+Marzal@users.noreply.github.com> Date: Wed, 17 Jul 2019 23:25:40 +0200 Subject: PRIVILEGED var needs to set in both cases set PRIVILEGED in both cases, because now this variable is set before ". ${INCLUDEDIR}/consts" and needs not to be set in that file in order to not be reset to a default value. Also fix typo: PENTESTINGMODE is set when NO root privileges are used --- lynis | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lynis') diff --git a/lynis b/lynis index 35a023ef..992fb3dd 100755 --- a/lynis +++ b/lynis @@ -129,7 +129,8 @@ PRIVILEGED=1 PENTESTINGMODE=0 else - # Set to pentesting mode if scan is with root privileges + PRIVILEGED=0 + # Set to pentesting mode if scan is without root privileges PENTESTINGMODE=1 fi -- cgit v1.2.3