mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-24 22:34:33 +02:00
Use variable OWNERID for file ownership
This commit is contained in:
parent
17ba25a788
commit
73bcfccd20
2
lynis
2
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user