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:
authormboelen <michael@cisofy.com>2016-05-02 16:08:38 +0300
committermboelen <michael@cisofy.com>2016-05-02 16:08:38 +0300
commit73bcfccd20b313c7ee01466985b0ae489ce9ab2c (patch)
tree41b1514d20038474941b02b50daa81923f930e6e /lynis
parent17ba25a7883f9268f9e63a0470211aa0725a61fc (diff)
Use variable OWNERID for file ownership
Diffstat (limited to 'lynis')
-rwxr-xr-xlynis2
1 files changed, 1 insertions, 1 deletions
diff --git a/lynis b/lynis
index e520489d..798dfb9b 100755
--- a/lynis
+++ b/lynis
@@ -126,7 +126,7 @@ Make sure to execute ${PROGRAM_NAME} from untarred directory or check your insta
# Check if owner of both files is root user, or the same user which is running Lynis (for pentester mode)
if [ ! "${OWNER}" = "root" -a ! "${OWNERID}" = "0" ]; then
- if [ ! "${MYID}" = "${OWNER2ID}" ]; then
+ if [ ! "${MYID}" = "${OWNERID}" ]; then
ISSUE=1; ISSUE_TYPE="owner"; SHOWPERMERROR=1; ISSUE_FILE="${FILE}"; ISSUE_OWNER="${OWNER}"; ISSUE_OWNERID="${OWNERID}"
fi
fi