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
path: root/lynis
diff options
context:
space:
mode:
authorDavid <2069735+Marzal@users.noreply.github.com>2019-07-18 00:25:40 +0300
committerGitHub <noreply@github.com>2019-07-18 00:25:40 +0300
commit8de806c9a7e6eaf69a7c66c191f5c59a782ee7cc (patch)
treeafcc0dcef8c8807bc009c46f6900a32f9d652e1b /lynis
parent2576bc8fcafaf2a0bfe6342d25a4dbff91987e2b (diff)
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
Diffstat (limited to 'lynis')
-rwxr-xr-xlynis3
1 files changed, 2 insertions, 1 deletions
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