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
This commit is contained in:
David 2019-07-17 23:25:40 +02:00 committed by GitHub
parent 2576bc8fca
commit 8de806c9a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
lynis
View File

@ -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