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:
authorMichael Boelen <michael.boelen@cisofy.com>2017-07-10 17:07:39 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-07-10 17:07:39 +0300
commitdf32cb29b0c2e71b6308d7329d6327afe113dad5 (patch)
treec2485004b58204e7c9838a3d30dea8b2066a2344 /include/data_upload
parent29f5dc7e53eb4e5dd6dd3c52d0037b10bef39c2b (diff)
Include instructions if hostid2 is empty
Diffstat (limited to 'include/data_upload')
-rw-r--r--include/data_upload7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/data_upload b/include/data_upload
index 701827e5..02689931 100644
--- a/include/data_upload
+++ b/include/data_upload
@@ -243,6 +243,13 @@
else
echo "${RED}Error${NORMAL}: No hostid and/or hostid2 found. Can not upload report file."
echo "Suggested command: lynis show hostids"
+ echo ""
+ echo "If hostid2 is the only ID that is missing, use the following step:"
+ echo "Create hash and add it to custom.prf"
+ echo "echo \"hostid2=\$(cat /dev/urandom | tr -dc 'a-f0-9' | fold -w 64 | head -n 1)\" > /etc/lynis/custom.prf"
+ echo ""
+ echo "Note: do not replicate this ID to other systems, as it needs to be unique per system"
+
# Quit
ExitFatal
fi