From 2b6284fb0f2bd42474f639dd81f93f708d3e3220 Mon Sep 17 00:00:00 2001 From: mboelen Date: Thu, 17 Mar 2016 16:51:00 +0100 Subject: Clarify message on screen when permissions are incorrect --- lynis | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'lynis') diff --git a/lynis b/lynis index a35a4e0e..27ab6a21 100755 --- a/lynis +++ b/lynis @@ -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 -- cgit v1.2.3