mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-10 07:24:32 +02:00
Show warning for writable configuration file
This commit is contained in:
parent
6520400ca4
commit
ae6ca56581
@ -450,11 +450,9 @@ wait_for_keypress
|
|||||||
if [ -f ${FILE} ]; then
|
if [ -f ${FILE} ]; then
|
||||||
LogText "Result: found ${FILE}"
|
LogText "Result: found ${FILE}"
|
||||||
if IsWorldWritable ${FILE}; then
|
if IsWorldWritable ${FILE}; then
|
||||||
echo $?
|
ReportWarning "${TEST_NO}" "Found world writable configuration file"
|
||||||
echo "File ${FILE} is writable!!!!"
|
|
||||||
fi
|
fi
|
||||||
Report "ntp_config_file[]=${FILE}"
|
Report "ntp_config_file[]=${FILE}"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user