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
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2016-03-17 18:51:00 +0300
committermboelen <michael@cisofy.com>2016-03-17 18:51:00 +0300
commit2b6284fb0f2bd42474f639dd81f93f708d3e3220 (patch)
treee15d88df843c80d57d0b690529813f6264737150
parentbfd6d50ad7e6edcc6c9705545f1b380475e69945 (diff)
Clarify message on screen when permissions are incorrect
-rwxr-xr-xlynis13
1 files changed, 7 insertions, 6 deletions
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