diff options
author | mboelen <michael@cisofy.com> | 2016-03-17 18:51:00 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2016-03-17 18:51:00 +0300 |
commit | 2b6284fb0f2bd42474f639dd81f93f708d3e3220 (patch) | |
tree | e15d88df843c80d57d0b690529813f6264737150 /lynis | |
parent | bfd6d50ad7e6edcc6c9705545f1b380475e69945 (diff) |
Clarify message on screen when permissions are incorrect
Diffstat (limited to 'lynis')
-rwxr-xr-x | lynis | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -145,23 +145,24 @@ # Now if there is an issue with permissions, show it to the user and let them decide how to continue. if [ ${ISSUE} -eq 1 ]; then echo "" - echo "[X] Security check failed: See action above, to correct this issue." + echo "[X] Security check failed" echo "" echo " Why do I see this error?" echo " -------------------------------" - echo " This is a protection mechanism to prevent the root user from executing user created files." + echo " This is a protection mechanism to prevent the root user from executing user created files. The files may be altered, or including malicious pieces of script." echo ""; echo "" echo " What can I do?" echo " ---------------------" - echo " 1) Check if a trusted user created the files, by using Git, Homebrew or similar" + echo " Option 1) Check if a trusted user created the files (e.g. due to using Git, Homebrew or similar)." + echo " If you trust these files, you can decide to continue this run by pressing ENTER." echo "" - echo " 2) Change ownership and permissions of the related files (or full directory)." + echo " Option 2) Change ownership and permissions of the related files (or full directory)." echo "" echo " Commands (full directory):" echo " # cd .." echo " # chown -R 0:0 lynis" - echo "" - echo " 3) Start Lynis again (cd lynis && ./lynis)." + echo " # cd lynis" + echo " ./lynis audit system" echo ""; echo ""; echo "[ Press ENTER to continue, or CTRL+C to cancel ]" read DUMMY |