mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-28 16:24:13 +02:00
Clarify message on screen when permissions are incorrect
This commit is contained in:
parent
bfd6d50ad7
commit
2b6284fb0f
13
lynis
13
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.
|
# 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
|
if [ ${ISSUE} -eq 1 ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "[X] Security check failed: See action above, to correct this issue."
|
echo "[X] Security check failed"
|
||||||
echo ""
|
echo ""
|
||||||
echo " Why do I see this error?"
|
echo " Why do I see this error?"
|
||||||
echo " -------------------------------"
|
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 ""; echo ""
|
||||||
echo " What can I do?"
|
echo " What can I do?"
|
||||||
echo " ---------------------"
|
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 ""
|
||||||
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 ""
|
||||||
echo " Commands (full directory):"
|
echo " Commands (full directory):"
|
||||||
echo " # cd .."
|
echo " # cd .."
|
||||||
echo " # chown -R 0:0 lynis"
|
echo " # chown -R 0:0 lynis"
|
||||||
echo ""
|
echo " # cd lynis"
|
||||||
echo " 3) Start Lynis again (cd lynis && ./lynis)."
|
echo " ./lynis audit system"
|
||||||
echo ""; echo "";
|
echo ""; echo "";
|
||||||
echo "[ Press ENTER to continue, or CTRL+C to cancel ]"
|
echo "[ Press ENTER to continue, or CTRL+C to cancel ]"
|
||||||
read DUMMY
|
read DUMMY
|
||||||
|
Loading…
x
Reference in New Issue
Block a user