mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-28 00:04:16 +02:00
Show tip to use 'lynis generate hostids' when they are missing
This commit is contained in:
parent
34ecd072b1
commit
0443d643da
@ -242,13 +242,9 @@
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "${RED}Error${NORMAL}: No hostid and/or hostid2 found. Can not upload report file."
|
echo "${RED}Error${NORMAL}: No hostid and/or hostid2 found. Can not upload report file."
|
||||||
echo "Suggested command: lynis show hostids"
|
echo "Suggested command: lynis generate hostids --save"
|
||||||
echo ""
|
echo ""
|
||||||
echo "If hostid2 is the only ID that is missing, use the following step:"
|
echo "Note: do not replicate the values to other systems, as it needs to be unique per system"
|
||||||
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
|
# Quit
|
||||||
ExitFatal
|
ExitFatal
|
||||||
|
Loading…
x
Reference in New Issue
Block a user